Started by
the deadly scorpion
on
Topic category: Help with Minecraft modding (Java Edition)
so im making a zombie apocalypse mod and i want the zombies to die only when they are shot in the head, but idk how to do this, can someone help me out with this.
here is the discord channel for my mod incase you wanna join https://discord.gg/mRRpVjZ
Edited by the deadly scorpion on Wed, 07/22/2020 - 21:07
You can only do this with coding...
Are you using a projectile? If you are, then you can detect when the projectile hits an entity, and then check if the entity is a zombie.
If it is, then check if the T position of the projectile is higher than the Y position of the zombie minus some value, (you'll have to do some tweaking for that).
Then if that is true, then damage/kill the zombie, and otherwise, do nothing.
If you want, I might be able to provide a rough procedure for you.
Does anyone have a rough procedure of this I might be able to use?