#How to make a teleport restriction on certain blocks with this skript (below)

1 messages · Page 1 of 1 (latest)

sudden bear
#

ex barriers

heady widget
#
where [block at input is not barrier]``` ig
dull dew
#

i think you can do

where [input is not barrier] lol

sudden bear
#

how would that look scripted? im very new to this

dull dew
#
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

sudden bear
dull dew
#

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?

sudden bear
#

but yeah if it does now that would be amazing

dull dew
#
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

sudden bear
#

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

sudden bear
sudden bear
#

ohhh okay sorry

dull dew
#

also i don't think citizens supports 1.20 anymore

#

They wont support anyone for it

#

i'd also recommend updating to 1.21+

sudden bear
sudden bear
dull dew
#

it does me fine

sudden bear
#

what version are you on?

dull dew
#

oh well

#

it doesnt me either huh

#

it was

#

oh

#

cus i have only air

#

yeah works fine for me

#

now

dull dew
sudden bear
#

wait does it tp me only on barriers in that skript?

dull dew
#

no

#

it tps you on the ground like this