- Java 90.4%
- Python 9.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src/main | ||
| tests | ||
| tools | ||
| .gitignore | ||
| build.py | ||
| COMBAT_VALIDATION.md | ||
| README.md | ||
Epic Fight: MCA Compat
Integrates Minecraft Comes Alive Reborn with Epic Fight 20.15.2 on Minecraft 1.20.1 and Forge.
The production JAR includes MCA villager combat and the player-rendering bridge formerly released as MCA Player / Epic Fight Compat. Install the combined JAR once.
Credit to Zora, creator of the original MCA x Epic Fight Compat mod. Original project on CurseForge
Villager and zombie villager patches
Epic Fight combat bridge
- Registers Epic Fight humanoid armatures and renderers for MCA villagers and zombie villagers, with MCA textures and movement, attack, and gear animations.
- Uses animation hitboxes for melee damage and suppresses duplicate instant MCA hits. Includes configurable villager melee damage and removes MCA's triple guard damage from the animated melee path.
- Supports compatible dual wielding from villagers' inventories, using Epic Fight's weapon pairing rules and preserving equipped shields.
- Adds configurable frontal blocking, a guard stamina meter with guard breaks, and dodge rolls with a three-second cooldown.
- Provides a per-player friendly-fire setting through
/mcaef friendlyfire on,off, orstatus. The protection covers direct attacks, projectiles, and damage events, with an exception for villagers already attacking that player.
Villager targeting and movement
- Lets armed adults at 25% health or higher defend themselves or their spouse against hostile mobs and recent non-player attackers. Stops panic when they take up defense and can find their combat-only weapons in inventory.
- Lets healthy adult guards fight while following or staying. After a kill, idle guards can acquire a fresh enemy even when MCA still remembers the dead target.
- Clears invalid targets and keeps valid opponents briefly through MCA targeting gaps. Retains targets for up to four seconds and within 10 blocks for civilians or 16 for guards. Updates both MCA's attack memory and the mob target.
- Reassesses nearby threats between strikes and resumes pursuit after knockback using the equipped weapon's reach. Daggers close to shorter range, and tridents use their thrust attacks.
- Uses safe backsteps and diagonal movement to recover from close-range misses, improve spacing, and approach raised shields. Dash attacks require dry, supported ground clear of obstacles and hazards.
- Pauses melee during potion use or spell channels. Movement yields to native stuns, retreat, and animation locks. Optional Pack Races aiming yields while a spacing move is active.
Combos, hit detection, and equipment changes
- Builds NPC melee chains from the held weapon's actual style and valid attack animations. Filters non-attack and player-only projectile entries and uses Epic Fight's mob fallback when a moveset needs it.
- Requires confirmed damage before continuing a combo. Briefly waits through range or facing interruptions, then resumes pursuit if the chain cannot continue. An ordinary follow-up can redirect once to a valid nearby enemy. Finishers need confirmed hits on their own target.
- Uses supported equipped-weapon innates as finishers after setup hits and an opening, with an eight-second game-time cooldown. Supports additional attack sequences through a Forge event.
- Gives Steel Whirlwind its native charge animation and actual charge duration. Interruptions, weapon or style changes, lost sight, and excessive distance can cancel the charge.
- Checks the combined bounds of sampled attack colliders so later samples can find their targets. Keeps the original narrow hitboxes and strike timing.
- Aims eligible lunges using Epic Fight's target-distance movement and corrects spacing for fixed jumps without changing their hitboxes.
- Preserves the active attack goal and combo through durability wear and repairs. Refreshes after equipment, weapon-style, or profession changes and repairs missing or duplicate goals within 20 ticks. Changing either hand or becoming ineligible for melee cancels a pending charged attack.
- Tracks confirmed hits on a selected target independently of sweep damage to nearby enemies.
- Routes MCA offhand attack-speed modifiers to attack speed, preventing stale or duplicate modifiers during swaps.
- Clears pending attacks, charges, and targets on load, removal, or death. Preserves genuine stun recovery and saved cooldowns.
- Provides optional combat diagnostics for attack outcomes, continuation waits, positioning, and target changes.
Potions and skill-book gifts
- Accepts normal, splash, and lingering potions as MCA gifts. Villagers can drink healing or regeneration potions at half health or lower, throw beneficial potions to injured allies and harmful potions at enemies, and share spare potions.
- Accepts registered Epic Fight and addon skill books through MCA's Gift interaction. Keeps one accepted book with its skill data and saves the learned skill. Full inventories reject the gift without consuming it.
- Uses the strongest learned block bonus from Guard, Impact Guard, or Parrying at +10, +15, or +20 percentage points. Roll or Step adds 15 points to the NPC's existing roll chance. Existing zero-chance settings stay disabled. Other valid books are recorded as learned. Equipped weapon innates are independent of books.
Epic Fight addon support
Villagers can accept and remember registered addon skill books. Combat effects for individual skills depend on their MCAEF adaptations. Combat validation
Weapons of Miracles (WoM, wom)
- Matches MCA Shooting Style kick speed to player timing using the actor's attack-speed attributes or the player-base fallback.
- Fixes Herrscher/Gesetz and Antitheus client sound crashes by using the local player as listener and the villager as the sound source.
- Skips Solar Brasero's player-passive particle callback for MCA actors while keeping its attack, collider, and other animation events.
- Restores preexisting invulnerability after an ultimate ends or is interrupted. Saving mid-attack preserves the original value so temporary protection cannot become permanent.
Epic Fight Resurrection (Corrupt Fight, cdmoveset)
- Uses Epic Fight's current action-transition builder for MCA katana animations, including dual great tachi. Preserves joint defaults, root motion, and transition timing.
- Villagers can use the Dual Slash, Greatsword Dual Skill, Spear Slash, Sword Slash, and Wind Slash weapon innates.
Additional addons with tested skill-book support
Villagers accept and save registered skills from Sword Soaring, Epic Fight
Invincible Lib, Dodge Parry Reward, WOC Remastered, and the refm,
wo_traveloptics, and wolm integrations. Test coverage for these addons was
limited to skill acquisition and retention. Combat validation
Player rendering patches
MCA appearance and first person
- Animates MCA skin, face, clothing, and hair meshes with Epic Fight's skeleton. Keeps MCA textures, blinking, hair dye, skin tint, and age and chest proportions.
- Applies MCA height and width scaling to the entire player render, including armor and held items.
- Renders MCA first-person skin with Epic Fight's first-person part visibility settings. Uses a bounded mesh cache and releases meshes on resource reload.
Armor models
- Adds MCA chest geometry for female genetics models to vanilla and standard humanoid armor, Twilight Forest armor, and Born in Chaos armor. Uses the armor's own textures and retains original model details.
- Adds the matching chest geometry to GeckoLib body bones for Iron's Spells and T.O Magic 'n Extras armor. Preserves native animated armor details.
- Includes chest size in armor mesh caching and clears added geometry when shared models change wearer or slot. MCA's own armor exposes a separate chest part to Epic Fight's rebaker during combat. Weapons of Miracles armor keeps its native model.
MCA editor previews
- Uses MCA's native previews in the player editor, Destiny editor, and clothing and hair thumbnails. Genetics edits appear immediately, and the world behind the editor continues using Epic Fight rendering.
Build
Run python3 build.py with Python 3, Java 17, and the modpack's local Forge 47.4.28 libraries and mod dependencies. The build compiles the villager patches and player rendering from src/main/java together and writes one production JAR to build/epicfight-mca-compat-1.2.0.jar.
The build uses the original MCA x Epic Fight Compat 1.1.0 JAR as the base for villager combat. Use --upstream /path/to/mcaefcompat-1.1.0.jar to point to that input when it is outside the modpack's backup directory. The combined JAR retains the mcaefcompat and mcaplayercompat mod IDs.