Help detecting critical hits

Started by TruelyKevin on

Topic category: Help with MCreator software

Active 4 months ago
Joined Jul 2024
Points:
44

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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.

Active 11 hours ago
Joined Apr 2024
Points:
340

User statistics:

  • Modifications: 7
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 424
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

Active 2 months ago
Joined Jan 2025
Points:
9

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Why my code viewer became…
Thu, 01/30/2025 - 16:46

Why my code viewer became empty after global trigger "player deals critical hit"?