Button-Activated Ceiling Lamp Switch

A hidden ceiling lamp switch uses a simple piston block swapper to replace a solid ceiling block with a glowing Redstone Lamp at the press of a button. This classic contraption keeps your ceiling completely flush and seamless when the lights are turned off. It is an ideal lighting upgrade for survival bases, modern houses, or secret underground rooms.

Displays & LightingBeginnerJava Edition
Button-Activated Ceiling Lamp Switch video tutorial

Video: Simple Minecraft Redstone Ceiling Lamp Switch by Demonairing

How to build it

  1. Prepare the 5x5 Ceiling Space

    Clear a 5x5 area on top of your ceiling with at least 2 blocks of vertical space above it. Punch a 1-block hole one block offset from the exact center where you want the light to shine through into your room.

  2. Lay the Redstone Dust Pattern

    Place Redstone Dust on the ceiling floor around the hole to link the sides where the pistons and repeaters will sit. Leave the hole itself and the block directly next to it empty for the swapping mechanism.

  3. Place the Support Blocks

    Place solid building blocks around the perimeter of your dust pattern and one central input block at the back. These blocks will carry the redstone signal to the outer pistons.

  4. Install the Center Sticky Piston

    Place a Sticky Piston above the ceiling hole, facing downward into the gap. This piston pulls the active block up so the side pistons can push a new one across.

  5. Place the Side Pistons

    Place two regular Pistons on either side of the ceiling hole, facing inward toward each other with a gap in between. They will alternate pushing the ceiling block and the lamp under the sticky piston.

  6. Insert the Ceiling Block and Lamp

    Fill the ceiling hole with a solid block that matches your room's roof. Place your Redstone Lamp directly in front of one of the side regular pistons.

  7. Add the Redstone Repeaters

    Place three Redstone Repeaters around the back of the circuit connecting the input block to the side piston lines and the center sticky piston.

  8. Power the Lamp with a Redstone Torch

    Place a Redstone Torch down next to the center hole spot. This primes the mechanism and keeps the Redstone Lamp lit whenever it is pushed into the active ceiling position.

  9. Connect the Button Input

    Attach a Button Directly to the central input block, or run a wire from a wall button into that block using an extra Redstone Repeater so the block is strongly powered.

How it works

This circuit functions as a classic piston block swapper combined with a toggleable power path:

  • Strong Power Input: Pressing the button strongly powers the main input block, splitting the redstone signal evenly down both outer redstone lines and through the center repeater.
  • Retraction Phase: The signal briefly changes the state of the center Sticky Piston, pulling the currently displayed ceiling block up out of the ceiling hole.
  • Swapping Phase: The Redstone Repeaters delay the pulse just long enough for one of the regular Pistons to push the Redstone Lamp into the center spot, simultaneously shoving the ceiling block over to the opposite side.
  • Lighting the Lamp: While in the center hole, the Redstone Lamp sits adjacent to the powered circuit and Redstone Torch, staying illuminated until the button is pressed again to swap the solid roof block back in.

Tips & variations

  • Wiring a Remote Button: If you run Redstone Dust from a wall button away from the ceiling, you must run the dust into a Redstone Repeater facing directly into the circuit's input block. Plain dust pointing toward the block will not strongly power it, and both side lines will fail to fire together.
  • No Light Bleed on the Roof: The Redstone Lamp is only powered when it is pushed into the active ceiling hole. When swapped out to the side, it stays unlit.
  • Java vs. Bedrock Note: This older design relies on Java Edition sticky piston 1-tick block-dropping/swapping timings. In Bedrock Edition, pistons move slower and sticky pistons do not drop their blocks on short pulses, so this specific swapper layout will not function properly on Bedrock.

Frequently asked questions

How much space do I need above my ceiling to build this?
You need a 5x5 horizontal area and 2 blocks of vertical clearance above your ceiling to fit the pistons and wiring.
Why doesn't the swapper work when I connect a remote button with redstone dust?
A line of redstone dust won't transmit power through the input block to both sides of the circuit. Place a Redstone Repeater directly before the input block so it becomes strongly powered.
Is the Redstone Lamp always turned on inside the roof?
No, the lamp only receives power when it is pushed into the ceiling hole to light up your room. When retracted into the roof space, it turns off.

Components used

More lamp switch / light control