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

Started by Cubix_Gamer on Thu, 03/04/2021 - 12:55

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
See if an enchantment is on the item in the player's hand
Thu, 03/04/2021 - 12:55

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 18:46, 11. Apr 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you.
Thu, 03/04/2021 - 17:39

Thank you.