Advertisement
antisocialian

Untitled

Feb 8th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local aspectCountValue = 64 -- change to 0 for the turtle at the farm
  2.  
  3. while true do
  4.   local m = peripheral.wrap("front")
  5.   if m ~= nil then
  6.     print("Jar detected")
  7.     local aspectCount = m.getAspectCount("Herba")
  8.     if aspectCount == aspectCountValue then
  9.       print("Jar is full, sending to farm.")
  10.       turtle.dig()
  11.     else
  12.       print("Jar isn't full. It only has " .. aspectCount .. ".")
  13.     end
  14.   else
  15.     print("No Jar, check again in 60.")
  16.   end
  17.   sleep(60)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement