1

Help! Snowballs!

Narnian Dryad's Avatar Narnian Dryad2/4/17 4:40 pm
1 emeralds 434 2
2/5/2017 3:45 am
ICEThat's Avatar ICEThat
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
Posted by Narnian Dryad's Avatar
Narnian Dryad
Level 10 : Journeyman Warrior
2

Create an account or sign in to comment.

2

1
02/05/2017 3:45 am
Level 18 : Journeyman Dragon
ICEThat
ICEThat's Avatar
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.
1
02/04/2017 11:28 pm
Level 45 : Master Ranger
Greystalk
Greystalk's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome