mine.lua: updated blurb with fuel info and fixed coordinates to match with mc
This commit is contained in:
parent
8ff5b083f4
commit
457d7e1661
1 changed files with 12 additions and 11 deletions
23
mine.lua
23
mine.lua
|
|
@ -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 ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue