#Place back block

1 messages · Page 1 of 1 (latest)

empty meteor
#

i am using this skript but am getting errors, how do i fix?

    if tool of event-player is wooden shovel:
        cancel event
        set {_block} to block at location of event-block
        set {_shovel} to tool of event-player
        remove 1 durability from {_shovel}
        wait 10 seconds
        if {_block} is air:
            set {_loc} to location of {_block}
            set {_loc} to {_loc} with y + 1
            if {_loc}'s block is air:
                set {_loc}'s block to dirt```


errors:    Can't understand this structure: on destroy of grass or on destroy of dirt
    Line: on destroy of grass or on destroy of dirt:
stark kelp
#

you cant do on destroy of grass or on destroy of dirt

empty meteor
stark kelp
#

yes

empty meteor
# stark kelp yes

so, what will be another way to write on destroy of grass or on destroy of dirt for it to work?

stark kelp
#

on break of thing or thing

empty meteor
#

lemme try'

#

that works but i get more errors i think ik what to do

stark kelp
#

fix them

empty meteor
#

yes

#

that is what i am doing