abyssallib-docs Help

Resource Pack Generation

How to Generate Your Resource Pack

NOTE:

GlyphWriter.writeAll(MODID) MUST be called before the generate method of ResourcePack for glyphs to be properly in the generated zip!

To generate your mod's resource pack, you must call the following line during plugin initialization (e.g., inside onEnable(), preferably at bottom):

new Resourcepack(this, MODID).generate();
  • this is your main plugin class (extending JavaPlugin).

  • MODID is your mod ID string (e.g., "mymod").

This will:

  • Automatically zip your assets into a usable resource pack.

  • Prepare it for hosting or applying to clients.

Folder Structure

Before calling generate(), ensure your assets are placed correctly in your resources folder:

src/main/resources/assets/<modid>/

For example:

src/main/resources/assets/mymod/textures/item/example_item.png src/main/resources/assets/mymod/items/example_item.json

Everything inside the <assets> folder will be included in the generated resource pack.

Notes

  • If the pack already exists, it will not be regenerated unless you delete or overwrite it.

  • Make sure your file paths and names match what Minecraft expects.

With this setup, your assets will be automatically included and ready for use!

18 May 2025