> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/events/blockbreak.md).

# BlockBreak

```lua
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)
```

### Parameters

#### player: [Player](/scripting/bedwars-scripting/objects/player.md) | nil

Player who broke the block.

#### position: [Vector3](https://create.roblox.com/docs/reference/engine/datatypes/Vector3)

Position in the world the block was broken at.

#### blockType: [ItemType](/scripting/bedwars-scripting/types/itemtype.md)

The type of the block being placed
