Started by Airflected on Mon, 11/16/2020 - 20:16
Topic category: Help with modding (Java Edition)
I've made a scythe, and I want to make it so that, once the player right clicks, a bunch of enemies would be hit in front of them. e.g there are 5 zombies in front of you, you right click, and all 5 are hit. Is there a way to make something like that?
Hmmm ... For example, when you right-click on the air you can launch a fire ball that explodes
No, not exactly. I was thinking they would just take damage when you right click, but using a fireball would work for me too.
When right clicked, you could add a damage potion effect for 1 second (idk exactly the time but you need to make that they take damage once) to all entities in a radius
That’s actually really big brain
You can do it with direction of you, so it doesn't damage in a radius but damage all entities of front of you.
I don't know how to choose the mobs in front of me, that's what I don't know how to do now.
Help please? ;-;