Custom Mob Capture Cards - MarkusBordihn/BOs-Easy-Mob-Farm GitHub Wiki

πŸƒ Custom Mob Cards

Starting with Easy Mob Farm version 10.x, the way custom Mob Capture Cards are defined has * completely changed*.

The old system, which used .cfg files in the config/easy_mob_farm/ directory, is no longer supported as of mod version 10.x. Instead, the mod now uses data packs and resource packs to define custom cards.

This new system is more flexible, future-proof, and allows you to add support for any entity ( including modded mobs), custom visuals, and more detailed settings.

🧰 How to Create a Custom Mob Capture Card (Step-by-Step)

Let’s walk through the full process to add your own custom Mob Capture Card.

πŸ“ Step 1: Create a Data Pack

In your world save folder or inside a modpack, create a new data pack folder.

Example structure:

/your_world/datapacks/custom_mob_cards/
β”œβ”€β”€ pack.mcmeta
└── data/
    └── yourmod/
        └── easy_mob_farm/
            └── mob_capture_card/
                └── my_custom_mob.json

pack.mcmeta Example:

{
  "pack": {
    "pack_format": 41,
    "description": "Custom Mob Capture Cards for Easy Mob Farm"
  }
}

my_custom_mob.json Example:

{
  "entity": "minecraft:zombie",
  "model": "yourmod:item/easy_mob_farm/mob_capture_card/zombie_card",
  "rarity": "common",
  "scale": 1.2,
  "requires_killed_by_player": false,
  "requires_animation_tick": false
}

🧾 Field Breakdown

Each custom Mob Capture Card uses a JSON file with several fields that define how the card and the corresponding mob behave, how it looks, and other specific settings.

Field Required Description
entity βœ… Yes The registry name of the mob (e.g. minecraft:zombie)
model βœ… Yes Resource location for the custom model (points to a model JSON in the resource pack)
rarity βœ… Yes Can be common, uncommon, rare, or epic
scale ❌ No Optional scale for mob rendering on the card (default is 1.0)
requires_killed_by_player ❌ No Adds a note that the drop requires the mob to be killed by a player
requires_animation_tick ❌ No Enables animation ticks, which requires more resources and should only be used for models that don't render correctly otherwise

🎨 Step 2: Create a Resource Pack

To make your card visually unique, define a model and texture in a resource pack.

Structure example:

/resourcepacks/custom_mob_cards/
└── assets/
    └── yourmod/
        β”œβ”€β”€ models/
        β”‚   └── item/
        β”‚       └── easy_mob_farm/
        β”‚           └── mob_capture_card/
        β”‚               └── zombie_card.json
        └── textures/
            └── item/
                └── easy_mob_farm/
                    └── mob_capture_card/
                        └── zombie_card.png

zombie_card.json (model)

{
  "parent": "item/generated",
  "textures": {
    "layer0": "yourmod:item/easy_mob_farm/mob_capture_card/zombie_card"
  }
}

πŸ–ΌοΈ Note: The corresponding image should be a 16x16 PNG (zombie_card.png) and placed in the correct texture path.

πŸ§ͺ Example: Fire Dragon Card (Modded Mob)

Data pack file:

data/iceandfire/easy_mob_farm/mob_capture_card/fire_dragon.json
{
  "entity": "iceandfire:fire_dragon",
  "model": "iceandfire:item/easy_mob_farm/mob_capture_card/fire_dragon",
  "rarity": "epic",
  "scale": 3.5,
  "requires_killed_by_player": true,
  "requires_animation_tick": true
}

Resource pack files:

Model:

assets/iceandfire/models/item/easy_mob_farm/mob_capture_card/fire_dragon.json
{
  "parent": "item/generated",
  "textures": {
    "layer0": "iceandfire:item/easy_mob_farm/mob_capture_card/fire_dragon"
  }
}

Texture:

assets/iceandfire/textures/item/easy_mob_farm/mob_capture_card/fire_dragon.png

πŸ’‘ Tips & Best Practices

  • βœ… Keep registry names and file names lowercase.
  • βœ… Use clear file names like zombie_forest.json or skeleton_snow_variant.json to avoid confusion.
  • βœ… You can override existing mob cards by using the same entity ID in a higher-priority data pack.
  • βœ… Use namespaces to avoid conflicts with other packs or mods.
  • πŸ” Combine with mods like Swampy Swamps or Ice and Fire for biome- or type-specific cards.
  • πŸ§ͺ You can reload your data pack in-game with /reload.

⚠️ Legacy Config Support Removed

⚠️ Important: The old configuration-based system is no longer supported as of Easy Mob Farm version 10.x.

Deprecated config files include:

  • mob_capture_card_rarity.cfg
  • mob_capture_card_models.cfg

Please migrate all custom Mob Capture Cards to the new data pack + resource pack system.

🧩 Summary

To add a custom card:

  1. Create a data pack and define a mob_capture_card/<name>.json file.
  2. Define a matching model file and texture in a resource pack.
  3. Set fields like rarity, scale, and custom logic as needed.
  4. Reload and enjoy your personalized Mob Capture Cards!

You can share custom Mob Capture Card models with other players via resource packs or similar methods.

⚠️ **GitHub.com Fallback** ⚠️