1
Help! Snowballs!
I am making a mini-game map, and one of the games I need snowballs to do damage to a player when it hits them. I tried messing around with /effect ~ etc., but I can't figure it out. I just need a command that will take away preferably half a heart when it hits the player.
PS: IF your command works, and IF I can finish this map ;D ,
I will give you credit..
PPS: It's minecraft 1.11.2
PS: IF your command works, and IF I can finish this map ;D ,
I will give you credit..
PPS: It's minecraft 1.11.2
Create an account or sign in to comment.
2
1
The above command would have to be delayed by maybe 2 ticks after the snowball is detected.
If on single player (which it clearly isn't), have an always on repeat block running a detector for a snowball, with a comparator and repeater running off it to a command block with the above command. This makes sure the damage effect isn't affecting the thrower. Try refining this concept for multiplayer.
If on single player (which it clearly isn't), have an always on repeat block running a detector for a snowball, with a comparator and repeater running off it to a command block with the above command. This makes sure the damage effect isn't affecting the thrower. Try refining this concept for multiplayer.
1
I would say do something like this
/execute @e[type=snowball] ~ ~ ~ /effect @p[r=2] instant_damage
although this might hit the thrower. The basic idea is that you need to damage the player before the snowball entity disappears.
/execute @e[type=snowball] ~ ~ ~ /effect @p[r=2] instant_damage
although this might hit the thrower. The basic idea is that you need to damage the player before the snowball entity disappears.