Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("edit 2")
- f=1
- turn=0
- local farm=function(begin)
- print(begin)
- local geolyzer=require("component").geolyzer
- local robot=require("robot")
- local data=geolyzer.analyze(3)
- local datad=geolyzer.analyze(0)
- local success=robot.detect()
- if success==true then
- check=data.name
- check2=datad.name
- wheat="minecraft:wheat"
- cobl="minecraft:cobblestone"
- dirt="minecraft:dirt"
- stone="minecraft:stonebrick"
- planks="minecraft:planks"
- sand="minecraft:sand"
- water="minecraft:water"
- air="minecraft:air"
- if check == wheat then
- robot.swing()
- robot.select(2)
- robot.forward()
- robot.turnAround()
- -- robot.turnLeft()
- robot.use()
- robot.place()
- robot.turnAround()
- -- robot.turnLeft()
- elseif check == cobl then
- robot.turnRight()
- robot.swing()
- robot.forward()
- robot.turnLeft()
- robot.turnLeft()
- robot.use()
- robot.place()
- robot.turnLeft()
- elseif check == stone then
- robot.turnLeft()
- robot.swing()
- robot.forward()
- robot.turnLeft()
- robot.turnLeft()
- robot.use()
- robot.place()
- robot.turnRight()
- elseif datad.name == "minecraft:water" then
- robot.forward()
- print("WATERRR")
- elseif check == planks then
- robot.up()
- -- dofile("carry.lua")
- -- robot.forward()
- -- repeat
- -- local succ, un=robot.detect()
- -- if succ==false then robot.forward()
- -- elseif (succ==true) then robot.turnLeft()
- -- end
- -- until un.name==sand
- f=702
- end
- else
- print("elsing")
- robot.forward()
- robot.turnAround()
- robot.use()
- robot.place()
- robot.turnAround()
- -- robot.turnLeft()
- end
- end
- if f<701 then
- repeat
- farm("Farming!")
- f=f+1
- print(f)
- until f >= 700
- end
- dofile("/home/runs/carry.lua")
- print("END")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement