MobCaptureCard - MarkusBordihn/BOs-Easy-Mob-Farm GitHub Wiki

📋 Mob Capture Card

🧩 Overview

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

📝 Mob Capture Cards can be obtained by killing mobs and fishing.

🎴 Card Properties

Each Mob Capture Card has unique properties that define its capabilities and usage.

Mob Capture Card

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.).

📦 Loot and Drops

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.

🛠️ Usage

Mob Capture Cards can be utilized in each Mob Farm setup:

  1. Right-click with a Mob Capture Card on an empty Mob Farm to place it.
  2. Open the Mob Farm GUI and insert the card in the designated Mob Capture slot.

🌟 Creative Mob Capture Card

Creative Mob Capture Card

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.

🔧 Configuration Files

With configuration files, you can customize various aspects of the Mob Capture Cards to fit your gameplay.

🗂️ Mob Capture Cards Configuration

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.

📝 Allow and Deny Lists

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. 🎣⚔️

Example: Allow Only Specific Mobs 🟢

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 =

Example: Deny Specific Mobs 🚫

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

🎲 Mob Capture Cards Rarity

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.

🎨 Custom Mob Capture Cards

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.

Formatting Rules

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.

🖼️ Custom Mob Capture Card Models

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.

Example of a Simple Image-Based Model

{
  "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.

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