Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---@param slot number
- local function drop(slot)
- turtle.select(slot)
- turtle.dropUp(64)
- end
- ---@param slot number
- local function store(slot)
- turtle.select(slot)
- turtle.dropDown(64)
- end
- local function processPlanks()
- turtle.select(1)
- turtle.craft(64)
- for slot = 1, 4 do
- store(slot)
- end
- end
- local function processLogs()
- turtle.select(1)
- turtle.craft(64)
- turtle.select(2)
- turtle.transferTo(5)
- drop(3)
- drop(4)
- processPlanks()
- turtle.select(1)
- turtle.suckUp(64)
- turtle.select(5)
- turtle.suckUp(64)
- processPlanks()
- end
- local function main()
- print("Processing logs")
- while true do
- if not turtle.suck(64) then
- break
- end
- processLogs()
- end
- print("no more logs")
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement