Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- local function forward(x)
- for i = 1, x do
- t.forward()
- end
- end
- local function rTurn(x)
- for i = 1, x do
- t.turnRight()
- end
- end
- local function lTurn(x)
- for i = 1, x do
- t.turnLeft()
- end
- end
- local function up(x)
- for i = 1, x do
- t.up()
- end
- end
- local function down(x)
- for i = 1, x do
- t.down()
- end
- end
- local function back(x)
- for i = 1, x do
- t.back()
- end
- end
- local fuelAmount = t.getFuelLevel()
- local function fuelCheck()
- if fuelAmount < 5000 then
- back(3)
- rs.setOutput("left", true)
- os.sleep(5)
- rs.setOutput("left", false)
- t.select(3)
- t.refuelAll()
- forward(3)
- t.print("Gassed up and good to go!")
- else
- t.print("Still Rollin!")
- end
- end
- local itemCheck = t.getItemCount()
- local function bonemealCheck()
- t.select(2)
- if itemCheck < 10 then
- back(3)
- rs.setOutput("back", true)
- os.sleep(15)
- rs.setOutput("back", false)
- forward(3)
- else
- t.print("Ready to Bone")
- end
- end
- local function saplingCheck()
- t.select(1)
- if itemCheck < 5 then
- back(3)
- rs.setOutput("right", true)
- os.sleep(5)
- rs.setOutput("right", false)
- forward(3)
- else
- t.print("It's time to Lay")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement