Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. If the log is printed to the console, then the error is not in that snippet. QED.
  2. You need to supply a material. Look at all the other blocks: blockRegistry.addObject(20, "glass", (new BlockGlass(Material.glass, false))... public BlockStone() { super(Material.rock); //here this.setCreativeTab(CreativeTabs.tabBlock); } As for invisible, that has nothing to do with BlockContainer. You registered a renderer for your block, and likely, it isn't rendering anything.
  3. Nah, everyone else calls me an asshole because they're too [lazy|stupid|assholish] to go to the effort of helping themselves.
  4. ClientRegistry.bindTileEntitySpecialRenderer(TileEntityJohnnyBlockRubble.class, render);
  5. Long story short: you're going to find this almost impossible. I don't know how grass actually renders its sides (last I checked, it cheated), but the problem you're seeing has to do with the fact that the color multiplier applies to the whole texture. Best guess, you could try a transparent overlay texture which has the grass portion and is color multiplied, and the dirt underlay portion which is not. You'll have to look up two-pass rendering on your own.
  6. True enough, it is. The question then is: "Is this something that should happen after the game has been played for X hours?" or "Is this something that should occur after a certain amount of game time?" The former would use getTotalWorldTime() - doesn't care what time of day it is, only how long since the world was created, effectively measured in Real Time The latter would use getWorldTime() - it respects sleeping and the reset of the game clock
  7. Override the block fucntion removedByPlayer . Look at each adjacent block. If it is air, set the block to your rubble block. Done.
  8. I'd help if you actually looked at the vanilla leaves. Say, BlockLeaves line 151.
  9. Yes. Use getTotalWorldTime() instead. Except that, as far as I can tell, getWorldTime() is not actually restricted to 0-23999. It doesn't tick when doDayNightCycle is false, but nothing modulos it back below 24000. getWorldTime() also respects sleeping in beds whereas getTotalWorldTime does not. Check WorldServer.java lines 185 and 159. So yes, in this situation getWorldTime() is in fact the better call.
  10. I don't see how the move to 1.8 changes class level variables.
  11. You will need a tick handler and you will want it to check the world.getWorldTime() value and check to see if it's the "when" you want your Thing to happen, and then Do It.
  12. Not to mention that it's almost impossible to get access to the bitmap data...
  13. [nobbc] code here [/nobbc] Also, define "doesn't work"
  14. Override public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
  15. So I'm not crazy! For a few minutes there (as I can not find the other thread) I thought I was pre-cog'ing1 again. 1I don't have precognition, just a lot of events that make me go "did I dream that?"
  16. You could look at the existing AI functions. AIWander I know turns off when the player is more than 32 blocks away.
  17. A schematic file is just an .nbt with a different extension but with a known set of root-level keys.
  18. Yeah, FileIO is just regular java. Real easy stuff. Especially with the existence of the CompressedStreamTools (IIRC the class name). I'm completely failing to locate the code snipped that helped me get started, unfortunately.
  19. http://minecraft.gamepedia.com/Schematic_file_format

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.