Help detecting critical hits

Started by TruelyKevin on

Topic category: Help with MCreator software

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help detecting critical hits

I am trying to code in a function that when a specific sword does a critical hit, it lights the enemy on fire. I saw that in event trigger there is one, but I am trying to attach one to an 'if' statement thing. Please help.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
first go in advanced tab and…
Mon, 07/15/2024 - 23:37

first go in advanced tab and search for "logic dependency", and write in it "isvanillacritical"

then the procedure is:

-global trigger: player deals critical hit

-if logic dependency:"isvanillacritical" = true and item in main hand of source entity = "your custom sword"

-set event target entity on fire for ... seconds