Minecraft Wave Machine

this is how to make a Minecraft wave machine
The Power Source

in the first step we will need 3 red stone, 1 comparator, 1 lever.
The three 3 red stone will be placed in corner like shape which the comparator placed in the open space. Then the lever behind the comparator.
Adjust the Comparator

Click on the comparator so the light glows red.
Connect to Redstone

you’ll need 5 or more redstone and one repeater.
connect the redstone to the redstone of the last build and go in a straight line. Then place a repeater at the end
Repeaters

place one repeater in front of the first repeater (separated by one block)
Then place a repeater every other block for however far you want it to go (next to the second repeater)
More Repeaters

Place a repeater one block back / in between each of the first repeaters
Repeater Adjust

click on all the sideways repeaters once.
Put redstone in between the sideways repeaters
Pistons

On the front facing repeaters place a sticky piston with a slime block on top
In between the side repeaters place redstone
The Minecart

Place a dirt clock on each of the slime blocks
Next place a track on top of that
Then place a minecart on the tracks
Final Step

destroy the track and slime block then go click the lever. It should work