An add-on for Immersive Vehicles - MTS that makes collisions truly dangerous for players and mobs, both inside and outside a vehicle.
Immersive Vehicles (Minecraft Transport Simulator) already includes a damage system for entities hit from the outside by a moving vehicle, with fixed values defined on a case-by-case basis in each vehicle's JSON.
This mod builds on that system: it makes damage proportional to the actual impact speed, adds knockback, and introduces a brand new damage system for players seated inside a vehicle that crashes into another vehicle.
Three independent systems, each with its own settings:
In all three cases, damage is calculated from the actual max health of the entity hit: a tough mob takes it better than a fragile one for the same impact. A cooldown system, per vehicle/entity pair (or vehicle/vehicle pair for the "inside" case), prevents damage from stacking in a loop while contact persists.
Everything is adjustable in config/mtscollisionentitydamage-common.toml:
| Setting | Description | Default |
|---|---|---|
insideCooldownTicks |
Minimum ticks between two damage triggers for the same pair of vehicles (player inside). | 40 |
insideMinSpeedMs |
Minimum closing speed (m/s) below which no damage is dealt to the player inside. | 10 |
insideDamagePercent |
Percentage of the player's max health lost per m/s of closing speed (inside). | 2 |
outsidePlayerCooldownTicks |
Minimum ticks between two damage triggers for the same vehicle/player pair (outside). | 40 |
outsidePlayerMinSpeedMs |
Minimum vehicle speed (m/s) below which no damage is dealt to the player outside. | 10 |
outsidePlayerDamagePercent |
Percentage of the player's max health lost per m/s of vehicle speed (outside). | 4 |
outsideEntityCooldownTicks |
Minimum ticks between two damage triggers for the same vehicle/non-player entity pair. | 40 |
outsideEntityMinSpeedMs |
Minimum vehicle speed (m/s) below which no damage is dealt to the entity outside. | 10 |
outsideEntityDamagePercent |
Percentage of the entity's max health lost per m/s of vehicle speed (outside). | 4 |
knockbackDistance |
Approximate distance (in blocks) an outside entity is pushed when hit. Set to 0 to disable knockback. | 2.0 |
Mod created by Mozork. All rights reserved.