ThatGravyBoat

Untitled

Feb 1st, 2022 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. --Floor Button
  2. --Consts--
  3. local stateManager = 6
  4. peripheral.find("modem", rednet.open)
  5.  
  6. while true do
  7. local event, side, x, y = os.pullEvent("monitor_touch")
  8.  
  9. if side == "monitor_3" then
  10. rednet.send(stateManager, "changeFloor1")
  11. else
  12. rednet.send(stateManager, "changeFloor0")
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment