Topic category: Help with Minecraft modding (Java Edition)
Hello, I would like to know if anyone knows how to check if a raid has finished, and more specifically, if a raid has finished in a victory or not.
The block "is raid happening at x y z" is useful to know if a raid is ongoing and I think it would work if I made a procedure with trigger "entity dies" and check if a raid is happening atx y z, and then checked again after some seconds. That would allow me to check if a raid is finished, theoretically, even if it may be buggy (because what if the last mob to die in the raid is out of the range of the village, so it doesn't count? If so, the last mob to die in the raid radius would check for the raid too early).
Anyways, what I have no idea about is how could I check if the raid has ended on a victory or a defeat. Is there even a way to?
If you know a way to check for any of these things, please tell me.