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.
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: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 effectsparticles/animations
– All the custom particle animationsThat 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 viaRegistries#getExpansionResourceLoaders
.