How do I make a sword have infinite durability? [SOLVED]

Started by Trinicrafter10 on Wed, 01/16/2019 - 13:03

Topic category: Help with modding (Java Edition)

Last seen on 17:26, 14. Sep 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a sword have infinite durability? [SOLVED]
Thu, 01/17/2019 - 20:45 (edited)

What do I need to change/edit for this?

Edit: To do this, simply go to the code of your weapon or tool, and change the durability number to '-1' and the number 1 to the left of it to -1.

Edited by Trinicrafter10 on Thu, 01/17/2019 - 20:45
Last seen on 20:54, 23. Jun 2020
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
as far as i know there isn't…
Wed, 01/16/2019 - 14:07

as far as i know there isn't a way to make the durabillity unlimited.

Last seen on 19:12, 21. Oct 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Just set the item durability…
Wed, 01/16/2019 - 17:40

Just set the item durability to zero

Last seen on 17:26, 14. Sep 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Solved. Setting 2 numbers to…
Thu, 01/17/2019 - 20:44

Solved. Setting 2 numbers to -1 in the code of the weapon gives it infinite durability.