Started by
crowinsanity13
on
Topic category: Help with Minecraft modding (Java Edition)
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 hit
Player is event entity in your used trigger not sourse
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.
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.