This commit is contained in:
2026-10-28 22:26:42 -03:00
parent b8cccb86ff
commit 5d64b801a3
14 changed files with 480 additions and 12 deletions
+3
View File
@@ -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
}