SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- pastebin get q5s1y8aH |
| 1 | + | local dia = 62 |
| 2 | - | -- pastebin run q5s1y8aH |
| 2 | + | |
| 3 | local x = 0 | |
| 4 | - | print("Min X")
|
| 4 | + | local z = 0 |
| 5 | - | local minX = tonumber(read()) |
| 5 | + | local dirf = 0 |
| 6 | ||
| 7 | - | print("Min Y")
|
| 7 | + | function SelectBlock() |
| 8 | - | local minY = tonumber(read()) |
| 8 | + | while true do |
| 9 | for i = 1, 16 do | |
| 10 | - | print("Min Z")
|
| 10 | + | if turtle.getItemCount(i) > 0 then |
| 11 | - | local minZ = tonumber(read()) |
| 11 | + | turtle.select(i) |
| 12 | return | |
| 13 | - | print("Max X")
|
| 13 | + | end |
| 14 | - | local maxX = tonumber(read()) |
| 14 | + | end |
| 15 | print("Out of blocks, press enter to continue")
| |
| 16 | - | print("Max Y")
|
| 16 | + | read() |
| 17 | - | local maxY = tonumber(read()) |
| 17 | + | end |
| 18 | end | |
| 19 | - | print("Max Z")
|
| 19 | + | |
| 20 | - | local maxZ = tonumber(read()) |
| 20 | + | local l = 0 |
| 21 | local c = 0 | |
| 22 | while l <= (dia * 2 + 2) do | |
| 23 | - | local pickSlot = 13 |
| 23 | + | for n = 1, l do |
| 24 | - | local modemSlot = 14 |
| 24 | + | turtle.forward() |
| 25 | - | local chestSlot = 16 |
| 25 | + | if dirf % 4 == 0 then |
| 26 | x = x + 1 | |
| 27 | - | local pickName = "minecraft:diamond_pickaxe" |
| 27 | + | elseif dirf % 4 == 1 then |
| 28 | - | local modemName = "computercraft:wireless_modem_advanced" |
| 28 | + | z = z + 1 |
| 29 | - | |
| 29 | + | elseif dirf % 4 == 2 then |
| 30 | - | local minFuel = turtle.getFuelLimit() * 0.25 |
| 30 | + | x = x - 1 |
| 31 | - | local maxFuel = turtle.getFuelLimit() * 0.75 |
| 31 | + | elseif dirf % 4 == 3 then |
| 32 | - | |
| 32 | + | z = z - 1 |
| 33 | - | local validFuels = {
|
| 33 | + | end |
| 34 | - | ["minecraft:coal_block"] = true, |
| 34 | + | if math.sqrt((x*x)+(z*z)) <= dia then |
| 35 | - | ["minecraft:coal"] = true, |
| 35 | + | SelectBlock() |
| 36 | - | ["minecraft:charcoal"] = true, |
| 36 | + | turtle.placeDown() |
| 37 | - | ["minecraft:blaze_rod"] = true |
| 37 | + | end |
| 38 | - | } |
| 38 | + | end |
| 39 | - | |
| 39 | + | turtle.turnRight() |
| 40 | - | sleep(1)--might need to increase to prevent server crash |
| 40 | + | dirf = dirf + 1 |
| 41 | c = c + 1 | |
| 42 | - | function Hold(s) |
| 42 | + | if c % 4 == 0 or c % 4 == 2 then |
| 43 | - | if turtle.getItemCount(s) == 1 then |
| 43 | + | l = l + 1 |
| 44 | - | turtle.select(s) |
| 44 | + | end |
| 45 | - | turtle.equipLeft() |
| 45 | + |