Configurate icon indicating copy to clipboard operation
Configurate copied to clipboard

Ability to handle custom save file layouts

Open Pulverizer opened this issue 4 years ago • 1 comments

Similar to YAML flow style but allowing the user to override on a per-node basis. eg. YAML Block Style:

flyblocks:
    minecraft:wool:
    - 50.0
    - 100.0
    ?   - minecraft:chest
        - minecraft:trapped_chest
    :   - 0.0
        - N50

vs the plugin I'm porting:

flyblocks:
    "minecraft:wool": #wool represents lift
        - 50.0
        - 100.0
    ["minecraft:chest","minecraft:trapped_chest"]: # limit chests to make big airships important for merchant missions
        - 0.0
        - N50

Pulverizer avatar Apr 19 '20 16:04 Pulverizer

Looking into SnakeYAML, this should actually be possible -- we'll want to migrate from using their load/dump API to using their compose/represent APIs to give us more control.

This will require RepresentationHints to be added to nodes, so it won't make it in for 3.7

zml2008 avatar Apr 20 '20 00:04 zml2008