unnamed / creative-central

The resource-pack unifier for Minecraft: Java Edition
https://unnamed.team/docs/creative-central
MIT License
18 stars 6 forks source link

Per plugin resource-packs #8

Open yusshu opened 8 months ago

yusshu commented 8 months ago

At the moment, plugins have to listen to the ResourcePackGenerateEvent and register their resources in the single, server resource-pack initially created by creative-central.

This new idea of per-plugin-resourcepacks would be similar to how external resource packs (e.g. from ModelEngine4, ItemsAdder, Oraxen) are currently handled in the Bukkit plugin. The external resource pack provider loads the resource-pack and it's then merged with the central resource-pack.

For example:

interface ResourcePackProvider {
  String pluginName();

  ResourcePack create();
}

We could have something similar for creative-central plugins, which would allow:

This will also remove the need of 'ExternalResourcePackProvider's, since they can be normal ResourcePack providers, but registered by creative-central.