Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local aspectCountValue = 64 -- change to 0 for the turtle at the farm
- while true do
- local m = peripheral.wrap("front")
- if m ~= nil then
- print("Jar detected")
- local aspectCount = m.getAspectCount("Herba")
- if aspectCount == aspectCountValue then
- print("Jar is full, sending to farm.")
- turtle.dig()
- else
- print("Jar isn't full. It only has " .. aspectCount .. ".")
- end
- else
- print("No Jar, check again in 60.")
- end
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement