ews-2.2.0.jar
Curse Maven Snippet
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_typeslist 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;addstacks on top of it.keep_bonuses(defaulttrue): 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_typeswork 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:
- A rule for that damage type on the attacker or on an item it has equipped.
- A
damage_typesfile withspecial: true. - The attacker's default profile.
- A normal
damage_typesfile (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
debugconfig 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 haddebug = 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 orweapon_modeon 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
debugwithdebug_damageand/ordebug_infoinews-common.toml.
This mod has no additional files