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. You don't need ItemBase either. You can call this from your ModelRegistryEvent just fine: ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(),"normal")); See above
  2. You're current registering the item with a "" variant. You should use " inventory" Also IHasModel is stupid. All items need models and none of the information necessary to register a model is private. ItemBase is an antipattern:
  3. This is what happens when you render opaque things with transparency. There's a way to specify dual layer models, but I can't think of the search term to look for at the moment.
  4. enum != Enumeration https://stackoverflow.com/a/19445327/1663383 Don't know about what you're trying to do, though.
  5. Yeah. Gotta be an array, but lists are easier to work with. Its why my utils class got so convoluted so quickly.
  6. Take a look at this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java
  7. Your "code so far" is an autogenerated implementation. You've done fuckall so far. You might want to actually write some code.
  8. That part requires Java code. Look at: the furnace, pistons, hoppers, droppers, and logs.
  9. /me sighs at the heavy use of the arrow antipattern.
  10. I am pretty sure what he's trying to do is make edits to vanilla and bypass Forge: Which is 100% absolutely positively against the law, EULA, and the TOS.
  11. Probably all of these things:
  12. Its a protected field. You need to call SetAccessible(true).
  13. ActualState In either case, I do not recommend TEs for logs. Use multiple blocks like Vanilla does.
  14. You don't need this. IHasModel is stupid. All items need models and all the information needed to register a model is public. Your log is useless, there are no errors. Not sure why the cart won't pass.
  15. Nine Log Types * 3 axis of orientation = 27 possible state variants. Metadata is strictly limited to 16 possible state variants.
  16. In English, when do you want the TE to be deleted? Think about it.
  17. Your blockstatecontainer only allows for 2 variants. If we look at your enum class, there are 9 total variants. This can't fit in 4 bits of metadata along with 2 bits used for log axis. Which we see: https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/slayer/api/block/BlockModLog.java#L55 https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/slayer/api/block/BlockModLog.java#L96 BTW, your API has references to your non-API. This means your API cannot be packaged separately. https://github.com/TheSlayerMC/Journey-1.12/blob/master/main/java/net/slayer/api/block/BlockModLog.java#L7-L15 Also, IHasModel is stupid. All items need models and none of the information necessary to register a model is protected or private.
  18. Yes that. But that implementation won't do what you need.
  19. You don't need BlockBase. Using inheritance as a means for code-reuse is an antipattern.
  20. Considering that OBJs don't have GUIs you're going to need to clarify what you are trying to do.
  21. It is extremely and highly unlikely that that will even be possible.

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.