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. Without seeing your whole code, I can only make guesses. You also didn't post the error, just the line that caused it.
  2. This is probably because mov.entityHit is null. You should check for that. Yes. @EventHandler is for FML mod lifecycle events.
  3. Why do you have both @SubscribeEvent and @EventHandler?
  4. If you have a reason to extend the diode, sure.
  5. Do you have this anywhere: @SubscribeEvent public void onEvent(MouseEvent event) { //... }
  6. That's effectively a library mod. "Coremod" has a specific meaning.
  7. Welp, there's your problem. You're not supposed to extend the event classes. You're supposed to create a single function that takes a single parameter (of any Event subtype) and mark it with an @EventHandler annotation. Can you please link the tutorial you were using?
  8. Registry name is per block, not per state. You can only set it once.
  9. Your TileEntity's NBT methods aren't calling super, ergo there is some data loss (the TE's position in the world), and rather than try and recover what it can (because it doesn't know where it goes), Minecraft just creates a new one.
  10. Alternatively you can just add a rotation to your inventory variant.
  11. Yep, because the item version of your block uses metadata:0. If you want it to be a different variant, you need to specify that. (e.g. getSubBlocks)
  12. The ItemBlock still uses a metadata value somewhere. It's probably using 0.
  13. That depends: is the default state the one used for the itemblock?
  14. The entire Minecraft class is client side only: import net.minecraft.client.Minecraft;
  15. Your crash occurs in com.minecolonies.colony.Colony which is not available on your github. Also what Jeffry said. Searched what class?
  16. You'd want the only value for the singular variant in that case, yes.
  17. Unrelated question: why does your class start with an 'I'?
  18. It's just a loop that determines all the valid states and registers a renderer for them.
  19. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/ClientProxy.java#L54-L56
  20. Oh! Your block has several states. Are you holding one that does not correspond to the default state?
  21. That should work, provided that the block has an item associated with it.
  22. Did you register a renderer for your itemblock?
  23. You need an inventory variant. You'd know this if you read the log.
  24. IIRC, it gets truncated binarily to 4 bits. That is, 16 and 0 would be identical.

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.