Started by
floofimations
on
Topic category: Help with Minecraft modding (Java Edition)
hello yall, its me again. im trying to make a joke mob that chases you at high speed and launches you in the air when it hits you. though, i cant seem to figure out how to do this. its supposed to be like a way stronger version of the iron golem attack (where it tosses you back a bit). does anyone know how to do this? i think an easier way to explain it is that i need to boost the knockback of my custom mob by quite a lot. any help is appreciated.
I think I know a way: when mob hits a mob it effects the mob it hit with levitation 12 for 5 seconds.
I hope that helps :)
but how though cuz there is no procedure that says if mob hits something
What you have to do is create a procedure, make it activate when the global trigger "entity is attacked" and run tests checking if the attacker is your mob, and if so, it gives the victim levitation
Thank you man these procedures are very confusing to me