
Carpet mace fix
make a fix for a different mod called Carpet to fix fake players not being able to use the smash attack with mace i sent the mod so u can inspect it and see...
1080—fabricBoth1.21.11mod
Carpet Mace Fix
Overview
This mod fixes a bug where fake players created by the Carpet mod can't use the Mace's powerful "smash attack." Normally, when you hit an enemy with a Mace while falling, you deal extra damage and knock back nearby mobs. But Carpet's fake players weren't getting this bonus - until now!
Features
- Smash Attack Fix: Fake players can now perform Mace smash attacks just like real players
- Falling Detection: Automatically detects when a fake player is falling and applies the correct damage bonus
- Works Automatically: No commands or configuration needed - just install and play!
- Vanilla Behavior: Fake players follow the same rules as real players (must be falling with enough speed for a smash attack)
How to Use
- Install the mod: Put the JAR file in your
modsfolder (requires Fabric loader and Carpet mod) - Spawn a fake player: Use Carpet's
/playercommand to create a bot - Give them a Mace: Use
/player <name> useor drop a Mace to the fake player - Let them attack: Command the fake player to attack enemies while falling, and they'll now deal smash attack damage!
Example Commands
/player Steve spawn
/player Steve attack continuous
When Steve falls more than 1.5 blocks and hits an enemy, he'll trigger the smash attack with area damage and knockback!
Tips & Tricks
- The smash attack works best when fake players fall from heights of 2+ blocks
- Fake players need to be holding a Mace in their main hand
- The damage scales with fall distance, just like for real players
Known Limitations
- Fake players need to actually be falling (have downward velocity) - the mod calculates fall distance from their movement
- Maximum calculated fall distance is capped at 30 blocks to prevent unintended damage scaling