MineColonies

MineColonies

56M Downloads

Change schematica

JoseluGames opened this issue ยท 4 comments

commented

Change schematica to JoseluGames's aproach to preview structures

commented

Should I change schematica in favor of this? @cltnschlosser

commented

How is the management done later?

Some kind of /resourcepacks like /schemapacks where you can upload a structure of schemas inside a zip file?

commented

The structure files (.nbt format) are stored inside assets/MODID/structures/STRUCTUREPATH_NAME, I'm not sure if it can be overwritten with resource packs like textures and sounds, most probably yes @Isfirs

commented

Would be great to deliver the old classic in a minecraft-ish in-jar pack and have a drop-in for new stuff in a way already exists.

  • ressourcepacks uses it
  • shaderspack uses it
  • doing it the same way we show we follow systems that exists already

I could help on the structure validation and reading. I worked with ZipEntry already and would like to get some new ideas when doing this loader ;)

{
    "name": "My name listed ingame",
    "version": "My.SchemaPack.Version",
    "description": "My schema pack description to explain the look of this schema pack"
}

The above may be used into a new layout:

/schemapacks
    + schemapack.info
    + schemas
        + townhall
            + lv_1.schema
            + lv_2.schema
            + townhall.info

where townhall.info:

{
    "id": "townhall",
    "name": "City Hall",
    "version": "My.Building.Version",
    "levels": [
        {
            "level": 1,
            "schema": "lv_1"
        },
        {
            "level": 2,
            "schema": "lv_2",
            "require": [
                "builder:2",
                "citizens:8"
            ]
        }
    ]
}

I would be happy to explain it even more.