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.

Potato Coded

Members
  • Joined

  • Last visited

  1. no, I'm very sorry for all my trouble... I'm just new to modding...
  2. Have an example: https://github.com/diesieben07/Modjam-4/blob/master/src/main/java/mod/badores/event/FMLEventHandler.java#L62 ok... now where do I put this code...?
  3. Now... how would I give the item to the player when they first spawn into a world?
  4. I made a sort of "dummy" item and put it in the creative tab, and then I just had it change it's NBT data in the onUpdate() method and that seems to work fine
  5. so I can add NBT data to an ItemStack, but not an Item. so how do I get an Item with my custom NBT data into a creative tab. because when I run: example_item.getItem().setCreativeTab(tabExample);, it gives me a written book, named written book, with nothing in it...
  6. I know how to set the creative tab for an Item... not an ItemStack i use example_item.setcreativetab(tabExample);, but that's for an item. how would i do it for an itemstack?
  7. how would I set the creative tab and the texture for the item? It's an ItemStack, so I can set those properties to a type ItemStack...
  8. oh, ok! thank you so much! this really helped!
  9. I'm not familiar with a command class... how would I add it as a new item that I can craft and such?
  10. is that in your main mod class?
  11. the ItemEditableBook it extends already opens the book gui
  12. this I what I have so far... the book doesn't seem to do anything when I click it...
  13. I am trying to make a book to my mod filled with information about my mod(recipes, how to obtain items, what items do, etc.) that acts just like a normal written book in the sense that you can click to read it and such. I am trying to create a new book and add NBT data to it, but nothing will work. Can somebody please help me...?

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.