1
Wall that doesn't let players pass, but allows snowballs.
I need a way of making some sort of barrier that either teleports a player somewhere or kills them, but allows snowballs to pass. Help?
Cheers
Radiant
Cheers
Radiant
Create an account or sign in to comment.
4
LexxerJust create an invisible entity (WhitherSkull or ArmorStand) and execute a command near it, if a player is near that entity./execute @e[type=WitherSkull,name="unpassable"] ~ ~ ~ /tp @a[type=Player,r=2] X Y Z
Would teleport a player within a radius of 2 from the witherSkull named "unpassed" to the X Y and Z coordinate.
This will only affect players.
Cool, I'll try it out. Cheers man.
Just create an invisible entity (WhitherSkull or ArmorStand) and execute a command near it, if a player is near that entity.
Would teleport a player within a radius of 2 from the witherSkull named "unpassable" to the X Y and Z coordinate.
This will only affect players.
/execute @e[type=WitherSkull,name="unpassable"] ~ ~ ~ /tp @a[type=Player,r=2] X Y Z
Would teleport a player within a radius of 2 from the witherSkull named "unpassable" to the X Y and Z coordinate.
This will only affect players.
Put in a repeating (purple) command block:
X, Y & Z are the coordinates of where the barrier is.
More info: http://minecraft.gamepedia.com/Commands#kill
/kill @e[type=!Snowball,x=X,y=Y,z=Z,r=0,rm=5
X, Y & Z are the coordinates of where the barrier is.
More info: http://minecraft.gamepedia.com/Commands#kill
It's supposed to kill players. And it's a lot of space, and I'm lazy so if there's any simpler solutions?
EDIT: I missed the exclamation mark. But is there any quicker way to set it up?
EDIT: I missed the exclamation mark. But is there any quicker way to set it up?