đĄ Toggleable Lamp Block
Toggleable Lamp Block toggles its lit state between on and off. It can be switched by redstone, by hand, or both.
- By redstone: each rising edge of a neighbor signal flips the lamp between lit and unlit. The
poweredproperty tracks whether a signal is currently present;littoggles on the transition from unpowered â powered. - By hand: right-click cycles the lamp on/off. When
can_open_with_handis enabled,poweredbecomes optional â the lamp can be purely hand-operated.
Propertiesâ
| Property Name | Property Type | Required |
|---|---|---|
| lit | boolean | yes |
| powered | boolean | no* |
* Required when can_open_with_hand is false; optional when true.
Exampleâ
blocks:
default:copper_coil:
behavior:
type: toggleable_lamp_block
can_open_with_hand: false # allow right-click to toggle (default false)
