MobCaptureCard - MarkusBordihn/BOs-Easy-Mob-Farm GitHub Wiki
Mob Capture Cards are unique items dropped by mobs that allow players to capture and store mobs in a card format. These cards can be used in the Mob Farm or for other mob-related mechanics.
📝 Mob Capture Cards can be obtained by killing mobs and fishing.
Each Mob Capture Card has unique properties that define its capabilities and usage.
Main properties include:
- Name: Unique identifier for each Mob Capture Card.
- Type: The type of mob captured (e.g., Zombie, Skeleton, etc.).
- Rarity: Defines how rare the card is (e.g., Common, Rare, Epic).
- Card ID: A unique identifier for the card; cards with identical properties share the same Card ID.
Optional properties may include:
- Color: Color variant of the captured mob.
- Variant: Special variant of the mob (e.g., Husk, Stray, etc.).
Mob Capture Cards can be obtained through various methods, including:
- Drops from Mobs: Cards have a chance to drop when mobs are defeated.
- Fishing: Certain cards may be found as rare fishing rewards.
Mob Capture Cards can be utilized in each Mob Farm setup:
- Right-click with a Mob Capture Card on an empty Mob Farm to place it.
- Open the Mob Farm GUI and insert the card in the designated Mob Capture slot.
The Creative Mob Capture Card allows players to capture any mob in the game. If no custom card design is provided, a default card design will be used.
With configuration files, you can customize various aspects of the Mob Capture Cards to fit your gameplay.
The config/easy_mob_farm/mob_capture_card.cfg
file allows you to adjust how and when Mob Capture
Cards are dropped by mobs.
dropMobCaptureCardOnFishing = true
dropMobCaptureCardOnKill = true
mobCaptureCardFoilDropChance = 0.01
mobCaptureCardFishingDropAllowList =
mobCaptureCardFishingDropDenyList =
mobCaptureCardFishingDropChance = 0.15
mobCaptureCardKillDropAllowList =
mobCaptureCardKillDropDenyList =
mobCaptureCardKillDropChance = 0.1
requirePlayerKill = true
-
dropMobCaptureCardOnFishing
: Enables/disables card drops from fishing. -
dropMobCaptureCardOnKill
: Enables/disables card drops from mob kills. -
mobCaptureCardFoilDropChance
: Chance for a Foil Mob Capture Card to drop (e.g.,0.01
= 1%). -
mobCaptureCardFishingDropAllowList
: List of mobs that can drop cards when fishing. -
mobCaptureCardFishingDropDenyList
: List of mobs that cannot drop cards when fishing. -
mobCaptureCardFishingDropChance
: Chance for a Mob Capture Card to drop from fishing (0.15
= 15%). -
mobCaptureCardKillDropAllowList
: List of mobs that can drop cards when killed. -
mobCaptureCardKillDropDenyList
: List of mobs that cannot drop cards when killed. -
mobCaptureCardKillDropChance
: Chance for a Mob Capture Card to drop from mob kills (0.1
= 10%). -
requirePlayerKill
: If true, only mobs killed by players will drop Mob Capture Cards.
If you want to control which mobs drop capture cards, you can use Allow and Deny lists 📝. These lists let you specifically include or exclude certain mobs. Here's how they work:
- 🟢 Allow List: Only the mobs in this list can drop capture cards.
Note: If you use an allow list, all mobs not listed are denied by default. - 🚫 Deny List: Mobs in this list are explicitly denied from dropping capture cards, while all others are allowed.
You can configure separate lists for kill drops and fishing drops. 🎣⚔️
Use this setup if you only want certain mobs to drop capture cards:
# Allow zombies and skeletons for kill drops
mobCaptureCardKillDropAllowList = minecraft:zombie, minecraft:skeleton
mobCaptureCardKillDropDenyList =
# Allow cod and salmon for fishing drops
mobCaptureCardFishingDropAllowList = minecraft:cod, minecraft:salmon
mobCaptureCardFishingDropDenyList =
Use this setup if you want most mobs to drop cards but block certain ones:
# Deny Ender Dragon and Wither from kill drops
mobCaptureCardKillDropAllowList =
mobCaptureCardKillDropDenyList = minecraft:ender_dragon, minecraft:wither
# Deny squid and turtle from fishing drops
mobCaptureCardFishingDropAllowList =
mobCaptureCardFishingDropDenyList = minecraft:squid, minecraft:turtle
In config/easy_mob_farm/mob_capture_card_rarity.cfg
, you can set the rarity of specific Mob
Capture Cards.
minecraft:cat = COMMON
minecraft:cave_spider = UNCOMMON
minecraft:blaze = RARE
minecraft:ender_dragon = EPIC
-
minecraft:cat=COMMON
: Sets Cat cards to COMMON rarity. -
minecraft:cave_spider=UNCOMMON
: Sets Cave Spider cards to UNCOMMON rarity. -
minecraft:blaze=RARE
: Sets Blaze cards to RARE rarity. -
minecraft:ender_dragon=EPIC
: Sets Ender Dragon cards to EPIC rarity.
Note: The configuration file uses the mob's registry name to define rarity and supports custom mobs.
With config/easy_mob_farm/mob_capture_card_models.cfg
, you can create custom Mob Capture Cards
with unique designs. This allows modders, mod pack creators, and content creators to add customized
cards for different mobs.
minecraft:zombie = easy_mob_farm:item/mob_capture_card/minecraft/zombie
minecraft:zombie::blue = easy_mob_farm:item/mob_capture_card/minecraft/zombie_blue
minecraft:zombie::old::blue = easy_mob_farm:item/mob_capture_card/minecraft/zombie_old_blue
Important: This functionality is available only up to version 1.21.3. It was removed starting with version 1.21.4 and is no longer supported in later versions.
The format for defining custom models is as follows:
<entity_name> = <resource_location>
<entity_name>::<variant> = <resource_location>
<entity_name>::<color> = <resource_location>
<entity_name>::<variant>::<color> = <resource_location>
The mod tries to load and bake the models for Mob Capture Cards based on this configuration. If the model is not found, a default model will be used.
The mod supports simple image-based or custom 3D models for Mob Capture Cards. Models are typically
defined in assets/easy_mob_farm/models/mob_capture_card/.../
or any resource pack folder.
{
"parent": "item/generated",
"textures": {
"layer0": "easy_mob_farm:item/mob_capture_card/minecraft/blaze"
}
}
This example file loads the image blaze.png
from the
assets/easy_mob_farm/textures/item/mob_capture_card/minecraft/
folder.
You can share custom Mob Capture Card models with other players via resource packs or similar methods.