Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("zdarova ebat")
- sleep(0.5)
- write("skolko etazhei kopat?")
- n = read()
- m = read()
- n = n + 0
- m = m + 0
- a = 0
- b = 0
- c = 0
- br = 0
- fak = 0
- print("kak nehui")
- sleep(0.5)
- function detect()
- aa,bb = turtle.inspect()
- aab = bb.name
- if aab == "minecraft:bedrock" then
- n = n - 100
- print ("suka sam eto lomai")
- else
- print ("ok")
- end
- end
- function detectUp()
- ab,ba = turtle.inspectUp()
- aba = ba.name
- if aba == "minecraft:bedrock" then
- n = n - 100
- print ("suka sam eto lomai")
- else
- print ("ok")
- end
- end
- function detectDown()
- abb,baa = turtle.inspectDown()
- abb = baa.name
- if abb == "minecraft:bedrock" then
- n = n - 100
- print ("suka sam eto lomai")
- else
- print ("ok")
- end
- end
- while n>0 do
- detectUp()
- detect()
- detectDown()
- turtle.digUp()
- sleep(0.1)
- turtle.dig()
- sleep(0.1)
- turtle.forward()
- sleep(0.1)
- turtle.digUp()
- sleep(0.1)
- turtle.up()
- sleep(0.1)
- turtle.digUp()
- sleep(0.1)
- turtle.down()
- sleep(0.1)
- turtle.digDown()
- sleep(0.1)
- turtle.down()
- sleep(0.1)
- n=n-1
- a=a+1
- b=b+1
- end
- turtle.turnRight()
- turtle.turnRight()
- function nazad()
- turtle.up()
- turtle.forward()
- end nazad()
- while a>1 do
- nazad()
- a=a-1
- end
- turtle.turnRight()
- turtle.turnRight()
- sleep(0.1)
- turtle.select(2)
- sleep(0.1)
- turtle.forward()
- sleep(0.1)
- turtle.forward()
- sleep(0.1)
- turtle.down()
- sleep(0.1)
- turtle.turnRight()
- turtle.turnRight()
- sleep(0.1)
- turtle.place()
- sleep(0.1)
- turtle.turnRight()
- turtle.turnRight()
- while m>0 do
- turtle.forward()
- sleep(0.1)
- if fak==5 then
- turtle.select(1)
- sleep(0.1)
- turtle.place()
- sleep(0.1)
- fak = -5
- print("pora stavit")
- else
- print("rano stavit")
- end
- sleep(0.1)
- turtle.down()
- sleep(0.1)
- turtle.turnRight()
- sleep(0.1)
- turtle.turnRight()
- sleep(0.1)
- turtle.select(2)
- sleep(0.1)
- turtle.place()
- sleep(0.1)
- turtle.turnRight()
- sleep(0.1)
- turtle.turnRight()
- sleep(0.1)
- m=m-1
- fak=fak+1
- end
- function nazad1()
- turtle.up()
- sleep(0.1)
- turtle.up()
- sleep(0.1)
- turtle.forward()
- sleep(0.1)
- end nazad1()
- turtle.turnRight()
- turtle.turnRight()
- sleep(0.1)
- while b>1 do
- nazad1()
- b=b-1
- end
- turtle.forward()
- turtle.down()
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(1)
Advertisement
Add Comment
Please, Sign In to add comment