Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- box = peripheral.wrap("right")
- while true do
- event1, player, message = os.pullEvent("chat")
- if ( string.lower(message) == "rain off" ) and ( rs.getInput("left") == true ) then
- rs.setOutput("front", true)
- sleep(1)
- rs.setOutput("front", false)
- elseif ( string.lower(message) == "rain on" ) and ( rs.getInput("left") ~= true ) then
- rs.setOutput("back", true)
- sleep(1)
- rs.setOutput("back", false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment