1

Wall that doesn't let players pass, but allows snowballs.

RadiantGaming 7/7/16 9:07 am
332
7/7/2016 9:42 am
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
Posted by
RadiantGaming
Level 21 : Expert Button Pusher
17

  Have something to say?

JoinSign in

4

RadiantGaming
07/07/2016 9:42 am
Level 21 : Expert Button Pusher
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.
1
Lexxer
07/07/2016 9:39 am
Level 29 : Expert Caveman
Just 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 "unpassable" to the X Y and Z coordinate.
This will only affect players.
1
Dlljs
07/07/2016 9:18 am
Level 40 : Master Nerd
Put in a repeating (purple) command block:
/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
1
RadiantGaming
07/07/2016 9:28 am
Level 21 : Expert Button Pusher
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?
1

Welcome