Jump to content

Heeee

Members
  • Posts

    8
  • 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.