WolfyUtilities icon indicating copy to clipboard operation
WolfyUtilities copied to clipboard

Expansion packs

Open WolfyScript opened this issue 2 years ago • 0 comments

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.

  • items/items – The CustomItem folder, that contains all the CustomItem json files.
  • particles/effects – All the custom particle effects
  • particles/animations – All the custom particle animations

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.

WolfyScript avatar Mar 09 '22 20:03 WolfyScript