Some more kinetic blocks
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user