MCA: Mob Compat

Allows MCA to treat modded mobs as the animals, mounts and livestock they are, and turns Guards, Recruits, Workers, Illagers, Witches, and Wandering Traders into true MCA villagers with names, hearts, family trees and MCA's own interaction screen.
Back to Files

MCA: Mob Compat 0.3.1 (Forge 1.20.1)

File namemcamobcompat-forge-0.3.1-1.20.1.jar
Uploader
OtectusOtectus
Uploaded
Nov 30, 2026
Downloads
258
Size
623.0 KB
Mod Loaders
Forge
File ID
9933482
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:mca-mob-compat-1691620:9933482")

Learn more about Curse Maven

What's new

0.3.1

Vanilla Pillagers, Witches and Wandering Traders are MCA people, on both loaders, with nothing but MCA needed. The native mob stays the body and a real, hidden MCA villager is the person behind it, as for guards, recruits and workers.

  • Witches stay hostile, dressed as witches. Every vanilla Witch ([witches] enabled, appearance) -- plus Special Mobs' (specialmobs) themed Witch subclasses when [witches] includeSpecialMobs is on -- gets a persistent MCA person, drawn as that person in one of four witch-style MCA outfits (brimmed dark hat/hood with transparent face window, laced robes and potion vials). Its AI, potions, raids, hut spawning, loot and despawning stay vanilla's. Its person is isolated, homeless, talks only while the Witch provably cannot fight (NoAI, no target, not aggressive, no raid), takes talk and gifts but no ring, order, job or home, and dies once as an outlaw with no grief or assault.

  • Instant fresh-spawn conversion. Freshly spawned characters (spawn eggs, commands, natural/raid spawns) now create and sync their MCA person on the same server tick (GuardProxy.createImmediate, flushed at level/server tick end), while the client holds off rendering the native body briefly for brand-new actors that are about to receive MCA appearance (CharacterRenderHandler), avoiding any visible model pop-in.

  • Role outfits and greetings. Serving recruits, workers, nobles and cooks can be drawn in role-specific MCA outfits ([characters] roleOutfits, client [rendering] roleOutfits, four variants each) over their own clothes without modifying the saved person (CharacterRole, CharacterRenderViews). Serving guards, recruits, workers and cooks also greet the player they serve with role-aware MCA lines ([characters] roleDialogue, RoleDialogue).

  • Carry On transport. With Carry On installed ([modules] carryOn, [carry_on] carryCharacters), picking up a character's actor opens a durable TRANSPORT operation (CharacterTransport), keeps the hidden person with the carrier (across dimensions and restarts, using bounded temporary chunk tickets when needed), renders carried actors as their MCA persons, and reunites the exact pair on placement. Hidden persons themselves can never be picked up.

  • Animation bridge. On Forge 1.20.1 with an audited Mob Player Animator build (1.3.3, used by Better Mob Combat), [rendering] animationBridge lends the actor's animation state to its render view for each draw (AnimationBridge) so attack animations play on the MCA model.

  • Townstead visual layer mirroring. With Townstead (townstead) installed, [modules] townstead and client options [rendering] townsteadLayers, townsteadScale, and townsteadLivery (all true by default) reflectively mirror Townstead Roots appearance layers (skin tints, skin overlays, attachments, custom eyes, alternate species rigs, build proportions, senior hair, and state forms), life-stage scaling (plus 1.21.1 body-scale attribute), and armor livery onto living MCA render views (TownsteadRenderBridge), preserve alternate species outfits against human role outfits, and release view IDs on eviction or unload.

  • Pillagers stay hostile. Every Pillager gets a persistent person, drawn as that person in a raider's outfit (MCA clothing, four of them), in its own crossbow and bow poses, a crossbow's charge drawn as it runs. Its AI, raids, patrols, captaincy, loot and despawning are vanilla's. Its person talks only while the Pillager provably cannot fight (AI off, no target, not aggressive, no raid), and then takes talk and gifts but no ring, order, job or home. Killing one is no assault on a villager: its person dies once, as an outlaw, without grief or lost hearts.

  • Wandering Traders are visitors. A plain click opens MCA's screen for its person, a crouching click (and MCA's Trade button) its own shop with its real offers. It keeps its llamas, potions, timer and departure, takes no home, job or village, and refuses resident-only MCA actions with an offer to settle. A player it likes can ask it to settle: the same person becomes an ordinary resident where it stood, with its belongings, through a journaled SETTLE transition. MCA's own "Ask to stay", the answer MCA keeps for its adventurers, is offered in its conversation and decided by MCA's own rules (chances, memory, village room); /mcamobcompat character settle and the chat offer do the same (operators: characters settle-visitor).

  • Isolated persons. Neither person is ever a target, or targets anything: a mob that picks one has the choice cancelled rather than redirected to the actor, and no guard is sent after it.

  • Hidden through potions. Vanilla works out an entity's invisibility again from its effects in that entity's own tick, so an effect arriving on a person, renewed, removed or running out cleared its invisible flag until the next tick: a raid witch's splash reaches the person beside its Pillager, and an add-on's effect lands on a guard's person by design. A person whose effects changed is now hidden again at the end of its level's tick, for every bridged actor.

  • Enlisting beside MCA: Crime. The crouching click that enlists an MCA villager as a guard is now claimed at the click's first packet, as well as its second. MCA: Crime's NeoForge 1.21.1 build reads that first packet for its armed menu, so there the click that enlisted a villager also opened Crime's menu; it now only enlists, as on Forge. A plain armed click still opens Crime's menu.

  • Checked at MCA's own boundaries. Every MCA command and dialogue request for these persons is checked on the server, for the player who sent it, before MCA acts: actor present and in reach, association current, integration on, social access now. A new optional hook, mca.dialogue, guards MCA's dialogue requests, and a second, mca.dialogue_answers, admits MCA's own "stay" to a visiting trader's main menu. Without MCA's command hook, MCA's screen stays closed for them.

  • Departures. A trader whose timer ran out, or a Pillager that despawns, takes its person along: the record becomes DEPARTED with its cause, a person anybody knew is archived (everything MCA saves for them), and a person nobody met leaves nothing behind. A person not loaded then is finished when it loads.

  • Options. [pillagers] enabled, appearance and [wandering_traders] enabled, appearance, allowSettlement in the server config, all on by default. Off suspends: nobody is deleted, and the same person resumes.

  • API. MobCompatibilityAPI.characterInfo, maySocialize, isHostileCharacter and isVisitorCharacter: a character's standing (service, hostile, visitor, resident) and lifecycle, for MCA add-ons.

  • Save and network. Character records are schema 5 (additive: departure cause, time and archive); a 0.3.0 build opens a schema 5 world read-only. The network protocol is 3: a policy message tells clients the server's routing and appearance choices per adapter, and 0.3.0 clients are refused.

  • Item use drawn. A person view now takes its actor's item use, so MCA's model draws what vanilla draws for any entity: a crossbow's charge (the arms and the string), a drawn bow, a raised shield, a potion drunk.

  • Tests. A GameTest suite for both characters (mcamobcompat_vanilla, 33 tests) runs with every GameTest run, and alone with MCA only (-PmcaOnly): a real five-wave raid to its victory, a real patrol and an outpost captain, each beside an unbridged control run; unloading and reloading in either order; a change of dimension; a departure while the person is unloaded; MCA's own "stay"; a settled resident following, working, sleeping and marrying; a person kept hidden through its effects; and timing runs. Three more run with MCA: Crime (-PwithCrime).

Villager Recruits and Villager Workers at Guard Villagers' parity

A recruit or a worker is now as complete an MCA citizen as a Guard Villagers guard. Every guard behaviour, set against both, is in the parity matrix in docs/NATIVE_CHARACTER_COMPATIBILITY.md, with the reason for every difference. Every new option defaults to what an existing world already does, except village defence, which is what parity asks for: [recruits] protectMcaVillagers is on, as protectMcaVillagers is for guards, so idle recruits now answer an attack on an MCA villager or a worker, and guards now answer an attack on a worker. Turning either option off restores the earlier behaviour.

  • Recruits defend the village's people, on their own terms. A mob that attacks or targets an MCA villager or a worker, or a creeper an MCA villager runs from, now alerts nearby idle recruits as it alerts guards ([recruits] protectMcaVillagers, helpRange, maxAlerted, retaliateAgainstPlayers). Only a recruit on the neutral or aggressive stance, not holding fire and not a noble, is sent, and only where Recruits' own canAttack lets it attack: never its owner, the one it protects, its team, an ally or a treaty. Each mod's defenders follow their own adapter and options; a recruit reads no [guard_villagers] option. A worker is a civilian: guards and recruits defend it, and it is never sent.
  • MCA: Crime. A restrained person's recruit or worker is held through Recruits' own hold, and given its order back when the restraint ends, as a guard stops following and patrolling. With [recruits] lawEnforcement on (still off by default), Crime's pursuit of a wanted player reaches the recruit, within its owner's orders and its faction's diplomacy ([recruits] followAddonTargets). Workers are never law enforcement.
  • Friendly fire and nameplates, as options. [recruits] preventFriendlyFire and [workers] preventFriendlyFire (off) stop one choosing an MCA villager as its target, except on raid stance or in defence of itself, its owner or the one it protects. [recruits] showNameTag and [workers] showNameTag (off) set the person's nameplate always shown, as guardShowNameTag does.
  • Patrols and caravans are visitors. An unowned recruit with Recruits' despawn timer running takes no home or village until a player hires it. Recruits' own despawn of one is a departure: the person is archived if anybody knew them, and otherwise forgotten with the family-tree entries MCA made for them. A person who leaves the world for good is first taken off their village's residents, as MCA lets a resident go; an enlisted person whose recruit is removed comes home instead.
  • Shops. /mcamobcompat character trade opens the shop of the character you look at: a Workers merchant's stall for its customers (as their crouching click does) or a Recruits noble's hire screen. MCA's own Trade does the same where MCA shows it, which is only for a person whose profession trades.
  • Drawn mounted. A mounted recruit (a horseman on its horse, a nomad on its camel) drawn as its person sits facing with its mount, as vanilla draws any rider.
  • Clothes kept. MCA re-dresses a villager whose profession changes. The profession this mod gives a serving person, or gives back when they come home, is no change of job, so the person now keeps their clothes through enlistment, the way home and the reassertion of a guard's profession. Guards were affected too.