Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- local x = 0
- local args = {...}
- local total_pos = tonumber(args[1])
- local monitor = peripheral.find("monitor")
- if monitor then
- term.redirect(monitor)
- end
- print("Starting buggy_trigger with " .. total_pos .. " nodes.")
- while true do
- if os.pullEvent("redstone") then
- if redstone.getInput("bottom") then
- x = x + 1
- print("Node " .. x)
- shell.run("buggy_rotate", x)
- if x == total_pos then
- x = 0
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment