Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Startup script:
- --shell.run("delete","farm")
- --shell.run("pastebin","get","G9b13Ncx","farm")
- --shell.run("farm")
- -- W W W
- -- W W
- -- W D W
- -- W W
- -- T W W
- -- D= Pure Daisy.
- -- W=2 block tall wall. Must be walled in or else it wont know where it is in case of chunk/server reloads.
- -- T= Turtle home location(Inventory for finished items bottom, turtle middle and inventory raw ingredients on top).
- --easy move function
- local function movePlace(steps)
- for i=1,steps do
- while not turtle.forward() do
- sleep(1)
- end
- turtle.digDown()
- turtle.placeDown()
- end
- end
- local function home()
- local homecount=0
- while homecount<3 do
- homecount=0
- for i=1,3 do
- if turtle.forward()==true then
- homecount=homecount+1
- --print("Homecounter: "..homecount)
- end
- end
- turtle.turnLeft()
- end
- turtle.turnLeft()
- end
- print("Pure Daisy farm: https://pastebin.com/G9b13Ncx")
- turtle.forward()
- print("Finding home location")
- home()
- print("Home location found")
- while true do
- sleep(60)
- turtle.select(1)
- turtle.suckUp(8)
- if turtle.getItemCount(1) > 0 then
- while not turtle.forward() do
- sleep(1)
- end
- movePlace(2)
- turtle.turnRight()
- movePlace(2)
- turtle.turnRight()
- movePlace(2)
- turtle.turnRight()
- movePlace(2)
- turtle.turnRight()
- turtle.back()
- for i=1,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- else
- print("No ingredients found")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement