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

Started by Trinicrafter10 on

Topic category: Help with modding (Java Edition)

Last seen on 04:39, 13. Nov 2023
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 00:25, 22. Feb 2022
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

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

Just set the item durability to zero

Last seen on 04:39, 13. Nov 2023
Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.