Elemental Combat
Minecraft Combat System Overhaul
This mod fundamentally transforms the standard combat system by adding elemental and attack style properties. Players, mobs, and items now have new attack and defense characteristics that can be easily configured through JSON files and datapacks. Interestingly, these properties automatically apply even to items, mobs, and projectiles from other mods!
How the System Works
When hitting a target, elemental and style characteristics are checked, and final damage is calculated. Visual particles show how the target reacts to the attack. The mod was created to solve the problem where players typically use the same weapon throughout most modpacks. Now there's an incentive to change equipment depending on the enemy.
Feature Overview Video
Key Features
The system uses two main parameters: element and style. When calculating damage, each parameter is checked against the target's corresponding defense characteristics. The style multiplier is capped at zero (no damage), while the element can have a negative value, resulting in healing the target.
Calculations use an algorithm similar to vanilla enchantment protection factors. The basic formula: 1-(factor/maxFactor).
Predefined Elements and Styles
The mod includes ready-made elements: fire, ice, water, thunder (lightning), darkness, light, wind, earth, flora, and normal (default value). Styles include: explosion, projectile, slash, stab, bash (version 1.3+), bite (version 1.3+), magic, hit (default), and environment (for damage like drowning).
Standard enchantments and potions have been reworked to work with the new system. New enchantments and potion effects have also been added for greater flexibility from the start.
Configuration via Datapacks
Every item, mob, projectile, and natural damage source has base attack characteristics defined through JSON files. This allows complete redefinition using datapacks. Theoretically, you can configure drowning to deal fire damage.
It's also possible to add completely new elements and styles through datapacks, but this requires a resource pack with icons for the new elements, otherwise the standard "missing resource" texture will be displayed.
API and Extensions
In addition to static base characteristics, the mod provides an API for more dynamic behavior. To demonstrate API capabilities, an additional mod Elemental Combat - Weaponry was created, adding style-switching weapons, element-changing swords, biome-dependent armor, and other interesting features.
Compatible Mods
Plugins are available for WTHIT and Jade that display enemy characteristics in the interface. Support for Ars Nouveau and Iron's Spellbook is also in development.
Supported Mods via Datapacks
Datapacks have been created for popular mods that significantly expand interaction: Alex's Mobs, Aquamirae, Artifacts, Biomes O' Plenty, Botania, Druidcraft, Ice And Fire, Spartan Weaponry and its extensions, Twilight Forest, Tropicraft.
Suggestions for adding support for other mods are welcome. The mod will be updated for new Minecraft versions.