Skip 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. 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
  2. Override the block fucntion removedByPlayer . Look at each adjacent block. If it is air, set the block to your rubble block. Done.
  3. I'd help if you actually looked at the vanilla leaves. Say, BlockLeaves line 151.
  4. 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.
  5. I don't see how the move to 1.8 changes class level variables.
  6. 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.
  7. Not to mention that it's almost impossible to get access to the bitmap data...
  8. [nobbc] code here [/nobbc] Also, define "doesn't work"
  9. Override public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune)
  10. 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?"
  11. You could look at the existing AI functions. AIWander I know turns off when the player is more than 32 blocks away.
  12. A schematic file is just an .nbt with a different extension but with a known set of root-level keys.
  13. 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.
  14. http://minecraft.gamepedia.com/Schematic_file_format
  15. It's a scale value. It just so happens that all models need the same scale value (1/16th) to be the right size.
  16. No shit, Sherlock. The GuiButton is client side only code. Accessing the server object doesn't magically create a connection between your computer (client) and another (the server). "Running on the same machine" isn't an excuse, because they're separate executables. You need packets.
  17. What you're looking for is a Shader.
  18. Aside from having used the main mod file events... RenderBolt != RenderFireball
  19. public BlockFluidBase(Fluid fluid, Material material) { this.tickRate = fluid.viscosity / 200; }

Important Information

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

Account

Navigation

Search

Search

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.