mine.lua: updated blurb with fuel info and fixed coordinates to match with mc

This commit is contained in:
Emerson Rosen-Jones 2025-11-29 20:43:13 -05:00
parent 8ff5b083f4
commit 457d7e1661

View file

@ -95,19 +95,19 @@ function move (x, y, z)
moveInLine(-x)
end
mode.x = mode.x + x
-- y
if y > 0 then
turnToFace(FORWARD)
moveInLine(y)
end
if y < 0 then
turnToFace(BACK)
moveInLine(-y)
end
mode.y = mode.y + y
-- z
moveUpDown(z)
if z > 0 then
turnToFace(FORWARD)
moveInLine(z)
end
if z < 0 then
turnToFace(BACK)
moveInLine(-z)
end
mode.z = mode.z + z
-- y
moveUpDown(y)
mode.y = mode.y + y
end
function dropOffItems (go_back)
@ -283,6 +283,7 @@ function usage ()
start of the program.")
print("If invoked with only three arguments, act as if they are the last \
three arguments and substitute 0 0 -1 for the first three.")
print("Fuel goes in the top-left slot of the turtle's inventory")
end
function argsToNumbers ()