#How to make a teleport restriction on certain blocks with this skript (below)
1 messages · Page 1 of 1 (latest)
where [block at input is not barrier]``` ig
i think you can do
where [input is not barrier] lol
how would that look scripted? im very new to this
command /Airdrop:
trigger:
set {_x} to random number between 9843 and 9996
set {_z} to random number between 9848 and 9967
set {_loc} to highest block at location ({_x}, 0, {_z}) where [input is not barrier]
teleport player to block above {_loc}
I think
hmm
I'm figuring out a solution for you
1s
command /Airdrop:
trigger:
set {_x} to random number between 9843 and 9996
set {_z} to random number between 9848 and 9967
set {_loc} to location {_x}, 0, {_z}
loop all blocks above {_loc}:
continue if loop-value is barrier
teleport player to loop-value
this will do the HIGHEST block meaning air counted
do you want air to be removed?
air didnt count when i ran it
but yeah if it does now that would be amazing
Well yeah I changed it up a bit
command /Airdrop:
trigger:
set {_x} to random number between 9843 and 9996
set {_z} to random number between 9848 and 9967
set {_loc} to location {_x}, 0, {_z}
loop all blocks above {_loc}:
continue if loop-value is barrier
continue if loop-value is air
teleport player to loop-value
try this
as well i do have another question, does the free version of citizens currently not work for 1.20.4? because i downloaded the api and citizens and it came out as red. im wondering if im doing something wrong
alrighty
#1014801630295760897 for these questions please
ohhh okay sorry
also i don't think citizens supports 1.20 anymore
They wont support anyone for it
i'd also recommend updating to 1.21+
it doesnt tp me btw
alrighty
what version are you on?
oh well
it doesnt me either huh
it was
oh
cus i have only air
yeah works fine for me
now
1.21.4
wait does it tp me only on barriers in that skript?