Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h_table = {}
- width = 3
- length = 21
- function mineTree()
- height = 0
- replanted = false
- while turtle.detect() do
- turtle.dig()
- if replanted ~= true then
- turtle.place()
- replanted = true
- end
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.up()
- height = height + 1
- end
- while height > 0 do
- turtle.down()
- height = height - 1
- end
- end
- function moveAround()
- turtle.up()
- turtle.forward()
- turtle.forward()
- turtle.down()
- end
- h_table = {turtle.inspectDown()}
- block_name = h_table[2]["name"]
- if block_name ~= "chisel:stonebricksmooth" then
- print("Please place me on: small stone bricks")
- else
- print("Starting block confirmed")
- end
- rows = 2
- f_table = {}
- for line=0,rows,1 do
- for y=0,length,1 do
- f_table = {turtle.inspect()}
- if f_table[1] then
- if f_table[2]["name"] == "minecraft:log" then
- mineTree()
- turtle.forward()
- end
- else
- moveAround()
- end
- end
- turtle.turnRight()
- for x=0,width,1 do
- turtle.forward()
- end
- turtle.turnRight()
- x = 0
- y = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement