Advertisement
rhn

Block detector turtle

rhn
Apr 11th, 2015
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. turtle.select(1)
  2. while true do
  3.     if turtle.compare() == true then
  4.         redstone.setOutput("bottom", true)
  5.         --print("RS on")
  6.     else
  7.         redstone.setOutput("bottom", false)
  8.         --print("RS off")
  9.         sleep(20)
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement