Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. rs.setOutput("bottom",false)
  2. function on()
  3. rs.setOutput("bottom",true)
  4. rednet.open("right")
  5. rednet.broadcast("blaze_farm_no_xp: on;")
  6. rednet.close("right")
  7. end
  8. function off()
  9. rs.setOutput("bottom",false)
  10. rednet.open("right")
  11. rednet.broadcast("blaze_farm_no_xp: off;")
  12. rednet.close("right")
  13. end
  14. function count()
  15. n=0
  16. for i=1,16 do
  17. n=n+turtle.getItemCount(i)
  18. end
  19. return n
  20. end
  21. while true do
  22. os.sleep(1)
  23. nb=count()
  24. if nb<256 then
  25. on()
  26. elseif nb>960 then
  27. off()
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement