1

Command Blocks

JimboPanda123's Avatar JimboPanda1231/12/15 12:10 pm
1 emeralds 274 2
1/20/2015 12:38 pm
Davekillerish's Avatar Davekillerish
Hi,
i am making a map and want it so it you touch water, you return to your spawn point. I was wondering how you do that as i have seen it on many mini-games i have played.
Thanks
Posted by JimboPanda123's Avatar
JimboPanda123
Level 41 : Master Enderdragon
21

Create an account or sign in to comment.

2

1
01/20/2015 12:38 pm
Level 23 : Expert Nerd
Davekillerish
Davekillerish's Avatar
or set a scoreboard for distance swam
lets call it GAB
testfor @p[score_GAB_min=1]
Another command block
tp @p[score_GAB_min=1] X Y Z
Another Command Block
scoreboard players set @a[score_GAB_min=1] GAB 0
1
01/12/2015 12:56 pm
Level 20 : Expert Network
Imadbush
Imadbush's Avatar
/execute @a ~ ~ ~ detect ~ ~ ~ water 0 tp @p x y x
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome