This is a W.I.P it has not been tested and its inspired in some youtube videos. If anyone is willing to try it I can correct it if there are any problems. You should use 5x5x5 magnets and linear hall sensors.
You can print all at once or one by one. Let me know your results!