Advertisement
VaMinion

Blockdetection

Oct 16th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. term.clear()
  2. print("Running Gatekeeper protocol.")
  3.  
  4. while true do
  5.   if turtle.detectUp() then
  6.     redstone.setOutput("front", true)
  7.   elseif not turtle.detectUp() then
  8.     redstone.setOutput("front", false)
  9.   end
  10.   os.sleep(3)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement