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. You still shouldn't use BlockContainer. It's old and out of date and does a bunch of garbage (like overriding the render type) that you don't want.
  2. Draco18s replied to lethinh's topic in Modder Support
    oh no. ten dollars. whatever shall you do. Seriously. https://www.amazon.com/UGREEN-Ethernet-Adapter-Nintendo-Chromebook/dp/B00MYT481C/ref=sr_1_4 also, start using MB notation rather than GB in your decompile command. 1G will be too little and 2G your computer can't supply. You need to drop down and get finer grained. I did it once, you can too.
  3. It's called exactly once. Once for each hand
  4. 1) you implement those methods 2) you call these when the data changes
  5. Multiple instances or multiple types? Am interface is just an object which says "this method exists" and then every class that inherits that interface MUST provide an implementation.
  6. EntityJoinedWorldEvent probably
  7. Block#getDrops() getItemDropped() specifically returns only an item which would have to be combined with getDamageDropped() or whatever it's been renamed to.
  8. Same way you register any other item model.
  9. Likely whatever feature your about to ask for is already possible. You can combine ItemHandlers already, so you'd just spilt them up and combine them as needed. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L143
  10. Also your code is a mess. There's a half dozen or more variable with names like xxx1, xxx2, xx3, etc. Not to mention constructing facing enums from their index, which is SUPER meaningless.
  11. world.getTileEntity(pos)?
  12. You can't do server things from the client.
  13. If you're transferring power then yes, you'd need a TE to store the power in.
  14. https://github.com/Jigokusaru/MegaMoney/blob/master/main/java/com/jigokusaru/jmmm/JMMM.java#L35-L36 You initialize your items before your blocks, so ModBlocks.vendingmachine is null.
  15. BlockPos.getAllInBox(from, to)
  16. I don't see anything wrong, so you're probably going to have to debug this yourself.
  17. So what's the problem?
  18. 1) Do not use ITileEntityProvider, override the methods found in the Block class. ITileEntityProvider is old and is based on metadata, not IBlockstate 2) You need to mark dirty in the case if (FUEL_AMOUNT <= 0) { } as well.
  19. Why do you need a TE? I could do this with blocks, nothing but blocks, and a custom Interface.
  20. You aren't syncing the TE with the client. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/farming/entities/TileEntityTanner.java#L174-L200
  21. It's been four days since 1.12 was released, it usually takes the Forge team a couple of weeks to hammer out all the changes they need to make for Forge to be functional. It depends on the severity of the update (1.7 -> 1.8 took so long most modders waited for 1.10).
  22. Here's another example, this time with 3 properties all controlled by TE data. The important thing is that when the data changes you need to sync it to the client, you need to call these methods, override these, and make sure that the property data is saved to NBT.

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.