promotional bannermobile promotional banner
premium banner
Devastating cavalry charges, better projectiles & bones crunching against walls.

Description


Devastating cavalry charges, better projectiles & bones crunching against walls.

Mod Loader Game Version Environment

Downloads Issues License

GitHub Discord


My mods will no longer be receiving updates on Curseforge! Please check Modrinth.

This mod is in beta!

Highly-configurable, highly-compatible mod aiming to add more nuance and realism to damage in Minecraft. How it works is simple: the faster something is moving towards the target, the more damage it does. If the target is faster than the attacker, the less damage. That 'something' could be a sword, arrow, a horse, or a boat. Projectiles will also 'inherit' the velocity of whatever threw them, meaning throwing potions on horseback finally works properly!

 

Further details may be found below.


📖 Information

Features

  • Near universal compatibility with other mods!
  • Easy to configure
  • Highly adaptable to your needs!
  • Config with helpful descriptions!

 

Planned features

  • Blacklist entities which become too overpowered!
  • ALL entities take wall-collision damage!
  • Entities take collision damage with other entities; not just walls!
  • Vehicles take damage!
  • Approach speed is added to knockback!
  • Slamming into walls bounces entities back at the angle of incidence!
  • MORE configurability!

 

Technical details

Bolded values are configurable. Damage is calculated with respect to the 'approach' speed of the attacker to the target. That is, the dot product of the normalized difference between attacker/target position and difference of attacker/target velocities with respect to the world. Some liberties have been taken with defining the positions of entities, however. Depending on whether the attacker is above or below the target (and vice versa), as well as the direction of velocity, position may be calculated either at the entity's "feet" or "eye" level. This was necessary to patch some unsavoury behaviours whereby a debuff is incurred in scenarios where it did not seem like there should be; despite the math being correct.

 

Damage calculations work based on the formula (1/2) abs((x/a))^b, whereas x is the approach speed, a is the velocityIncrement and b is the exponentiationConstant. The calculated value is the percent bonus of damage added on (or otherwise subtracted!). There are also the values maxDamagePercent and minDamagePercent, which let you set the max/min damage bonus allowed to be added or subtracted! You can finely tune the amounts of damage you want to let this mod dish out! Check out this graph with the default values to play around with the damage!

 

Damage Graph

 

Damage is calculated for entities slamming into walls too! At present, this is limited to living, non-player entities. This will be fixed in a future release. Unfortunately solutions I have thus far found require this mod to be installed on clientside too for players to take damage on hitting a wall. Anyway, the velocityThreshold setting will allow specifying over what velocity an entity takes damage when crashing into a wall. This threshold velocity is also subtracted from the entity's velocity to determine damage done. Right now the calculation for this damage is quite lazy and will be fixed, but is directly proportional to the difference of the entity & threshold velocity.

 

Projectiles inheriting momentum may be configured with projectilesHaveMomentum! Projectiles calculate damage a little differently. As base damage to things is not affected by this mod, the crazy fast speed of projectiles often meant damage would jump up into the thousands, or even millions in the case of gun mods. This being the case, the approach speed of a projectile is by default zero unless the targeted entity has a component of velocity moving either away or towards it. This fix can be disabled by playing with the projectileMultiplier config option. There is also wild mode, which disables the nerfs necessary to not completely break some mechanics. In vanilla, arrows do damage depending on how fast they are travelling. This is disabled by default so the damage bonus is not 'double-dipped'. This again may be re-enabled by enabling wild mode.

 


💗 Credits & Thanks

A special thanks to pitbox46 for the concept of this mod!