SHARE
TWEET

startup.lua

a guest Dec 15th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Starting AutoFarmer")
  2.  
  3. local cable = peripheral.wrap("top")
  4.  
  5. while true do
  6.     if turtle.getItemCount() == 0 then
  7.         cable.findItem("minecraft:dye@15").export("down")
  8.         if turtle.getItemCount() == 0 then
  9.             cable.findItem("minecraft:bone").export("down", 21)
  10.             turtle.craft()
  11.             if turtle.getItemCount() == 0 then
  12.                 cable.findItem("minecraft:bone_block").export("down", 7)
  13.                 turtle.craft()
  14.             end
  15.         end
  16.     end
  17.     turtle.place()
  18. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top