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