Advertisement
awesome8digger

turtle redstone

Jul 12th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. strength = 1
  2.  
  3. while true do
  4.     local success, data = turtle.inspect()
  5.     if success then
  6.         if data.id == 478 then
  7.             redstone.setAnalogOutput("front", strength)
  8.         else
  9.             redstone.setAnalogOutput("front", 0)
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement