Hi! I wanted to teleport the player to a specific coordinate. I wanted to change the Z-Coordinate and then teleport the player to the changed position. Somehow it doesn't work... Does someone know why? Or am I just dumb...
[doublepost=1659167509,1659116157][/doublepost]yeah, imma close this thing and ask on the discord...
[doublepost=1659167820][/doublepost]FIXED:
Code:
command /train_start:
permission: train.start
trigger:
set {_px} to player's x-coord
set {_py} to player's y-coord
set {_pz} to player's z-coord
set {_pz} to {_pz} + 1
set {_pw} to player's world
set {_p} to player's position
set {_pa} to location {_px}, {_py}, {_pz} in world {_pw}
send "Placed train! (%{_pa}%)"
teleport player to location {_pa}
[doublepost=1659167820][/doublepost]FIXED:
Code:
teleport player to player's location ~~ vector(0,0,1)