Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turtle.forwards(numForw)
- for i = 1, numForw do
- turtle.forward()
- end
- end
- function getLogs()
- turtle.forwards(6)
- turtle.turnLeft()
- turtle.forwards(4)
- turtle.turnRight()
- turtle.forwards(12)
- turtle.turnRight()
- turtle.forward()
- turtle.suckDown(64)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.forwards(12)
- turtle.turnLeft()
- turtle.forwards(4)
- turtle.drop()
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemCount() ~= 0 then
- local data = turtle.getItemDetail()
- if data.name == "minecraft:birch_log" then
- turtle.drop()
- end
- end
- end
- turtle.turnRight()
- turtle.forwards(6)
- turtle.turnRight()
- turtle.turnRight()
- end
- function getStick()
- turtle.forwards(6)
- turtle.turnLeft()
- turtle.forwards(4)
- turtle.turnRight()
- turtle.forwards(12)
- turtle.turnRight()
- turtle.forwards(3)
- turtle.suckDown(64)
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forwards(3)
- turtle.turnLeft()
- turtle.forwards(12)
- turtle.turnLeft()
- turtle.forwards(4)
- turtle.turnLeft()
- turtle.forwards(2)
- turtle.turnRight()
- turtle.drop()
- for i = 1, 16 do
- turtle.select(i)
- if turtle.getItemCount() ~= 0 then
- local data = turtle.getItemDetail()
- if data.name == "minecraft:stick" then
- turtle.drop()
- end
- end
- end
- turtle.turnRight()
- turtle.forwards(8)
- turtle.turnRight()
- turtle.turnRight()
- end
- function makeAndGetCoal()
- turtle.forwards(6)
- turtle.turnRight()
- turtle.suck()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forwards(12)
- turtle.turnLeft()
- turtle.up()
- turtle.up()
- turtle.forwards(2)
- turtle.dropDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.down()
- turtle.down()
- turtle.back()
- turtle.suckUp()
- turtle.turnLeft()
- turtle.forwards(2)
- turtle.turnRight()
- turtle.forwards(7)
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.forwards(6)
- turtle.turnRight()
- turtle.up()
- turtle.drop()
- turtle.down()
- turtle.turnRight()
- turtle.forwards(6)
- turtle.turnRight()
- turtle.turnRight()
- end
- getLogs()
- getStick()
- makeAndGetCoal()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement