Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function CheckForEmptyBottles()
- deficit=0
- turtle.select(1)
- bottles=turtle.getItemCount(1)
- if bottles<64 then
- turtle.suck()
- end
- end
- function FillChest()
- for i=2,15 do
- turtle.select(i)
- turtle.dropUp()
- end
- end
- function SlotCheck()
- deficit=0
- for i=2,15 do
- turtle.select(16)
- water=turtle.compareTo(i)
- if water==false then
- deficit=deficit+1
- end
- end
- return deficit
- end
- function Refill(bottles)
- turtle.select(1)
- for i=1,bottles do
- turtle.placeDown()
- end
- end
- while true do
- CheckForEmptyBottles()
- FillChest()
- fred=SlotCheck()
- Refill(fred)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment