Creating a Resource Pack
Creating the Pack:
To create the ResourcePack you need to create a few objects:
public class MyResourcePack {
public static void load(Plugin plugin) {
ResourcePack pack = new ResourcePack(plugin, "plugin_id");
Namespace ns = pack.namespace("plugin_id");
// Setup resource pack here
pack.register(false);
}
}
Loading your first texture:
There are two ways to load textures: load using a file inside your resources folder. OR; load using byte data.
public class MyResourcePack {
public static Texture EXAMPLE;
public static void load(Plugin plugin) {
ResourcePack pack = new ResourcePack(plugin, "plugin_id");
Namespace ns = pack.namespace("plugin_id");
EXAMPLE = ns.texture("item/iron_sword");
// OR
// EXAMPLE = ns.texture("item/iron_sword", data)
pack.register(false);
}
}
Next sections will cover Glyphs (font files), Lang, and Item Definitions
03 October 2025