This device utilizes a special magnetic switch (reed switch) to open and close the LED circuit when it is close to a magnet. In a nutshell, the redstone lamp has a small circuit with three magnetic switches, a CR2032 coin cell battery, and two orange LEDs. The redstone block has a hunk of neodymium magnets inside of it to close the switches in the redstone lamp when they are close to each other.
Creating the STL files in TinkerCAD took a long time. In order to get the black part that goes around the glowing middle, I had to draw the design in Adobe Illustrator and then import the SVG file into TinkerCAD, where I could extrude the flat shape into a 3D shape. To build the edges of the black box, I just duplicated one side and rotated it into place, then did that for all sides and the lid.
The magnetic switch holder was by far the biggest challenge in this project. Because I wanted the glowstone block and the red stone block to follow the same rules as they do in Minecraft, I had to use THREE magnetic switches. My first print only turned on when the glowstone was oriented in a certain way. My next attempt had 3 switches, but they were all running the same direction, and the glowstone still had to be in a certain position to work. Finally, I figured out that the magnetic switches had to run along all 3 axes (X,Y, and Z).
The redstone block has 4 strong magnets centered inside of the block. Because of the perpendicular magnetic field produced by the magnets, it is best to stand them up inside of the block.
The lid of the box is supposed to be hidden, therefore it is kept closed with some very small magnets placed inside of the box and box lid.
This is the finished lamp. The seem to open the box is undetectable.
There are magnets holding the lid down on this part as well.
Here is the whole lamp taken apart. This picture was taken before the circuit was built and soldered.
This is the soldered (and glued) circuit. It has a magnetic switch running on all three axes.
Add descriptions of mistakes here....