1

Command Blocks

JimboPanda123 1/12/15 12:10 pm
298
1/20/2015 12:38 pm
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
Level 41 : Master Enderdragon
21

  Have something to say?

JoinSign in

2

Davekillerish
01/20/2015 12:38 pm
Level 24 : Expert Nerd
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
Imadbush
01/12/2015 12:56 pm
Level 21 : Expert Network
/execute @a ~ ~ ~ detect ~ ~ ~ water 0 tp @p x y x
1

Welcome