By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

Apply resource packs easily from plugins!
version 2.2.0
Approved
Direct Download How to install?
102 Downloads / 102 Total
Plugin Description §

ResourcePackTools

Tool (library) for easy use of resource packs from plugins

Command

command name description parameter permission alias only player
resourcepack Manage ResourcePack --- resourcepacktools.command.resourcepack rp no
resourcepack register Register the ResourcePack <filename> --- r no
resourcepack unregisterbyindex Unregister the ResourcePack by index <index> --- urbi no
resourcepack unregisterbyuuid Unregister the ResourcePack by uuid <uuid> --- urbu no
resourcepack list Show the ResourcePack list pack(p):uuid(u) --- l no

Example of plugin

Directory structure

plugin.phar(Plugin)/
   ├ resources/
   │   ├ info.png
   │   └ test/
   │       └ server.png
   └ src/
       └ ...
test1.zip(ResourcePack)/
   ├ server.png
   ├ manifest.json
   └ pack_icon.png

Generate ResourcePack

$pack = new SimpleResourcePack($this, new Version(1, 0, 0));
$pack->setPackIcon("info.png");
$pack->addFile("test/server.png", "server.png");
$pack->generate($this->getDataFolder() . "test1.zip");

Register ResourcePack

ResourcePack::register($this->getDataFolder() . "test1.zip");

Update ResourcePack

When changing the contents of the ResourcePack, please change the version of the ResourcePack.

e.g.new Version(1, 1, 0);

This is similar to general ResourcePack development.

ResourcePack that have been downloaded once will be cached, but will be re-downloaded by increasing the version.

Supported API versions
3.0.0
->
3.15.0
License §
Categories:
Admin Tools
API plugins
Permissions
Other files
Permissions
Commands

You can leave one review per plugin release, and delete or update your review at any time

Loading...