Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Ctrl + T to terminate the program")
- print("Which side should the turtle pulse?")
- print("Valid options: front, back, left, right, top, bottom")
- local side = read()
- -- Validate input
- local validSides = {front=true, back=true, left=true, right=true, top=true, bottom=true}
- if not validSides[side] then
- print("Invalid side! Defaulting to 'front'")
- side = "front"
- end
- print("Redstone pulsing started on " .. side .. " side...")
- while true do
- redstone.setOutput(side, true)
- sleep(0.1)
- redstone.setOutput(side, false)
- sleep(0.5)
- end
Advertisement
Comments
-
- now asks for a side to pulse before doing the loop
Add Comment
Please, Sign In to add comment