Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Setup and variables
- owner = "Bipedsnowman"
- redProxy = peripheral.find("redstoneIntegrator")
- rainside="left"
- clearside="right"
- thunderside="back"
- --Functions
- function repeatMe()
- while true do
- event, username, message = os.pullEvent("chat")
- print(username .. " just wrote " .. message)
- if username == owner and message == rain then
- callRain()
- end
- end
- end
- function callRain()
- redProxy.setOutput(rainside, true)
- sleep(0.1)
- redProxy.setOutput(rainside, false)
- end
- function callClear()
- redProxy.setOutput(clearside, true)
- sleep(0.1)
- redProxy.setOutput(clearside, false)
- end
- function callThunder()
- redProxy.setOutput(thunderside, true)
- sleep(0.1)
- redProxy.setOutput(thunderside, false)
- end
- --Program body
- if redProxy then
- print ("redstone proxy conected")
- end
- repeatMe()
Advertisement
Add Comment
Please, Sign In to add comment