Advertisement
Guest User

Turtle Inventory Redstone

a guest
Jul 7th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. local redstoneDir = "front"
  2.  
  3. while true do
  4. Scan
  5. end
  6.  
  7. function Scan ()
  8. if turtle.getitemCount(1) > 1 then
  9. redstone.setOutput(redstoneDir, true)
  10.  
  11. if turtle.getitemCount(1) = 0 then
  12. redstone.setupOutput(redstoneDir, false)
  13.  
  14. sleep(10)
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement