Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- if turtle.inspect(true) then
- redstone.setOutput("right",true, 15)
- term.clear()
- term.setCursorPos(1,1)
- print("Found a block in front.")
- print("Turning on the redstone.")
- sleep(1)
- if turtle.inspect(false) then redstone.setOutput("right",false)
- term.clear()
- term.setCursorPos(1,1)
- print("Block no longer in front.")
- print("Turning off the redstone.")
- sleep(1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement