Advertisement
Overcontrol1

Door Server

Jan 8th, 2023
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local GEARSHIFT = "black"
  2. local MODEM_SIDE = "top"
  3.  
  4. rednet.open(MODEM_SIDE)
  5.  
  6. local function main()
  7. local id, message = rednet.receive();
  8.  
  9. if type(message) == "table" then
  10. if message[1] == "door" then
  11. if message[2] == true then
  12. redstone.setOutput("back", true)
  13. elseif message[2] == false then
  14. redstone.setOutput("back", false)
  15. end
  16. end
  17. end
  18. main()
  19. end
  20.  
  21. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement