Hello, can someone tell my why my custom enchantment doesn't work?

Started by Valsier on

Topic category: Help with modding (Java Edition)

Last seen on 13:56, 7. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, can someone tell my why my custom enchantment doesn't work?

So, I was trying to create an enchantment called Zeus' Wrath that would go on a sword and strike a lightning on the entity being attacked upon critical hit. I used a Procedure to test if the weapon was a diamond sword and if it had the enchantment, it would deal 10 damage and strike a lightning, but for some reason it doesnt work. Even if the diamond sword has the custom enchantment, it's in no way different from an unenchanted sword. Can someone explain to me why that is and possibly show me a solution? Thanks in andvance.proof

Last seen on 13:56, 7. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know why, but the…
Tue, 02/02/2021 - 09:23

I don't know why, but the image doesn't show. To see the proof right click on the image icon and open it in a new tab.

Last seen on 13:56, 7. Feb 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I solved this, but then…
Tue, 02/02/2021 - 10:49

I solved this, but then another problem appeared. I want the lightning to appear only on critical hit, but it does even when its a normal one.

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm... i dont know how to…
Wed, 02/17/2021 - 19:21

hmm... i dont know how to change that