Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg={...}
- R=5
- mapX=R
- mapY=R
- mapZ=R
- map={}
- quality=0.1
- turtle.refuel(10)
- tur={}
- for x=-mapZ,mapX,1 do
- map[x]={}
- for y=-mapY,mapY,1 do
- map[x][y]={}
- for z=-mapZ,mapZ,1 do
- map[x][y][z]=false
- end
- end
- end
- i=0
- for RX=0,math.pi,quality do
- for RY=0,2*math.pi,quality do
- local x= R*math.sin(RX)*math.cos(RY)
- local y= R*math.sin(RX)*math.sin(RY)
- local z= R*math.cos(RX)
- i=i+1
- map[math.floor(x)][math.floor(y)][math.floor(z)]=true
- end
- end
- print("blocks:"..i)
- turtle.digDown()
- for i=1,2 do
- turtle.up()
- end
- for y=-mapY,mapY do
- if turtle.getFuelLevel() ==0 then
- turtle.select(1)
- turtle.refuel(1)
- end
- turtle.select(2)
- print(arg[1].."|"..y.."|"..arg[2])
- print(map[arg[1]])
- if map[arg[1]][y][arg[2]] then
- turtle.placeDown()
- end
- turtle.up()
- end
- turtle.refuel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement