How do i look if a item have enchantment

Started by scorpion981 on

Topic category: Help with Minecraft modding (Java Edition)

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

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.