how to test if my player does a critical hit

Started by crowinsanity13 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to test if my player does a critical hit

i know i know, theres a procedure global trigger for that, but it doesnt work in 2021.2 apparently because i spammed my sword and it still detected it, so it must not be working correctly, please help me figure out how to detect a critical hitheres the code

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player is event entity in…
Sun, 10/17/2021 - 07:05

Player is event entity in your used trigger not sourse

 

You need to use …
Mon, 05/23/2022 - 18:55

You need to use "isvanillacritical" dependency. In Advanced tab, search for logic dependency, and write "isvanillacritical" there. If you check it (this dependency = True), you will be able to check if attack is critical or not.

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Toma400 Is there a way to…
Thu, 08/10/2023 - 11:16

Toma400 Is there a way to detect if the source entity has done a critical hit; I need to use the 'Before Entity is hurt' trigger and I can't figure out how to detect if the hit that would have hurt the entity was critical. It just says that the global trigger does not provide that dependency.