CollisionDamage
Collision Damage Mod introduces a customizable potion effect that deals additional damage to entities upon collision at high speeds
介绍
Introduction:
-
The Collision Damage Mod introduces a new potion effect: Collision Damage. This effect allows entities to deal damage and apply horizontal knockback to collision targets when moving at high speeds, making it convenient for integration pack or addon authors to use.
-
Potion effect command:
/effect @s collisiondamage:collision_damage <duration> <level>
Key Features:
-
Speed Threshold: When the speed exceeds 10 m/s, colliding with other entities inflicts damage proportional to the speed.
Damage formula: Damage = Speed × Potion Level × 0.1 -
Speed Display: When the player has the Collision Damage effect, their real-time vector speed is displayed in the upper-right corner of the inventory screen.

Working Principle:
-
Speed Calculation:
When an entity has the Collision Damage effect, the mod calculates the change in the entity’s x, y, and z coordinates for each tick. Using the Euclidean formula, it determines the distance between the entity’s position at the start and end of the tick. Dividing this distance by the tick duration (default 0.02 seconds) yields the average speed for that tick. -
Collision Detection:
While calculating speed, the mod checks once per tick for other entities within a 1-block radius of the entity with the Collision Damage effect. If another entity is detected and the user’s speed exceeds 10 m/s, the detected entity takes damage based on the formula:
Damage = Speed × Potion Level × 0.1.
常见问题
CollisionDamage 支持哪些 Minecraft 版本?
CollisionDamage 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
CollisionDamage 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分