WingedSeal / jmc

A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
https://jmc.wingedseal.com
MIT License
64 stars 10 forks source link

[FEATURE_REQUEST] `stringify` (or similar keyword) after JSON definitions #107

Open Nico314159 opened 4 months ago

Nico314159 commented 4 months ago

Description

The following syntax will be used to convert specific paths inside a JSON definition from nested objects to string form. The purpose of this is to have an easy and effective way of breaking SNBT over mutliple lines that doesn't insert \n and \t into the output file.

new json_file_type(name) {
        path1: {...},
        path2: {...},
        ...
} stringify (path1, path2, ...);

Discord link over previous discussion