Advertisement
stefbrad15

MCFlowerFeeder

Dec 21st, 2020 (edited)
933
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Running Flower Feeder")
  2.  
  3. time = 0
  4. fed = false
  5.  
  6. while turtle.getItemCount(1) > 0 do
  7.   if redstone.getInput("right") then
  8.     fed = false
  9.     time = 0
  10.   end
  11.   sleep(0.1)
  12.   if not fed then
  13.     time = time + 0.1
  14.   end
  15.   if time > 2 and not fed then
  16.     turtle.drop(1)
  17.     print("Feeding the flower")
  18.     fed = true
  19.     time = 0
  20.   end
  21. end
Advertisement
RAW Paste Data Copied
Advertisement