Some more kinetic blocks

This commit is contained in:
2026-10-28 22:10:48 -03:00
parent fa0748a9c5
commit b8cccb86ff
35 changed files with 670 additions and 73 deletions
+3
View File
@@ -154,6 +154,9 @@ export interface SharedBlock extends Position {
// of the six they look most toward, up and down too, like getNearestLookingDirection. sneaking is whether they hold the
// sneak key, for blocks placed another way round when they do
export interface BlockPlacement extends Position {
// the item placing it, like minecraft's getItemInHand: usually the block's own, or another that places it, like a
// vertical gearbox placing a gearbox on its side
readonly item: Id;
readonly face: Face;
readonly hit: readonly [number, number, number];
readonly facing: "north" | "east" | "south" | "west";