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. Here's a working inventory container/gui. It's actually kinda funky. Particularly line 37. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/GuiHandler.java
  2. Most likely, you are using the single-parameter tool material constructor, you need to use the three parameter ToolMaterial, float, float one.
  3. That method is called anytime world.setBlockState() is passed a 0x1 as the third parameter.
  4. That's onBlockHarvested, I believe. Which is called from onBlockRemoved (by player).
  5. Create a new enumerated and have an explicit "unknown" or "none" value.
  6. In C# you can, but really all that means is that the interface is declaring an explicit getter/setter. I know this because I did it not to long ago. e.g. public interface ISomeThing { public someField { get; set; } } But yes, you can't do that in Java. You'd have to declare it as a getField() and setField(v) methods and supply the field itself in the implementation.
  7. Items.getItemFromBlock(block)
  8. You don't have the Java knowledge necessary to even have someone help you with this.
  9. Because the object is never set to anything. I can't tell you because you haven't posted your current code.
  10. That's not how you compare ItemStacks.
  11. If any are wrong, this would be the one. But not having used I18n yet, I am not 100%
  12. Considering that the crash occurs on line 67 of your custome elytra class, yes, I do think its related to your code.
  13. Define "doesn't work"
  14. In which case: Stop suggesting custom entities for simple problems. It is the wrong solution.
  15. There is no reason to call new WorldGenCustomNameHere() every time the chunk generates. You can create one in the constructor of CustomGeneration and save it in a private field and reuse the same generator. Also, "WorldGenCustomNameHere" is a terrible name.
  16. Forge still saves a .log file. But I suspect that this isn't a Java issue but a computer issue.
  17. If an item has the wrong texture (e.g. missing) there is a problem with the item's JSON model or with its registration, there is nothing wrong with Vanilla's EntityItem class. There is no reason to create a custom EntityItem class unless you need to override certain EntityItem behavior. Please stop suggesting a complicated solution to a simple problem.

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.