Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch = true
- mon = peripheral.wrap("monitor_0")
- while true do
- local event, side, xPos, yPos = os.pullEvent("monitor_touch")
- if switch == true then
- switch = false
- redstone.setOutput("back",false)
- sleep(0.5)
- elseif switch == false then
- switch = true
- redstone.setOutput("back",true)
- sleep(0.5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement