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. Use the constructor that takes 2 floats.
  2. Tile Entities, when reconstructed from the save file on disk, are created using a zero-argument constructor (which yours does not have). This means that it is skipping the storage = new MEnergyStorage(capacity, transferSpeed); line, thus storage is null.
  3. >> No code posted > No help available
  4. You need to synchronize the capability from the server to the client yourself.
  5. I'm not 100% sure. Item stacks can't be null. Use ItemStack.EMPTY
  6. The block only needs to be updated if the TE data effects rendering (my block changes model states based on TE information, such as inventory).
  7. 1) You may want to override getUpdateTag as well. 2) You need to call these whenever the server should send updates to the client.
  8. You don't need that empty string between GRAY and ITALIC. Also, I18n.format() is a thing. I don't know why you're using your own localize function.
  9. If you're doing log-y things, you might be interested in extending BlockLogsBase (IIRC).
  10. Oh no. A custom class. The horror! https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/entities/capabilities/MillableItemsHandler.java
  11. Yep, you're doing it wrong. The TextFormatting enum is a thing. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/flowers/item/ItemOreFlower1.java#L55
  12. Show your code. You're probably doing it wrong.
  13. Doing that would be Bad.
  14. Custom ItemHandler classes.
  15. One of the following is true - The itemstack returned by getPickBlock is incorrect - The item model for the itemstack returned by getPickBlock has not been registered
  16. Unfixable. You shouldn't have to, and it's because you've set its unlocalized name wrong. See how it says "item.item"?
  17. That's because the first one uses the same stack, the second one uses a new stack.
  18. I'm not sure, its not something I've tried to do.
  19. models/item is the inventory model, not the model used in the world. Anyway, you should be able to register the existing chest renderer for your own block.
  20. https://github.com/Draco18s/ReasonableRealism/commit/76730b3dd6035c646b8e3b2868e60796fe97a372#diff-ecd6aa9809a7f09399baad4b9a0c314f
  21. "It's not working" because chests don't use the JSON model system. They have an animated TESR model.
  22. ...you don't know what that first parameter is for do you? Or why its important for things like Tinkers.
  23. Use an ArrayList.

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.