Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hoe()
- turtle.select(16)
- local data = turtle.getItemDetail()
- if data.name == "minecraft:diamond_hoe" then
- turtle.equipRight()
- end
- turtle.select(1)
- end
- function axe()
- turtle.select(16)
- local data = turtle.getItemDetail()
- if data.name == "minecraft:diamond_axe" then
- turtle.equipRight()
- end
- turtle.select(1)
- end
- function refuel()
- turtle.select(15)
- turtle.suckUp(10)
- turtle.refuel()
- end
- function dump()
- for i = 1,14 do
- turtle.select(i)
- local data = turtle.getItemDetail()
- turtle.dropDown(64)
- if data then
- print(data.name)
- end
- end
- end
- function wheat()
- turtle.turnRight()
- turtle.select(14)
- turtle.suck(10)
- turtle.turnLeft()
- hoe()
- turtle.forward()
- turtle.up()
- for i=1,10 do
- turtle.select(1)
- turtle.forward()
- axe()
- turtle.digDown()
- hoe()
- turtle.select(14)
- turtle.suckDown()
- turtle.digDown()
- turtle.placeDown()
- end
- for i=1,10 do
- turtle.back()
- end
- turtle.down()
- turtle.back()
- dump()
- end
- function tree()
- axe()
- turtle.select(14)
- turtle.turnLeft()
- turtle.suck(10)
- turtle.turnRight()
- turtle.forward()
- turtle.up()
- turtle.turnRight()
- for i=1,10 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=1,10 do
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- for ii=1,7 do
- turtle.digUp()
- turtle.up()
- end
- for ii=1,7 do
- turtle.digDown()
- turtle.down()
- end
- turtle.select(14)
- turtle.placeDown()
- end
- for i=1,150 do
- print("i: "..i)
- os.sleep(1)
- end
- turtle.select(1)
- turtle.forward()
- turtle.down()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.suckDown()
- turtle.down()
- for i=1,10 do
- turtle.suck()
- turtle.forward()
- end
- turtle.up()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.suckDown()
- turtle.down()
- for i=1,10 do
- turtle.suck()
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i=1,10 do
- turtle.suck()
- turtle.forward()
- end
- turtle.up()
- turtle.forward()
- turtle.turnRight()
- for i=1,9 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- dump()
- end
- print("i need to be one block above the floor")
- print("")
- print("Press Enter when done")
- p = read()
- shell.run("clear")
- print("I need The Following:")
- print("Starting Fuel In Slot 15,")
- print("A CraftBanch Equipped on the LEFT,")
- print("A Hoe Equipped on the RIGHT,")
- print("A axe in Slot 16,")
- print("A chest on every side of me including above and below except infront")
- print("Birtch sapplings in the left chest,")
- print("Seeds In The Right Chest")
- print("Charcol in the top chest")
- print("")
- print("Press Enter when done")
- p = read()
- shell.run("clear")
- print("you need to setup the farm now:")
- print("infront of me have a gap,")
- print("then a row of dirt, 10 long")
- print("to the right of that, A row of water,")
- print("then a row for torches")
- print("then a 6 row gap for water to run to the sapplings")
- print("which is on a row of dirt")
- print("which will be in the row after that")
- print("then another stream going the other way from the other side")
- print("")
- print("Press Enter when done")
- p = read()
- shell.run("clear")
- print("i shall begin")
- on = true
- T = 0
- refuel()
- dump()
- tree()
- wheat()
- while on == true do
- os.sleep(1)
- T = T + 1
- print("Timer: "..T)
- if T > 1500 then
- T = 0
- refuel()
- dump()
- tree()
- wheat()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement