Basin
This commit is contained in:
@@ -97,6 +97,9 @@ export interface BlockComponent<P = any> {
|
||||
on_state_change?(block: BlockRef, params: P, before: Readonly<Record<string, number>>): void;
|
||||
// the tick ServerWorld.schedule_tick asked for came, like neoforge's tick from scheduleTick
|
||||
on_scheduled_tick?(block: BlockRef, params: P): void;
|
||||
// an entity is standing on it, every tick the entity moves, like minecraft's updateEntityAfterFallOn: an item
|
||||
// dropped into a basin going in. items lying still move every tick too
|
||||
on_entity_stand?(block: BlockRef, params: P, entity: EntityRef): void;
|
||||
// placing and neighbor rules are in shared scripts, see BlockRules in bworld/shared
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user