
MCMaceMod
Adds a Minecraft Mace(重锤) to R.E.P.O. - a melee weapon with fall-damage scaling, a shockwave smash and player-configurable damage and energy costs.Mace
What's This Mod About?
Adds a Minecraft-style Mace to R.E.P.O. as a purchasable melee weapon. It keeps the vanilla sledgehammer's shop placement and weight class, then adds fall-damage scaling, airborne-target handling, a large shockwave smash and player-facing configuration.
Features
| Feature | Default | Notes |
|---|---|---|
| Base damage | 100 | Configurable from 50 to 150. Also works as the baseline for the fall-damage curve and the "special hit" check |
| Energy | 10 bars | Normal hits use 1 bar; heavy hits use 3 bars |
| Heavy cost threshold | 250 damage | Energy is charged on the first successful hit of a continuous swing, using the formula damage capped by the target's remaining HP |
| Fall damage | Unbounded | Damage increases with fall height; growth slows after two knee points |
| Primary smash stun | 5 seconds | Applied to the enemy that is directly hit by a high-damage smash |
| Shockwave radius | 8 metres | Other enemies are stunned and knocked back, but take no extra damage |
| Shockwave stun | 2 seconds | Applies to other enemies inside the radius |
| Shop amount | 1 per shop | Uses the same shop tier as the vanilla sledgehammer, but a bit more expensive |
Fall-damage curve
With the default settings:
- Up to 2.5 m of effective fall: 100 damage.
- Above 2.5 m: +75 damage per metre.
- 250 damage at about 4.5 m; after that the gain slows to about +57 per metre.
- 450 damage at about 8 m; after that the gain slows again to about +25.65 per metre.
- 500 damage now requires about 9.95 m, and there is no hard damage cap.
Airborne targets
The damage height is corrected for targets that are not resting on a standable surface:
- The Mace measures the target's lowest solid collider clearance above its support surface.
- That clearance is subtracted from the player's fall height before damage is calculated.
- Grounded enemies have almost zero clearance, so their damage is unchanged.
- Tall but grounded enemies are not penalised by their body height.
- Jumping, launched and flying enemies lose the height they already occupy, including enemies without a normal rigidbody such as the Ceiling Eye when a support surface can be found.
Air hit sounds only play when both conditions are true:
- the target clearance is greater than 0.5 m;
- the hit actually benefits from fall damage beyond base damage.
Otherwise the normal hit/smash sound plays. Air hits never use the heavy smash sound.
Energy and damage
- Energy is only spent on the first successful enemy hit of a continuous swing.
- A continuous swing that briefly re-enters the swinging state does not charge again.
- Damage above 250 uses the heavy energy cost: 3 bars.
- Overkill damage does not increase the energy cost: the cost value is capped by the target's remaining HP.
- A high-damage smash stuns its direct target, triggers the shockwave and knocks nearby enemies away without damaging them.
- When energy reaches zero, the Mace enters its broken state and cannot swing.
Installation Requirements
Dependencies
- Zehs-REPOLib (4.5.1)
- BepInExPack (5.4.x)
Installing the Mod
- Install the dependencies above through your mod manager or
BepInEx/plugins. - Install Mace into
BepInEx/plugins. - Launch the game once to generate the config file at
BepInEx/config/Luca.Mace.cfg.
Config Options
The config file is created on first launch. Only the options below are exposed.
[General]
| Option | Default | What it does |
|---|---|---|
BaseDamage |
100 |
Runtime base damage, clamped to 50–150. Overrides the value in the bundled MaceSettings asset without modifying the asset |
EnableHeavyCost |
true |
When enabled, damage above 250 uses the 3-bar heavy cost. When disabled, every hit uses the normal 1-bar cost |
[Diagnostics]
| Option | Default | What it does |
|---|---|---|
EnableDetailedHitLogging |
false |
Writes a detailed [MaceHit] line for every successful hit, including formula damage, adjusted height, target clearance, thresholds and energy before/after. Intended for bug reports |
Multiplayer
- Every player must install the mod and its dependencies.
- Damage, energy, stun and knockback are resolved by the host.
- Every player must use the same mod version. Host and client settings should match for consistent presentation.
Playing Tips
- A normal swing is a reliable 100-damage melee attack; save the high falls for dangerous targets.
- The fall bonus is based on the player's current airborne peak, not on the Mace's position. Raising the weapon with grab-range upgrades does not create bonus damage.
- Hitting an airborne target uses its real clearance, so flying enemies no longer receive full ground-level fall damage.
- The second damage knee makes very high falls less rewarding; around 8 m is the breakpoint.
- The shockwave only knocks back and stuns nearby enemies; it does not clear the room by itself. Follow up on stunned targets.
- Heavy swings now consume 3 bars, so a full battery lasts only four heavy hits.
Credits
3D Models
- Minecraft Mace - Sapixcraft (the Mace model) by Sapix — Sketchfab, licensed under CC BY 4.0.
- Further model modifications and the damaged texture were made by LUCALanO.
Testing & Balance
- FLson — tested version 1.0.0 and helped tune several values to balance the weapon.
Model Modification Ideas
- cn-xc — provided ideas and direction for the model modifications.
Audio & Particles
Some sound effects and particle textures are original Minecraft assets, used here for fan-modding purposes only.
Supporting the Mod
This is a hobby, and it costs real time and money to make these things. Mace is and always will be free — but whether I can keep making new content mostly comes down to how much support it gets.
爱发电 (Afdian — Alipay / WeChat Pay / PayPal): afdian.com/a/LUCALanO
No obligation — a kind word or a bug report helps just as much.
Source Code
The code portion of this mod is open-source on GitHub under GPL-3.0:
https://github.com/LUCALanO/REPO-MaceMod
Notes
- Multiplayer Notice: Every player must have the mod installed. Otherwise, desyncs and unexpected issues may occur.
- If you encounter a bug, include a precise description and your
LogOutput.log. A screen recording helps but is optional. - This is an unofficial fan project and is not affiliated with Mojang, Microsoft or the R.E.P.O. development team.
Enjoy the Minecraft Mace in R.E.P.O.!