From a8ad0435faae09b663b5e60dc41a9dea54c391da Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 9 Oct 2019 00:11:23 +0200 Subject: [PATCH] Add test file --- init.lua | 9 +++++++++ test.json | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 test.json diff --git a/init.lua b/init.lua index 59bcbbd..5fe3adb 100644 --- a/init.lua +++ b/init.lua @@ -1869,3 +1869,12 @@ register_command("craft", { return true, craftguide.show(name, node_name) end, }) + +print(core.write_json({ + result = "default:cobble 16", + items = { + "default:stone, default:stone, default:stone", + "default:stone, , default:stone", + "default:stone, default:stone, default:stone", + } +})) diff --git a/test.json b/test.json new file mode 100644 index 0000000..8b2e209 --- /dev/null +++ b/test.json @@ -0,0 +1,7 @@ +{ + "items":[ + "default:stone, default:stone, default:stone", + "default:stone, , default:stone", + "default:stone, default:stone, default:stone"], + "result":"default:cobble 16" +} \ No newline at end of file