Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diam_room = 15
- function InspectBlockDown()
- --local success
- local success , data = turtle.inspectDown()
- if success then
- --turtle.inspectDown()
- print("block :", data.name)
- else
- print("Vide")
- end
- if data.name=="minecraft:chest" then
- print("chest - Press return")
- read()
- end
- end
- function InspectBlocksAround()
- for i=1,3 do
- local success , data = turtle.inspect()
- if success then
- print("front block :", data.name)
- else
- print("block Vide")
- local data = turtle.getItemDetail(2)
- if data then
- print("Item name: ", data.name)
- else
- print("Slot Empty")
- end
- print(turtle.select(2))
- print(turtle.place())
- end
- if data.name=="minecraft:chest" then
- print("chest - Press return")
- read()
- end
- turtle.turnRight()
- end
- end
- function CheckFrontBlock()
- local success , data = turtle.inspect()
- if success then
- print("front block :", data.name)
- else
- print("block Vide")
- end
- if data.name=="minecraft:chest" then
- print("chest - Press return")
- read()
- end
- end
- for i=1,5 do
- InspectBlockDown()
- turtle.digDown()
- turtle.down()
- --print("dd "..tostring(i))
- end
- InspectBlocksAround()
- for i=1,4 do
- print(i)
- for i=1,diam_room-1 do
- print(i)
- CheckFrontBlock()
- turtle.dig()
- turtle.forward()
- end
- turtle.turnLeft()
- end
- turtle.turnRight()
- for j=1,5 do
- turtle.up()
- --print("up "..tostring(j))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement