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.

GrumpyBear

Members
  • Joined

  • Last visited

Everything posted by GrumpyBear

  1. Hi, I'm trying to have an item work in such a way so that on right clicking a block, it calls the onItemUse function but not the onItemRightClick function. I have the onItemRightClick function set up to change the mode of the item and I have the onItemUse function store a block in the NBT of the item, but I don't want to change the mode when I try to store the block. Is there any way so that I can bypass the onItemRightClick function if the item is being used on a block?
  2. Hey, I'm trying to have it work so that on pressing a custom button in a gui that extends a GuiContainer the contents of the container gets modified. For example, I have it so that upon the button press, it calls a function in the TileEntity linked to the gui which copies the item stack in slot 0 and puts it in slot 1, and empties slot 0. It also adds additional NBT data to the stack. Unfortunately, when you try to take the new ItemStack out of slot 1, it resets to before you press the button, with the old stack in slot 0 with no additional data. Does anyone know how to make it so that the client side and server side containers synchronise and have the same contents?

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.