Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function ss(s) turtle.select(s) end
- local saplingSpot = 1
- local logSpot = 2
- local emptyStartSpot = 3
- local emptyStopSpot = 13
- local diamondPickSpot = 14
- local enderchestSpot = 15
- local chestSpot = 16
- term.clear() term.setCursorPos(1,1)
- print("----------------------------------")
- print("------ChromaLTS's treefarm--------")
- print("-> Slot " .. saplingSpot .. ": Sapling(any)")
- print("-> Slot " .. logSpot .. ": Log(1)")
- print("-> Slot " .. diamondPickSpot .. ": Diamond Pickaxe(1)")
- print("-> Slot " .. enderchestSpot .. ": Enderchest(1)")
- print("-> Slot " .. chestSpot .. ": Chest(1)")
- print("----------------------------------")
- read()
- --empty into chest
- local function Main(Refuel, PickupEnderchest)
- --check fuel level else stuff dont work
- turtle.up()
- ss(enderchestSpot)
- turtle.placeDown()
- turtle.suckDown()
- turtle.refuel()
- PickupEnderchest()
- print("New fuel level -> " .. turtle.getFuelLevel())
- end
- local function ParkInventory()
- ss(chestSpot)
- turtle.placeUp()
- for i=emptyStartSpot,emptyStopSpot,1 do
- ss(i)
- turtle.dropUp()
- end
- end
- local function PickupEnderchest()
- ss(diamondPickSpot)
- turtle.equipRight()
- turtle.digDown()
- turtle.equipRight()
- end
- local function Refuel()
- --for i=emptyStartSpot,emptyStopSpot,1 do
- --ss(i)
- turtle.refuel()
- --end
- end
- local function CheckFuel()
- -- TODO
- -- Do this
- end
- --get stuff back
- Main(Refuel, PickupEnderchest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement