Fires when a Player breaks a block
Last updated 11 months ago
Events.BlockBreak(function(event) if (not event.player) then return end -- Only consider ceramic block breaks if (event.blockType == ItemType.BLASTPROOF_CERAMIC) then InventoryService.giveItem(event.player, ItemType.FIREBALL, 1, true) end end)
Player who broke the block.
Position in the world the block was broken at.
The type of the block being placed