1
0
mirror of https://github.com/osmarks/random-stuff synced 2025-12-20 12:58:05 +00:00

add CC projects

This commit is contained in:
2023-11-13 19:37:05 +00:00
parent 94b4db7549
commit a507315ad2
114 changed files with 11478 additions and 1 deletions

View File

@@ -0,0 +1,47 @@
local fwd, right, up = ...
fwd, right, up = tonumber(fwd), tonumber(right), tonumber(up)
local function checkFull()
while turtle.getItemCount(16) > 0 do
write "Please clear inventory"
read()
end
end
local j = 1
local function digLevel()
for i = 1, right do
for i = 1, fwd do
turtle.digDown()
turtle.digUp()
turtle.dig()
turtle.forward()
checkFull()
end
if i ~= right then
local dir = turtle.turnRight
if j % 2 == 0 then dir = turtle.turnLeft end
dir()
turtle.dig()
turtle.forward()
dir()
j = j + 1
end
end
while turtle.getFuelLevel() < 500 do
write "Fuel low"
read()
turtle.refuel(1)
end
end
for i = 1, up, 3 do
digLevel()
for i = 1, 3 do
turtle.digUp()
turtle.up()
end
turtle.turnRight()
turtle.turnRight()
end