Elemental Weakness System

A fork of WRS. Adds a system of elemental weaknesses and resistances for entities and items.
Back to Files

ews-2.2.0.jar

File nameews-2.2.0.jar
Uploader
joruughenjoruughen
Uploaded
Nov 22, 2026
Downloads
11
Size
86.6 KB
Mod Loaders
Forge
File ID
9743354
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:elemental-weakness-system-1623011:9743354")

Learn more about Curse Maven

What's new

2.2.0

New: per-damage-type rules

  • Entities, groups and items can now have different elemental profiles depending on the damage type of the hit, using the new damage_types list in the datapack. For example, a witch can deal Aqua by default but Fire with its potions (indirect_magic).
  • Rules accept exact ids (minecraft:arrow) or damage type tags (#minecraft:is_projectile). An exact id takes priority over a tag.
  • mode: replace (default) replaces the default profile for that damage type; add stacks on top of it.
  • keep_bonuses (default true): whether equipment, enchantments and effects still apply on top of the rule.
  • Rules also work for resistances: a mob or armor piece can resist one damage type differently, e.g. extra fire resistance against #minecraft:is_fire.
  • Items can have rules too: a staff can deal Strike when you hit with it but Ender when its spell damages (magic / indirect_magic). The item must be equipped when the damage lands.
  • Everything is optional. Datapacks without damage_types work as before.

New: weapon_mode

Controls how a mob's own profile combines with the weapon in its main hand:

  • weapon (default): if the weapon grants elements, only the weapon's elements count. With an empty hand, or an item that has no EWS data, the mob keeps its own profile.
  • add: the mob's profile plus the weapon's.
  • share: both are combined and scaled down proportionally if the total goes over 100. For example, a Blood 100 mob holding a Slash 100 sword deals 50% Blood / 50% Slash.

It can be set per entity/group, or inside a single rule to affect only that damage type.

Attack profile priority

For each hit, the attack profile is chosen in this order:

  1. A rule for that damage type on the attacker or on an item it has equipped.
  2. A damage_types file with special: true.
  3. The attacker's default profile.
  4. A normal damage_types file (only when there is no living attacker).

Tooltips & Jade

  • Item tooltips now show EWS attributes with their short name (no "E." prefix) and in the element's color, including lines generated by vanilla or Apothic Attributes.
  • Jade and item tooltips show the per-damage-type rules and the weapon mode. They can be hidden with the new config option mostrar_reglas_damage_type.
  • In Apothic's attribute menu, EWS attributes are prefixed with "E." so they stay grouped together.

Debug

  • ⚠️ The debug config option was split in two:
    • debug_damage: initial damage, damage per element (only non-zero values) and final damage.
    • debug_info: damage type, attacker/target and which profile/rule was used. If you had debug = true, enable the new options.

Other changes

  • New element order everywhere (Jade, debug, etc.): Slash, Strike, Pierce, Fire, Ice, Lightning, Nature, Aqua, Evocation, Holy, Blood, Ender, Eldritch.
  • Attack attributes are now capped at 0–1000 and resistances at -100–80.
  • The log now warns about common datapack mistakes in rules, such as empty types, non-EWS attributes or weapon_mode on items.
  • The wiki (EN/ES) was fully rewritten with examples for every feature. A test datapack with vanilla mobs is available in the GitHub repo (datapack-prueba/).

Upgrade notes

  • ⚠️ Mobs that hold a weapon configured in the datapack used to add the weapon's elements to their own. Now, by default, only the weapon counts. To get the old behavior, add "weapon_mode": "add" to the mob's file.
  • ⚠️ Replace debug with debug_damage and/or debug_info in ews-common.toml.

This mod has no additional files