Custom Mob Capture Cards - MarkusBordihn/BOs-Easy-Mob-Farm GitHub Wiki
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.
Letβs walk through the full process to add your own custom Mob Capture Card.
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": {
"pack_format": 41,
"description": "Custom Mob Capture Cards for Easy Mob Farm"
}
}{
"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
}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 |
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
{
"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.
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
- β Keep registry names and file names lowercase.
- β
Use clear file names like
zombie_forest.jsonorskeleton_snow_variant.jsonto avoid confusion. - β
You can override existing mob cards by using the same
entityID 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.
β οΈ 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.cfgmob_capture_card_models.cfg
Please migrate all custom Mob Capture Cards to the new data pack + resource pack system.
To add a custom card:
- Create a data pack and define a
mob_capture_card/<name>.jsonfile. - Define a matching model file and texture in a resource pack.
- Set fields like
rarity,scale, and custom logic as needed. - 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.