Skip to main content

💡 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 powered property tracks whether a signal is currently present; lit toggles on the transition from unpowered → powered.
  • By hand: right-click cycles the lamp on/off. When can_open_with_hand is enabled, powered becomes optional — the lamp can be purely hand-operated.

Properties​

Property NameProperty TypeRequired
litbooleanyes
poweredbooleanno*

* 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)