Basin
This commit is contained in:
@@ -7,8 +7,9 @@ possible, and to stay fast on both the server and the client when a world has th
|
||||
Built so far: the importer and Create's imported blocks and items, R1, R2, R3 (`transformed`, `rotating`, `fluid` and
|
||||
items), R4, R5, R8, S0, S4, S7, S12, stonecutting from S9, the start of P1's kinetics (shafts, cogwheels, gearboxes,
|
||||
encased shafts and cogs, clutches, gearshifts and chain drives turned by a hand crank, creative motor or water wheel,
|
||||
with stress and overstress), 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.
|
||||
with stress and overstress), Create's pressing recipes, the mechanical press pressing items on the ground, and the basin
|
||||
holding items and fluids. Facts about Create come from reading `ports/create1.21.1` and `ports/create1.19.3`, and facts
|
||||
about bworld from its source.
|
||||
|
||||
## Sources
|
||||
|
||||
@@ -603,6 +604,17 @@ rate as `press` client data whenever the rate changes, and the visual moves the
|
||||
while it runs at a steady speed. Pressing on belts, depots and basins, its stress impact, sound and particles come with
|
||||
those.
|
||||
|
||||
The basin (`scripts/processing/basin.ts`) holds what Create's input inventory and tanks do: up to 9 kinds of item, a
|
||||
stack of each, and 2 tanks of 1000 mB, a fluid each. An item that lands in it goes in through the engine's
|
||||
`on_entity_stand`, like `updateEntityAfterFallOn`, so it doesn't tick. A full fluid container used on it empties into
|
||||
it, an empty one fills from its first tank, and an empty hand takes every item out, like `BasinBlock.useItemOn`. What's
|
||||
in it is only its `items` and `tanks` client data, and its visual draws them like `BasinRenderer`: the fluids side by
|
||||
side, filling faster at first, and the items in a ring over them, bobbing while there's fluid. Water and lava buckets
|
||||
aren't fluid containers in bworld, so they don't fill it yet. Its output inventory and tanks, its facing toward an
|
||||
output, and the item and fluid capabilities (S1, S2) come with mixing and the logistics that move things in and out. For
|
||||
it the engine got `on_entity_stand`, and an item inside a block only floats out of it when it's inside what it bumps
|
||||
into, like Minecraft's `noCollision`, so items can lie in a hollow.
|
||||
|
||||
### P4: Logistics
|
||||
|
||||
- R3's `scrolling` type.
|
||||
|
||||
Reference in New Issue
Block a user