How do i look if a item have enchantment

Started by scorpion981 on Sat, 10/19/2019 - 13:25

Topic category: Help with modding (Java Edition)

Last seen on 01:41, 29. Jun 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
How do i look if a item have enchantment
Sat, 10/19/2019 - 13:25

I want my armor to alway have a specifific enchantment, tick update dont work because the enchantment increase every tick when we use that. What i want its a procedure to check if the item have specific enchantment or another way to make that the item its enchanted one time. Before we can do it with recipe but now this fonctionality its removed.

Sorry for my bad english

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Inside of Item procedures:…
Sat, 10/19/2019 - 16:07

Inside of Item procedures: Get [Item] level of enchantment [enchantmentName]. 5th option from the bottom. Using Provided Item in Minecraft components.

If the item does not have that upgrade then the level will be 0.