First you need to build a beacon
You Will need stained glass a took 3 diffrent colors
You Will Also need those
First you need to build a mashine that never stop
Now IT should blinking
Place the glass 1 block beside the beacon
Now add redstone from The blinking mashine to the pistons DONE!