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.

Heeee

Members
  • Joined

  • Last visited

Everything posted by Heeee

  1. That was something I copied from another (apparently old) thread. But I managed to it in preInit! So thanks for helping c:
  2. With "GameRegistry.findItem..." and then adding setNoRepair to all of the tools? Or would I go about that?
  3. One to remove the possibility to remove item repair :L Like the setNoRepair, just permanetly. Is there even anything like that?
  4. Ohh I see... But what's the nbt tag called, so I can look it up?
  5. Oh damn it! Posted an old copy of the code, I already updated. Sorry 'bout that. Anyway the part with the " event.entityPlayer.getHeldItem().getItem().setNoRepair();" is the same :L
  6. public void PlayerInteractEvent(PlayerInteractEvent event) { if ((event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK) || (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR)) { if (event.entityPlayer.getHeldItem().getItem() instanceof ItemTool) { if (event.entityPlayer.getHeldItem().getItem().isRepairable()) { event.entityPlayer.getHeldItem().getItem().setNoRepair(); } } } } It works fine, but everytime I restart my game (restart not leaving the world and rejoining) it keeps reseting :L
  7. I saw an thread about removing item repair. So I thought because the nbt tags keep on reseting for me, it would be possible to update the nbt tags everytime you put such an item inside a crafting grid :L
  8. Heeeyy! I need to trigger something everytime you move (drag and drop) an Item inside your Inventory :L Can someone help me? Is there an event like that? Or maybe if that's not possible an event that triggers when you put an item inside a crafting grid (2x2 / 3x3) ? :L

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.