.
This commit is contained in:
parent
0fe33c2aa0
commit
33f7597e6a
@ -21,7 +21,7 @@ end
|
|||||||
--https://www.youtube.com/watch?v=bZe5J8SVCYQ
|
--https://www.youtube.com/watch?v=bZe5J8SVCYQ
|
||||||
local function forward(x, y, z, rotation)
|
local function forward(x, y, z, rotation)
|
||||||
if turtle.forward() then
|
if turtle.forward() then
|
||||||
if roation == 0 then
|
if rotation == 0 then
|
||||||
z = z + 1
|
z = z + 1
|
||||||
elseif rotation == 1 then
|
elseif rotation == 1 then
|
||||||
x = x - 1
|
x = x - 1
|
||||||
@ -36,7 +36,7 @@ end
|
|||||||
|
|
||||||
local function back(x, y, z, rotation)
|
local function back(x, y, z, rotation)
|
||||||
if turtle.back() then
|
if turtle.back() then
|
||||||
if roation == 0 then
|
if rotation == 0 then
|
||||||
z = z - 1
|
z = z - 1
|
||||||
elseif rotation == 1 then
|
elseif rotation == 1 then
|
||||||
x = x + 1
|
x = x + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user