See if an enchantment is on the item in the player's hand

Started by Cubix_Gamer on

Topic category: Help with modding (Java Edition)

Last seen on 21:36, 8. Mar 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
See if an enchantment is on the item in the player's hand

Hello, I made a procedure so that each time someone breaks a block they check if the enchantment is on the item. I did it with this code:
https://imgur.com/a/lghuOzn

Now the concern is that I have this little error that I don't know how to fix:
https://imgur.com/oVvDEh4

I hope you will be able to help me and thank you in advance for the reply.
(Ps: I am using version 2020.5 in 1.15.2)

French: https://pastebin.com/MG3zH8Ex

Last seen on 19:25, 27. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Itemstack doesn't work with…
Thu, 03/04/2021 - 17:24

Itemstack doesn't work with Global Trigger "Block is Broken".

Here is a Screenshot what I do:

Block is broken Enchantment Check

Last seen on 21:36, 8. Mar 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you.
Thu, 03/04/2021 - 17:39

Thank you.