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 want your block to display in the inventory? It needs an inventory variant. QED
  2. You don't have an inventory or normal variant in your blockstate file.
  3. Well, that's wrong, obviously. You want to register with events? Write an event handler. http://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things
  4. You're tracking a total amount of dust found, but you're returning it before every slot has been checked (or if a slot is the wrong item, returning 0).
  5. What was the value of state.getBlock() and the value of blockIn?
  6. Sooo...examine the variables at that point. Is the block the desired block? Is the event silk touch (or not)?
  7. Set a breakpoint somewhere else, like at the top of the event handler method. Your goal is to get the program to halt and let you examine why it is NOT going into a specific path, not put the break inside the path you want and then complain on the forums that it didn't go there. We already knew that.
  8. Yeah, the name changed. At least twice. EnumChatFormatting is the only one I remember.
  9. Ah, yes, you can do it that way too. I did things the way I did things because it worked for me. I wanted to treat my codebase as "one mod" as they were all related to each other, but distribute as separate mods, so people could pick and choose. You should be able to, but I don't know how.
  10. Ah, yes. You're correct. I saw the first return and missed that one
  11. First item in the backpack is a rock. Not reagent item. Next! Second item in the backpack is a reagent item. int total = 0 + stack size. Return total! All done! (Hey...what about the 3rd, 4th, and 5th items?)
  12. Pretty much. getSlots() tells you how many slots there are (0-indexed) and getStackInSlot(index) gets the stack in that slot.
  13. Compiled things work just fine.
  14. I don't? Seriously, inside Eclipse, I don't worry about it.
  15. I never tried to put them inside my resources directory.
  16. There's a lot of functions. They do things. To make it easier to perform OGL commands. You want to know HOW they work, you're going to have to open the class up and read...
  17. It exists, but it will be overwritten without notice.
  18. All data is server side, the client merely maintains a copy. You want to change the data...? Change it on the server.
  19. I'm not sure. I just know that what I have works. Show your folder structure and gradle.build file again?
  20. Its a wrapper around OpenGL commands. That's it.
  21. §c can be replaced with EnumChatFormatting.RED

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.