Mechanical press !

This commit is contained in:
2026-10-15 13:07:09 -03:00
parent b43e8fe8b8
commit c7a2392591
15 changed files with 403 additions and 86 deletions
+12 -3
View File
@@ -5,9 +5,9 @@ redstone, contraptions, trains, equipment, decoration and schematics. It aims to
possible, and to stay fast on both the server and the client when a world has thousands of moving parts.
Built so far: the importer and Create's imported blocks and items, R1, R2, R3 (`transformed` and `rotating`), R4, R5,
R8, S0, S4, S7, S12, stonecutting from S9, the start of P1's kinetics (shafts and cogwheels turned by a hand crank), and
Create's pressing recipes. Facts about Create come from reading `ports/create1.21.1` and `ports/create1.19.3`, and facts
about bworld from its source.
R8, S0, S4, S7, S12, stonecutting from S9, the start of P1's kinetics (shafts and cogwheels turned by a hand crank),
Create's pressing recipes, and the mechanical press pressing items on the ground. Facts about Create come from reading
`ports/create1.21.1` and `ports/create1.19.3`, and facts about bworld from its source.
## Sources
@@ -547,6 +547,15 @@ Check: new worlds have zinc and Create's stones, and casings join up.
Check: ores go through crushing, washing and smelting into more ingots than a furnace alone gives, and brass is mixed in
a heated basin.
As built so far: the mechanical press, pressing items lying on the ground under it (`PressingBehaviour`'s world mode, in
`scripts/processing/press.ts` and the server script). While it turns it looks for an item with a pressing recipe every
10 ticks, then runs its 240 step cycle at Create's speed for its rpm and presses at the bottom: a lone item turns into
its result, and from a stack one is pressed and its results land beside it, like `bulkPressing` off. It stops ticking
while it's still, and a kinetic block that starts turning ticks again. Clients get the step the cycle was at and its
rate as `press` client data whenever the rate changes, and the visual moves the head from those, so nothing is sent
while it runs at a steady speed. Pressing on belts, depots and basins, its stress impact, sound and particles come with
those.
### P4: Logistics
- R3's `scrolling` type.