Mineuniverse
Log in Register
Mods

CollisionDamage

Collision Damage Mod introduces a customizable potion effect that deals additional damage to entities upon collision at high speeds
by Ultimate_Kevin
Download Claim this project
382 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Adventure and RPG API and Library Magic

Introduction:

  1. 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.

  2. 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:

  1. 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.

  2. 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.jar
MC Client, Forge, Server, 1.12.2
Release 2024-11-19 Get

More from Ultimate_Kevin

AI Chat Mod
821
Voicecontrol
160

You Might Also Like

AstikorCarts Redux
Horse powered carts and plows, now for 1.20+!
9,976,693
mxTune
Adds musical instruments that allow you to play music in MML format.
994,306
JoJo No Kimyou Na Bouken: JoJoCraft
This is a jojos Mod Nothing more
99,649
Middle-earth
Join the legendary world of Tolkien's universe from The Lord of The Rings to the Hobbit and more!
99,467
Pure Discs - Tricky Trials (Fabric/Forge)
Adds nine new discs from songs that were added in the 1.21 Tricky Trials update!
99,442
Reverse Eon
Reverse Eon adds a persistent, player-owned island dimension to Minecraft. Enter your personal world through the Timekeeper Suitcase and manage it with the Computer Suitcase, giving you full control over island settings, portals, visitors, and more.
9,980