Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Automatic Wheat Farm BY: ZakyyyHD
- -- © Copyright Zak Nesler 2012 - 2013, All Rights Reserved
- -- Protected under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported (http://creativecommons.org/licenses/by-nc-nd/3.0/)
- -- NOTICE! THIS PROGRAM IS NOT WORKING DUE TO MINECRAFT UPDATE, ADDING THE RESTRICTION THAT YOU SOMETIMES HAVE TO USE MORE THAN ONE BONE MEAL TO GROW THE PLANT. DO NOT USE!
- -- Place Seeds in Slot 1.
- -- Place BoneMeal in Slot 2.
- -- Turtle will TURN AROUND to supply himself with more Bonemeal if necessary.
- -- Turtle will TURN RIGHT to empty his filled slots excluding slots 1 - 2.
- -- Functions
- -- Turn Around
- function turnA()
- turtle.turnRight()
- turtle.turnRight()
- end
- -- BoneMeal
- function boneM()
- turtle.select(2)
- turtle.place()
- turtle.select(1)
- end
- -- Place Seed
- function placeS()
- turtle.select(1)
- turtle.place()
- end
- -- Dig Wheat
- function digW()
- turtle.dig()
- end
- -- Main Loop
- while true do
- placeS()
- boneM()
- if turtle.getItemCount(2) < 1 then
- turtle.select(2)
- turnA()
- turtle.suck()
- turnA()
- turtle.select(1)
- end
- digW()
- if turtle.getItemCount(16) > 0 then
- turtle.turnRight()
- for i = 3, 16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnLeft()
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement