Water wheel and creative motor
This commit is contained in:
@@ -6,9 +6,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 and cogwheels turned by a
|
||||
hand crank, 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.
|
||||
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.
|
||||
|
||||
## Sources
|
||||
|
||||
@@ -518,6 +518,17 @@ for visuals, like `getSpeed`. Speeds and spreading are unchanged by it. The tota
|
||||
stressometer will show them. Both a second generator joining a network and one in it stopping change its capacity
|
||||
without changing any speed, so a generator's change always reworks its network.
|
||||
|
||||
**Generators as built** (`scripts/kinetics/generators.ts`). Each is a component with its speed in params, and a capacity
|
||||
in the config. `create:creative_motor` turns from when it's placed, at a speed kept in its tile data. Scrolling the
|
||||
mouse wheel at it (the block is `scrollable`, so it gets `on_scroll`) steps through speeds like 0.5's motor: by 1 near
|
||||
0, then by 4, 16 and 64, by 1 while sneaking, skipping 0, within `max_speed`, and the speed shows above the hotbar.
|
||||
Scrolling works anywhere on the block, not only on a value box, and there's no settings board like 6.0's. Its casing is
|
||||
the block's model and its half shaft turns. `create:water_wheel` scores the fluid flowing past the 4 blocks around it
|
||||
across its axis with `fluid_flow`, like `determineAndApplyFlowScore`, and turns at its speed whichever way the score
|
||||
says. It scores again a tick after a neighbour changes, and every second for flow that changes without that (Create does
|
||||
it every 3 seconds), so a wheel ticks once a second. It can't be placed beside another wheel unless they share an axle,
|
||||
like `canSurvive`. The large water wheel isn't built, and neither is changing a wheel's planks.
|
||||
|
||||
**Chunk borders.** Tile data keeps speeds across unloading. bworld keeps every tile in memory and reloads a chunk when a
|
||||
block in it is read, so the walk sees a whole network, and Create's separate count of unloaded members' stress
|
||||
(`KineticNetwork`'s unloaded stress) isn't needed.
|
||||
|
||||
Reference in New Issue
Block a user