#function help

1 messages · Page 1 of 1 (latest)

fresh aspen
#
    set {loc} to location at event-block
    blockReplacer(smooth stone, bedrock)
# b = broken block f = replacement block
function blockReplacer(b: block, f: block):
    if block at {loc} is {_b}:
        set block at {loc} to {_f}
        wait 2 seconds
        set block at {loc} to {_b}```

How do I make it so I can use blocks in a function
#

I have also tried just saying smooth stone and it gives the same error message