From 457d7e16618baa3e00d5e276e0f25caaab46019a Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Sat, 29 Nov 2025 20:43:13 -0500 Subject: [PATCH] mine.lua: updated blurb with fuel info and fixed coordinates to match with mc --- mine.lua | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/mine.lua b/mine.lua index b8c533a..a3af8e8 100644 --- a/mine.lua +++ b/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 ()