Juices on the mechanical press !

This commit is contained in:
2026-10-31 00:03:03 -03:00
parent 3734f5707a
commit 23d02c5229
11 changed files with 381 additions and 62 deletions
+7 -1
View File
@@ -12,12 +12,18 @@ export const PRESS_AT = CYCLE / 2;
export const SCAN_TICKS = 10;
// a pressing press's "press" client data, what its visual moves the head by: the step of the cycle it was at when this
// was set, and how many steps a tick it's going
// was set, how many steps a tick it's going, and whether it's pressing into a basin, which its head goes further down
// into, by BASIN_TRAVEL
export interface PressShown {
steps: number;
rate: number;
basin?: boolean;
}
// how far down the head goes into a basin two blocks under it, in blocks, like PressingBehaviour.Mode.BASIN's
// headOffset. on the ground it's one
export const BASIN_TRAVEL = 22 / 16;
// steps of the cycle a tick at a speed in rpm, like getRunningTickSpeed: 1 almost still, up to 60 at 512 rpm
export function cycle_rate(speed: number): number {
if (speed === 0) return 0;