Bug Open

Additive attributes apply and infinity stack incorrectly on hand swap (1.21.11)

#6881 opened by Unknown 7 months ago

Unknownreported this bug

Plugins: MythicMobs + MythicCrucible (latest versions) Server: Paper/Purpur/Spigot 1.21.11 Problem: Additive attributes (especially generic.max_health) stack permanently when swapping hands between vanilla + custom items.

Summary Custom items with ADDITIVE attributes (e.g. extra health hearts) cause permanent stacking when swapping between vanilla and custom items in hands:

Vanilla item (e.g. unenchanted netherite sword) in mainhand → custom item in offhand → no stacking.

Vanilla enchanted item + custom item → swapping hands (F key) applies additive attributes multiple times.

Stats stack and persist until server relog (death does not reset them).

This only happens with custom items having additive attributes; vanilla attributes work normally.

Steps to reproduce

  1. Create items like this:
IcyStar:
  Id: DIAMOND
  Hide:
    - ATTRIBUTES
  Stats:
    - DAMAGE_REDUCTION 0.1 MULTIPLY
    - HEALTH 2 ADDITIVE
    - HEALTH_REGENERATION 1 ADDITIVE
    - FIRE_RESISTANCE 0.1 ADDITIVE
    - ARMOR_FREEZE 1 ADDITIVE
  1. Take item to hand and on second hand one of testing swords (enchanted and simple)
  2. Start to swap custom item with one sword
  3. Same with other and see the difference.
  4. Relog to reset stacked stats.

This issue was marked in the Discord chat by different server so it's global problem.

Video: [Legacy attachment omitted]

Unknowncommented

Almost the same issue, Purpur server 1.21.10

But only works if the item swapping is made by hands, not the F button, and any attribute type

Sign in to join the discussion.