How do i look if a item have enchantment

Started by scorpion981 on

Topic category: Help with modding (Java Edition)

Last seen on 01:42, 12. Feb 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i look if a item have enchantment

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
Points:

User statistics:

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