Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("input radius:")
- local dom_rad=read()+0
- print("input height:")
- local height=read()+0
- local X=0
- local Y=0
- local Z=0
- local X2
- local Y2
- local Z2
- local XY2
- local XYZ2
- for a=1,radius do
- while turtle.detect()
- turtle.dig()
- end
- turtle.forward()
- X=X+1
- end
- turtle.turnLeft()
- for DimZ=1,height do
- for DimY=1,4 do
- for y=1,radius do
- turtle.placeDown()
- for A=X,1,-1 do
- X2=a*a
- Y2=cur_Y*cur_Y
- X2Y2=X2+Y2
- if X2Y2>=rad2 then
- mov=cur_X-a
- end
- end
- if mov>0 then
- turtle.turnLeft()
- for b=1,mov
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement