Hello! I have a question: How do I make an item unbreakable?

Started by Muzaki on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I have a question: How do I make an item unbreakable?

Ive already tried to use set NBT text, number, and logic with no luck

if anybody knows how any help is appreciated, thanks!

Last seen on 16:31, 21. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think in 2 ways for making…
Thu, 07/29/2021 - 04:19

I think in 2 ways for making an item unbreakable

First is put this procedure in the item trigger names "tick in inventory"

as

 

but if you use this way the ranged weapons can't be unbreakable.
 

but you can use this procedure in "when item use"

awsdasd

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That helps, thanks!
Thu, 07/29/2021 - 04:48

That helps, thanks!

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
altho i actually meant like…
Thu, 07/29/2021 - 04:53

altho i actually meant like the tag that already exists in-game that adds the "Unbreakable" (ex. in vanilla youd access it via /give @s iron_sword{Unbreakable:1b}) text to the bottom, but this is good enough for now