Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function placeStone() -- Place stone in front of the turtle bot
- for i = 1, 16, 1 do
- turtle.select(i)
- block = turtle.getItemDetail()
- if block and (block["name"] == "minecraft:stone" or block["name"] == "minecraft:log") then
- turtle.place()
- end
- end
- end
- while true do
- while not turtle.detect() do
- placeStone()
- os.sleep(5)
- end
- success, block = turtle.inspect()
- if success then
- write("found: "..block.name.."\r\n")
- if block.name == "Botania:livingrock" or block.name == "Botania:livingwood" then
- turtle.dig()
- end
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement