Some more kinetic blocks
This commit is contained in:
@@ -82,12 +82,15 @@ The torch gives power out of every side but the block it's on, and strongly into
|
||||
| Param | Default | Meaning |
|
||||
| ---------- | ---------- | ------------------------------------------------------------- |
|
||||
| `state` | | A 1 bit state it keeps whether it's powered in: 1 while it is |
|
||||
| `power` | | A 4 bit state it keeps how much power comes in in, 0 to 15 |
|
||||
| `facing` | | Which way it points, see [Sides](#sides) |
|
||||
| `in` | every side | The sides it takes power from |
|
||||
| `connects` | `in` | The sides wire joins |
|
||||
|
||||
The component works out its input when the block is placed and whenever a block beside it changes, and sets the state,
|
||||
which does nothing when it's already right. It's on or off: a state for how much power comes in isn't supported yet.
|
||||
which does nothing when it's already right. A block that does more the more power it gets, like Create's adjustable
|
||||
chain gearshift, also names a 4 bit `power` state, which gets the most power coming into any of its sides. It's set
|
||||
before `state`, so `on_state_change` sees both up to date when `state` changes.
|
||||
|
||||
A trapdoor lists it with a `powered` state:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user