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. The javadoc on that method is wrong. If you follow where it gets its value from you'll find that nothing modulates it down below 24,000. You mean /time set 0? Well...yeah...
  2. Sorry, try World.# getWorldTime() I get the two confused sometimes. And yes, it accounts for sleeping.
  3. World#getTotalWorldTime() / 24000
  4. It is preferred, yes. However with build 1.12-14.21.0.2348 the registry events fire after preInit (rather before), so preInit registration still works.
  5. *cough* item.getRegistryName() already has the mod ID baked in. *cough*
  6. The reason block container doesn't work is because it overrides getBlockModelType() to make the block invisible.
  7. Well, the problem here is that you blindly pick a block below the surface. If that block isn't air, you don't generate.
  8. *cough* 1.12 *cough*
  9. You just need to tell the oredictionary about your block, vanilla items (like wooden axes) already have oredict recipes.
  10. "Subworlds" is not in the code as anything. It's a notion.
  11. registry.registerAll( oreSapphire, oreSapphire.setRegistryName(oreSapphire.getRegistryName()) ); This is equal to block.setRegistryName(block.getRegistryName()) and wrong. You should be doing item.setRegistryName(block.getRegistryName())
  12. It doesn't work that way. There's an older mod that does what you're looking for and it uses subworlds (essentially a second World). Worlds don't collide with other Worlds though. And no, I don't know how to do it.
  13. Then look for ONE air block.
  14. Or as I like to think about it, canInteractWithThisEntity If you can't interact, then you can't view, viewing is interaction.
  15. And specifically, the LivingHurtEvent only runs server-side.
  16. user action -> entity on server gets awake -> send packet -> packet handler sets the same value on the client entity -> renderer reads the data in the entity when rendering the model
  17. You aren't registering am item model anywhere that I can see
  18. Size isn't important. Capabilities is about compatibility and accessibility.
  19. Random question: why do uou pass both message (which you use to pull message.awake) and message.id?
  20. Height had nothing to do with the stated problem. It is X and Z that need to be offset.
  21. Your packet doesn't do anything when it arrives. void proccessMessage(PacketReturnAwaken message) { try { }catch(Exception e) { Utils.getLogger().catching(e); } } So blank, much void, many noop. Wow. Additionally, your packet doesn't have any way of finding the entity it needs to awaken.
  22. Aaannnddd...The "old"system still exists. Capabilities are the replacements for the massive interface list, implements IPowerUser, IMechanicalPower, IRedPowerConsumer, IInventory, ISidedInventory, IButterworthPillbox, IForestryFishnet, IRotaryBanana.... It isn't a replacement for data storage.
  23. If you ACTUALLY register models on the server it will crash, yes.

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.