WolfyScript / viewportl

A Minecraft Inventory GUI framework, designed to easily create reactive GUIs. Based on the well known Signal Reactivity System.
GNU General Public License v3.0
65 stars 12 forks source link

Expansion packs #84

Open WolfyScript opened 2 years ago

WolfyScript commented 2 years ago

The idea of the expansion packs is to make it easier to share custom content.

Expansions are read from zip files inside the WolfyUtilities/expansion_packs.
Each expansion zip file must have a pack.json that contains the following content:

{
  "pack": {
    "version": 1,
    //Usually your lowercase plugin name. Spaces are not allowed! Must be unique from other packs!
    "namespace": "<namespace>",
    "authors": [],
    "description": ""
  }
}

The data is then put in separate folders depending on their registry.

That is all the default data, that can be loaded so far.

However, it is possible to register more custom ResourceLoader into the Registry you can get via Registries#getExpansionResourceLoaders.