Started by
lanto
on
Topic category: Help with Minecraft modding (Java Edition)
To be more specific, i mean that if any entity uses this weapon in specific they instantly die.
I added this: https://ibb.co/zV4GsCM to the "When Ranged Item is Used" event inside the weapon, and it successfully kills me when i use the weapon, but doesn't kill the entity when it uses it.
I'm guessing this is because the entity isn't actually triggering the procedure because it isn't actually using the weapon, just shooting the bullets.
If that's the case, how do i make the entity run a procedure when shooting?
Edited by lanto on Sun, 05/15/2022 - 22:34
It looks like with the way is set up it is trying to have the entity do /kill on itself,
Maybe instead you could do this?
https://imgur.com/lQZ830c
Sorry forgot to answer the actual question, I don't think its possible to have entities do / commands sense they aren't players
Maybe try doing kill @s instead of just kill, and if your wondering yes entities can run commands
entities can perform commands and have the highest command level 4 because they don't by default use them however you may just set their health to 0