Expand description
Block breaking state machine for players.
This module implements the logic from Javaโs ServerPlayerGameMode for handling
block breaking, including progress tracking and validation.
Structsยง
- Block
Breaking Manager - Manages the block breaking state for a player.
Enumsยง
- Block
Break Action - Block break action types.
Functionsยง
- drop_
block_ ๐loot - Drops loot for a destroyed block using its loot table.
- get_
destroy_ ๐progress - Gets the destroy progress per tick for a block.
- is_air ๐
- Checks if a block state is air.
- requires_
correct_ ๐tool - Checks if a block requires the correct tool for drops.