Started by
koyote
on
Topic category: Help with Minecraft modding (Java Edition)
I want to create a procedure that when a MOB attacks, it sends the attacker flying straight up, but I don't know how to create it. Can you please tell me how to make it?
it doesn't really make sense what you just said, but i think i understood. What i understood is: when a certain mob attacks something else, the thing attacked gets flying in the air.
you can do this by using the "before entity is hurt" global. trigger, and detect if the mob that attacked is of sub-type (ur mob) using the direct event/entity block if il correct, and then apply levitation to the attacked entity using the normal block you should know
hope this helps
I want to make it so that when a MOB attacks a player, the target is sent flying upwards (by vector override, not by levitation of the potion effect). I'm using a translator, so this may be a funny sentence.