Advertisement
natie3

newFrontDoor

Oct 17th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. os.loadAPI("radarAPI.lua")
  2.  
  3. function turn(value)
  4.   rs.setOutput("top", value)
  5.   rs.setOutput("right", value)
  6. end
  7.  
  8. radarAPI.init("bottom", 0.2)
  9. radarAPI.addArea(-1, 1, 1, 3, -1, 1, function() turn(true) end, function() turn(false) end)
  10. radarAPI.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement