Wiki 9Minecraft Wiki 9Minecraft

Use Resource and Datapack Metadata API

Java EditionModGuides 4FAQ 10Related mods 48
DownloadiCommon API Mod

Get the files on 9Minecraft

Contents (4)
  1. Understanding Metadata
  2. What You Can Do
  3. Practical Use
  4. For Datapack Creators

Understanding Metadata

The iCommon API Mod includes a Resource/Datapack Metadata API that lets mods read and manage information about datapacks and resource packs. This is useful for mods that need to detect which packs are loaded or access pack-specific data.

What You Can Do

Mods using this API can:

  • Detect which datapacks are active in your world
  • Read metadata from pack.mcmeta files
  • Organize custom content by pack
  • Ensure compatibility between multiple datapacks

Practical Use

If you're using a mod that depends on datapacks, the iCommon API helps that mod:

  • Automatically load custom features from your active packs
  • Avoid conflicts when multiple packs define similar content
  • Report which packs are missing or incompatible

For Datapack Creators

If you're making datapacks for mods built on iCommon, ensure your pack.mcmeta file is properly formatted. The API will read this metadata to understand your pack's purpose and requirements. Refer to your specific mod's datapack documentation for custom metadata fields it may recognize.

More guides for this mod