Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rs.setOutput("bottom",false)
- function on()
- rs.setOutput("bottom",true)
- rednet.open("right")
- rednet.broadcast("blaze_farm_no_xp: on;")
- rednet.close("right")
- end
- function off()
- rs.setOutput("bottom",false)
- rednet.open("right")
- rednet.broadcast("blaze_farm_no_xp: off;")
- rednet.close("right")
- end
- function count()
- n=0
- for i=1,16 do
- n=n+turtle.getItemCount(i)
- end
- return n
- end
- while true do
- os.sleep(1)
- nb=count()
- if nb<256 then
- on()
- elseif nb>960 then
- off()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement