Hello,
I try to make an command allowing to teleport randomly, but avoiding certain biomes, i do not know how to do to relaunch the loop, but without having to use command "make player execute command ...".
Have you a idea ? @Donut
My actual skript :
Thank's everyone for helping me !
I try to make an command allowing to teleport randomly, but avoiding certain biomes, i do not know how to do to relaunch the loop, but without having to use command "make player execute command ...".
Have you a idea ? @Donut
My actual skript :
code_language.skript:
command /rtp:
trigger:
loop all players:
remove resistance from the loop-player
apply resistance 10 to loop-player for 30 seconds
set {_test} to location(random number from -1500 to 1500, 100, random number from -1500 to 1500, world("world"))
set {_biome} to biome at {_test}
if biome at {_test} is not desert or desert hills or jungle or jungle hills or mesa or ocean or mushroom island or deep ocean or frozen ocean or frozen river or cold beach or stone beach or ice plains or ice mountains or ice plains spikes:
loop blocks above {_test}:
if loop-block is air:
if block above loop-block is air:
if block 2 above loop-block is air:
set {_randomlocation} to location of loop-block
teleport loop-player to {_randomlocation}
else:
send "teleport the player until have a good biome" #Here I do not know how to do
Thank's everyone for helping me !
Skript Version: 2.2
Skript Author: ?
Minecraft Version: 1.8.8
Errors on Reload : Nothing
Console Errors : Nothing
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums ? Yes
Skript Author: ?
Minecraft Version: 1.8.8
Errors on Reload : Nothing
Console Errors : Nothing
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums ? Yes
Last edited: