diff --git a/src/brulijam/shape0.svg b/src/brulijam/shape0.svg new file mode 100644 index 0000000..f1e1ae8 --- /dev/null +++ b/src/brulijam/shape0.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + 4 + 6 + 2 + 4 + 6 + + + MinecraftShapes.com + \ No newline at end of file diff --git a/src/brulijam/shape1.svg b/src/brulijam/shape1.svg new file mode 100644 index 0000000..7b4bcc8 --- /dev/null +++ b/src/brulijam/shape1.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + 4 + 6 + 2 + 4 + 6 + + + MinecraftShapes.com + \ No newline at end of file diff --git a/src/brulijam/shape2.svg b/src/brulijam/shape2.svg new file mode 100644 index 0000000..b9f8261 --- /dev/null +++ b/src/brulijam/shape2.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + 4 + 6 + 8 + 2 + 4 + 6 + 8 + 10 + + + MinecraftShapes.com + \ No newline at end of file diff --git a/src/brulijam/shapebuilder.lua b/src/brulijam/shapebuilder.lua new file mode 100644 index 0000000..b2cfbf6 --- /dev/null +++ b/src/brulijam/shapebuilder.lua @@ -0,0 +1,22 @@ +-- shapebuilder using https://minecraftshapes.com/ + +basic = require("lib.basic") + +-- pixel size from the generator, should be constant +steps = 18 + +-- dimensions of the matrix +length = 6 + +local shapeFile = basic.readFileAll("/brulijam/shape0.svg") + +print(shapeFile) + +matrix = {} +for i = 1, length do + matrix[i] = {} + + for j = 1, length do + matrix[i][j] = 0 + end +end \ No newline at end of file diff --git a/src/brulijam/sync.lua b/src/brulijam/sync.lua index b4cd32a..322e9e0 100644 --- a/src/brulijam/sync.lua +++ b/src/brulijam/sync.lua @@ -21,6 +21,8 @@ local copyList = { [13] = "/brulijam/gps-tower.lua", [14] = "/brulijam/log-receiver.lua", [15] = "/startup.lua", + [16] = "/brulijam/shapebuilder.lua" + [17] = "/brulijam/shape0.svg" } diff --git a/src/brulijam/turtle-miner-fibo.lua b/src/brulijam/turtle-miner-fibo.lua index 79ca847..561e77d 100644 --- a/src/brulijam/turtle-miner-fibo.lua +++ b/src/brulijam/turtle-miner-fibo.lua @@ -77,7 +77,7 @@ local function savePos(prefix) turtle.equipRight() posZ, posY, posX = gps.locate() sleep(1) - if prefix == "Chest placed at" then + if prefix == "Chest placed at " then posY = posY + 1 end basic.appendToFileNl("/brulijam/files/chests-turtle-miner-fibo.txt", prefix .. posX .. ", " .. posY .. ", " .. posZ)