Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pastebin get zQZKgEP5 startup
- function analyse()
- turtle.inspectDown()
- a,b = turtle.inspectDown()
- c = b.metadata
- print(c)
- if c == 7 then
- turtle.select(1)
- turtle.digDown()
- f = turtle.getItemDetail(1)
- name_1 = f.name
- if name_1 == "minecraft:ender_pearl" then
- turtle.select(2)
- name_2 = turtle.getItemDetail(2)
- if name_2 == "Extrautilities:plant/ender_lily" then
- turtle.placeDown()
- end
- end
- else
- turtle.forward()
- sleep(5)
- end
- end
- function aller()
- for i= 1,7 do
- analyse()
- end
- end
- function gauche()
- turtle.turnLeft()
- analyse()
- turtle.turnLeft()
- end
- function droite()
- turtle.turnRight()
- analyse()
- turtle.turnRight()
- end
- function etage()
- turtle.up()
- for mr= 1,7 do
- aller()
- gauche()
- aller()
- droite()
- end
- end
- function trou()
- etage()
- turtle.back()
- turtle.turnRight()
- for p= 1,14 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.down()
- end
- while true do
- a, begin = turtle.inspect()
- mot = begin.metadata
- print(c)
- print(mot)
- sleep(20)
- if mot == 7 then
- trou()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.select(1)
- turtle.turnLeft()
- turtle.turnleft()
- sleep(1000)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement