About mob attacks

Started by koyote on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
About mob attacks

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?

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it doesn't really make sense…
Thu, 11/02/2023 - 22:55

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

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to make it so that…
Fri, 11/03/2023 - 07:49

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.