#how could i detect if theres a block above a block?

1 messages · Page 1 of 1 (latest)

void light
#

block above %block% is hopper

onyx oriole
sly steeple
onyx oriole
void light
#

idk, what event are you using?

sly steeple
#

im using loop

#

to loop all blocks in radius

void light
#

could you show the code?

sly steeple
#

yeah

#
every 8 seconds:
    loop all players:
        loop all blocks in radius 13 around loop-player:
            if {placedrgens::Coal::%loop-player's uuid%::*} contains loop-block's location:
                set {_l} to block above loop-value-2
                drop 1 of {drops::NOTE1} 1 meters above {_l} without velocity
                chance of 2%:
                    drop 1 of {drops::gem} 1 meters above {_l} without velocity
                    stop         
void light
#

the block here is the loop-block

#

check if the block above that is hopper

sly steeple
void light
#

idk what're you trying to do with it?

sly steeple