Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("kapi")
- n = 6 -- Amount dropped at a time
- while true do
- kapi.clear()
- print("Place flower food in slot 1\nThis program will drop "..n.." at a time, so be prepared.\n")
- sleep(1)
- if turtle.getItemCount(1) == 0 then
- print("I need a refill. Press enter when ready.")
- keypress = kapi.keyread()
- if keypress == keys.enter then --
- print("Thank you. Checking now")
- else
- print("Not valid input, but sure, still checking now.")
- end
- else
- print("Inventory detected. Dropping now.")
- turtle.dropDown(n) -- drops the defined number above at a time
- time = 399 -- 399 second timer for Coal blocks
- while time > 0 do -- Countdown timer
- sleep(1)
- time = time-1
- if time > 0 then
- kapi.clear()
- print("In the process of feeding flowers. Currently snoozing for " ..time.. " seconds.")
- else
- kapi.clear()
- print("Waking up.")
- sleep(1)
- end
- end -- ending countdown timer
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement