▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Petting - Tame any mob!
Petting - Tame any mob!

Petting - Tame any mob!

Pet mobs and have them become protective companions that follow you, offering support and assistance during your adventures.

Оцените первым
18.1K
96

Petting

Turn any mob into your loyal, protective companion.

Modrinth

GitHub · Wiki · Bug Reports · Discord


Petting is a Minecraft mod that lets you tame virtually any mob in the game — hostile or passive, ordinary or boss. Tamed pets follow your commands, defend you in combat, carry your items, ride alongside you, and respawn at a dedicated bed when they die. Every behavior is deeply configurable, making the mod suitable for survival, adventure maps, and modpacks alike.


Features at a Glance

  • Tame almost any mob, including Withers, Ender Dragons, and Wardens
  • Full riding support for land, flying, and swimming mobs
  • Per-pet inventory with armor slots, hand slots, and 14 item storage slots
  • Four AI modes: Following, Sitting, Waiting, Wandering
  • Combat modes: Aggressive, Defensive, Guard
  • Pet Bed block for infinite respawning — pets teleport to their bed on death, even across dimensions
  • Per-pet control mapping system with custom actions and conditions
  • Passive immunities: no fall damage, fire, or lava damage for tamed pets
  • Global whistle via Goat Horn to instantly recall all pets
  • Category system for grouping pets and enforcing per-group limits
  • Full server and modpack configuration via petting-common.toml

Getting Started

Installation

  1. Download the latest release from CurseForge or Modrinth.
  2. Place the .jar file in your mods/ folder.
  3. Launch the game. A default config file will be generated at config/petting-common.toml.

Taming

Taming is how you acquire a pet. By default, right-click a mob while holding Golden Wheat (petting:golden_wheat) to attempt taming it. The item is consumed on every attempt. Heart particles appear on success; smoke particles appear on failure. The taming item is fully configurable via tamingItem.

When tamed, all three combat modes — Aggressive, Guard, and Defensive — are enabled by default. The pet is also automatically named "[YourName]'s [mob type]" with the name tag hidden above their head.

Holding Golden Wheat in either hand (main or offhand) causes nearby untamed animals within 12 blocks to follow you.

Success Factors

FactorConfig KeyDescription
Base chancetameChanceDefault 33% per attempt
Weakness scalinghealthScalesTamingChanceLower HP increases success chance
Health thresholdtameHealthThresholdMob must be missing a certain % of HP to be tameable
Kill requirementrequireKillToTameMust have killed at least one of that mob type first
Custom itemscustomTamingItemsAssign specific taming items per mob (format: entity_id|item_id)
WhitelistwhitelistOnly, tamingWhitelistOnly listed mobs can be tamed
BlacklistblacklistEnabled, tamingBlacklistListed mobs cannot be tamed (supports modid:* wildcards)
CooldowninteractionCooldownTicks between allowed taming attempts on the same mob (default: 20)

Controls & Pet Management

Empty Hand (Default Mappings)

By default, the control system uses per-pet mappings. Fresh pets have these defaults:

InputDefault Action
Right-ClickToggle Sit on/off
Shift + Right-ClickCycle follow/teleport distance presets (5/10 → 10/20 → 20/50 blocks)

These are fully remappable per-pet or globally via the Pet Settings Screen (press P while looking at a pet, or bind controls.petting.open_settings in Controls).

Pet Settings Screen (P Key)

Press P while targeting your pet to open the settings GUI. From here you can:

  • Toggle AI modes: Sitting, Waiting, Aggressive, Guard, Self-Defense, Ignore Whistle
  • Set exact follow and teleport distances
  • Open the Control Mappings sub-screen to customize right-click and shift+right-click actions

Control Mapping System

Each pet (and player default) supports a chain of ordered rules for right-click and shift+right-click. Rules follow the format ACTION|CONDITION and are evaluated top-to-bottom; the first matching rule is executed.

Available Actions

ActionDescription
SITToggle Sitting on/off
TOGGLE_WAITToggle Waiting on/off
RIDEMount the pet
OPEN_INVOpen the pet inventory
CYCLECycle through distance presets (5/10 → 10/20 → 20/50)
TOGGLE_FOLLOW_TELEPORTSwap the follow and teleport distance values
OPEN_SETTINGSOpen the Pet Settings screen
RUN_COMMANDRun a server command (requires the owner to have permission for it)
NONEDo nothing

Available Conditions

ConditionWhen it passes
NONEAlways
SADDLEPet has a saddle equipped
SNEAKOwner is crouching
HEALTH_LT_50Pet is below 50% HP
HOLD_ITEMOwner is holding any item

Multiple rules can be chained with ;, e.g. RIDE\|SADDLE;SIT\|NONE (mount if saddled, otherwise toggle sit).

Interaction Tools

All tool item IDs are configurable in the [Tool Settings] section of petting-common.toml.

ToolDefault ItemFunction
Status Stickminecraft:stickRight-Click: cycle AI mode (Following → Sitting → Waiting → Wandering). Shift+Right-Click: detailed status report in chat
Whistlepetting:follow_whistleCycle follow distance through presets: 5 → 10 → 20 → 50 blocks
Orbpetting:teleport_orbCycle teleport trigger distance through presets: 10 → 20 → 50 → 100 blocks
Clockminecraft:clockToggle whether this pet responds to the global Goat Horn whistle
Swordany swordToggle Aggressive Mode — attacks what the owner attacks
Shieldminecraft:shieldToggle Defensive Mode — retaliates when attacked
Cookieminecraft:cookieToggle Guard Mode — attacks anything that hits the owner
Tetherpetting:pet_tetherBind the pet to a configurable roam radius around its current position
Shearsminecraft:shearsCrouch + Right-Click to release the pet back to the wild
Goat Hornminecraft:goat_hornRight-click to teleport all owned pets to your location instantly

Riding

Riding works across all movement types — land, flying, and swimming.

InputAction
SpaceJump (on land) / fly upward / swim upward
SMove backward / fly downward / swim downward
Sprint (Ctrl)1.3x speed boost

Flying and swimming mobs maintain their current altitude or depth when you stop moving. The pet's rotation is always synced with your view. Use the RIDE\|SADDLE control mapping to require a saddle before mounting.


AI Modes

Pets have four movement states:

StateBehavior
FollowingWalks toward the owner and teleports if too far away
SittingStays in place; heals over time if sitHealEnabled is on
WaitingStays in place without healing regeneration
WanderingRoams freely in the area

Combat modes are independent of movement state:

ModeToggle ToolBehavior
Aggressiveany swordAttacks whatever the owner attacks
DefensiveshieldRetaliates when the pet itself is attacked
GuardcookieAttacks anything that hits the owner

Pet Inventory & Equipment

Open the pet inventory via the OPEN_INV control mapping action, or through the Pet Settings screen.

  • Armor slots — equip helmets, chestplates, leggings, and boots
  • Hand slots — equip swords or shields; pets physically hold and use them
  • Storage — 14 item slots for carrying loot
  • Equipment slots are auto-detected per mob type; extras can be forced via extraEquippableMobs
  • Global stat bonuses are applied to all pets via petBaseArmor and petBaseArmorToughness

Pet Safety

Passive Immunities

All tamed pets are permanently immune to:

  • Fall damage
  • Fire and lava damage

Mutual Pacifism

Pets never attack other tamed pets, even from splash projectiles.

Sitting Regeneration

Pets regenerate health while in the Sitting state. Configurable via sitHealAmount and sitHealInterval.


Pet Beds

The Pet Bed block allows a pet to respawn indefinitely at a fixed location.

  1. Right-click a placed Pet Bed to enter Binding Mode.
  2. Right-click your pet to link it to the bed.
  3. If the pet dies, the death is cancelled — the pet teleports to its bed, fully healed, and sits.

Beds work across dimensions. The dimension is stored at binding time so pets can respawn even if they die in the Nether or End. Right-click the air while in Binding Mode to cancel.


Boss Pets

BossSpecial Behavior
WitherSide heads permanently suppressed; center head skull attacks cancelled when idle (no target)
Ender DragonSupports mounted combat; health bar hidden after taming
WardenAnger levels towards owner and other pets are continuously cleared

The hideTamedBossBars config option can hide boss health bars for any tamed boss.


Entity Conversion

When a tamed mob converts to a new entity type (e.g. Zombie to Drowned), all pet data carries over automatically:

  • Owner UUID
  • Custom name
  • AI modes and follow / teleport distances
  • Saddle and equipped items
  • Pet Bed binding (including the stored dimension)

Advanced Systems

Pet Categories

Group mobs into named categories with shared per-player limits. Useful for modpacks and servers.

Format: SlotID|DisplayName|MobList|DefaultLimit

Example: 1|Undead|minecraft:zombie,minecraft:skeleton|5

Slot IDs 1–20 correspond to the petting:max_pets_category_X player attributes.

Custom Attributes

Gear and perk mods can grant players additional pet capacity using these player attributes:

  • petting:max_pets — increases the global pet limit
  • petting:max_pets_category_1 through petting:max_pets_category_20 — increases limits per category

Admin & Map-Maker Tools

Commands

/pet <target_mob> <target_player>

Instantly tames a mob and assigns it to a player. Requires operator permissions.

Pre-Tamed Mobs via NBT

Spawn a mob that is already tamed using a /summon command:

/summon minecraft:zombie ~ ~ ~ {ForgeData: {pettingtamed: 1b, ownerUUID: "YOUR-UUID-HERE"}}

Mobs spawned this way will have their hostile AI disabled and be bound to the specified owner. The RUN_COMMAND mapping action also allows owner-gated command execution from pet interactions.


Configuration Reference

All settings are in config/petting-common.toml.

General

KeyDefaultDescription
disableRespawnOnTametruePreserve original mob gear and NBT on tame instead of respawning
interactionCooldown20Ticks before the same mob can be taming-interacted with again
enableParticlestrueShow heart particles on successful taming
maxPetsPerPlayer-1Base pet limit per player (-1 = unlimited; also a player attribute)
enableGoatHornWhistletrueAllow Goat Horn right-click to recall all pets
whistleTeleportsTetheredfalseInclude tethered pets in the Goat Horn recall
hideTamedBossBarstrueHide health bars for tamed bosses
commandFeedbackStyleACTION_BARHow state changes are shown: ACTION_BAR, CHAT, or NONE

Taming

KeyDefaultDescription
tameChance0.33Base success rate per taming attempt
healthScalesTamingChancefalseLower mob HP increases success chance
tameHealthThreshold0.0Required missing health % before taming is allowed (0.0–1.0)
requireKillToTamefalseMust have killed one of this mob type first
allowGoldenWheattrueEnable the universal Golden Wheat taming item
whitelistOnlyfalseOnly mobs in tamingWhitelist can be tamed
tamingWhitelist[]Allowed mob IDs
blacklistEnabledtrueEnable the taming blacklist (default list is empty)
tamingBlacklist[]Mob IDs to block (supports modid, modid:*, modid:prefix*)
customTamingItems[]Custom taming items per mob (entity_id|item_id format)

AI & Survival

KeyDefaultDescription
followDistance10.0Distance (1–100) at which following behavior starts
teleportDistance20.0Distance (5–200) at which pet teleports to owner
boundRoamRadius10.0Roam radius (1–100 blocks) for tethered pets
allowOwnerToHurtPetsfalseAllow friendly fire
preventPetToOwnerDamagetruePrevent pets from damaging their owner
sitHealEnabledtrueRegenerate health while sitting
sitHealAmount1.0Health per interval (in half-hearts)
sitHealInterval40Ticks between heals (20 = 1 second)

Riding & Movement

KeyDefaultDescription
allowPetRidingtrueMaster toggle for all riding
mountRequireSaddlefalseRequire a saddle to mount
landRidingSpeedMultiplier1.0Speed multiplier on land
flyingRidingSpeedMultiplier1.0Speed multiplier while flying
swimmingRidingSpeedMultiplier1.0Speed multiplier while swimming
ridingWhitelistOnlyfalseOnly whitelisted mobs can be ridden
ridingWhitelist[]Mob IDs allowed to be ridden
ridingBlacklistEnabledfalseEnable riding blacklist
ridingBlacklist[]Mob IDs that cannot be ridden
manualFlyingMobs[]Force 3D flight for specific mob IDs
manualSwimmingMobs[]Force 3D swimming for specific mob IDs
allowPetAttackWhileRidingtrueAllow projectile attacks while riding Wither / Dragon

Inventory & Stats

KeyDefaultDescription
petBaseArmor0.0Global armor bonus for all tamed pets
petBaseArmorToughness0.0Global armor toughness bonus
extraEquippableMobs[]Force equipment slots on specific mob IDs
alwaysShowEquipmentSlotsfalseForce armor and hand slots on all mobs
inventoryWhitelistOnlyfalseOnly whitelisted mobs receive an inventory
inventoryWhitelist[]Mob IDs allowed to have inventories
inventoryBlacklistEnabledfalseDisable inventory for blacklisted IDs
inventoryBlacklist[]Mob IDs blocked from having a pet inventory
petPortraitRenderScale45.0Portrait scale in the pet inventory screen

Tool & Item Settings

All tool items are configurable. The config key maps to a registry ID (namespace:item_name).

KeyDefaultControls
tamingItempetting:golden_wheatPrimary taming item
statusToolminecraft:stickStatus cycling and report
aggressionToolminecraft:iron_swordAggressive mode toggle (any sword works by default)
defenseToolminecraft:shieldDefensive mode toggle (any shield works by default)
guardToolminecraft:cookieGuard mode toggle
followDistToolpetting:follow_whistleFollow distance cycling
teleportDistToolpetting:teleport_orbTeleport distance cycling
whistleToolminecraft:clockWhistle response toggle
tetherToolpetting:pet_tetherArea tethering
releaseToolminecraft:shearsRelease to wild
globalWhistleToolminecraft:goat_hornGlobal pet recall

Interaction Toggles

KeyDefaultDescription
allowPerPetStatustrueEnable Stick (status cycling)
allowPerPetAggressiontrueEnable Sword (aggressive mode)
allowPerPetSelfDefensetrueEnable Shield (defensive mode)
allowPerPetGuardtrueEnable Cookie (guard mode)
allowPerPetFollowDisttrueEnable Whistle (follow distance)
allowPerPetTeleportDisttrueEnable Orb (teleport distance)
allowPerPetWhistleToggletrueEnable Clock (whistle response toggle)
allowPetTetheringtrueEnable Tether (area bind)
allowPetReleasingtrueEnable Shears (release to wild)

License

Petting is licensed under the GNU Lesser General Public License v3.0. See LICENSE for details.


Made by Yigit Guven · Join the Discord

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:1 год назад
Обновлён:1 день назад
Главная