world
World Events¶
Chunk Load¶
- Description: Chunk loaded
-
Parameters:
-
chunk:Chunk- The loaded chunk data - Usage:
Chunk Unload¶
- Description: Chunk unloaded
-
Parameters:
-
position:Vector2D- Chunk coordinates - Usage:
World State¶
Time Update¶
- Description: World time changed
-
Parameters:
-
world_age:int- Total world age in ticks time_of_day:int- Current time of day- Usage:
Spawn Position¶
- Description: World spawn point set
-
Parameters:
-
position:Vector3D- New spawn coordinates - Usage:
Block Changes¶
Block Change¶
- Description: Single block changed
-
Parameters:
-
block:Block- The updated block - Usage:
Multi Block Change¶
- Description: Multiple blocks changed
-
Parameters:
- Usage:
Block Interactions¶
Block Action¶
- Description: Block event (like note block)
-
Parameters:
-
position:Vector3D- Block location action_id:int- Action type IDaction_param:int- Action parameterblock_type:int- Block type ID- Usage:
Python
@client.event
async def on_block_action(position: Vector3D, action_id: int, action_param: int, block_type: int) -> None:
...
Block Break Animation¶
- Description: Block breaking animation
-
Parameters:
-
entity:Entity- Breaking entity position:Vector3D- Block positionstage:int- Break progress (0-9)- Usage:
Python
@client.event
async def on_block_break_animation(entity: Entity, position: Vector3D, stage: int) -> None:
...
Block Entity Update¶
- Description: Block entity updated
-
Parameters:
-
position:Vector3D- Block position entity:BaseEntity- Block entity data- Usage: