Skip to content

onBlockDestroy

Fired when a client destroys a block.

Note

Returning false here will disallow the client from destroying the block.

Usage

function onBlockDestroy(Client: cl, Vector: position, int: blockId)
    print(string.format("Player %s has broken block at %s", cl:getname(), position))
end

Warning

id seems to always be 0.