variables: {X.%player%} = 0 {Z.%player%} = 0 command /rtp: trigger: set {X.%player%} to random integer between 1 and 10000000 set {Z.%player%} to random integer between 1 and 10000000 execute console command "tp %player% %{X.%player%}% 90 %{Z.%player%}%" execute console command "effect %player% 8 10 255 true" on rightclick: line 1 is "[AUTO]" line 2 is "[RTP]" line 3 is "" line 4 is "" execute player command "rtp"