You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm listing 1.20.5 since that is my current environment, but I don't believe this has been changed in 1.20.6) Minecraft Version: 1.20.5
NeoForge Version: 20.5.0-beta
Description of issue:
CommonHooks#getAttributeModifiers is only called in ItemStack#forEachModifier, however there are other calls to DataComponents.ATTRIBUTE_MODIFIERS that do not use forEachModifier or that are covered by the ItemAttributeModifierEvent event, such as net.minecraft.advancements.critereon.ItemAttributeModifiersPredicate and net.minecraft.world.entity.Mob#getApproximateAttackDamageWithItem.
This leads to instances where attributes added via mods using the event are not seen in those methods.
The text was updated successfully, but these errors were encountered:
Shadows-of-Fire
changed the title
[1.20.5] ItemAttributeModifierEvent does cover all uses of attributes
[1.20.5] ItemAttributeModifierEvent does not cover all uses of attributes
May 2, 2024
(I'm listing 1.20.5 since that is my current environment, but I don't believe this has been changed in 1.20.6)
Minecraft Version: 1.20.5
NeoForge Version: 20.5.0-beta
Description of issue:
CommonHooks#getAttributeModifiers
is only called inItemStack#forEachModifier
, however there are other calls toDataComponents.ATTRIBUTE_MODIFIERS
that do not useforEachModifier
or that are covered by theItemAttributeModifierEvent
event, such asnet.minecraft.advancements.critereon.ItemAttributeModifiersPredicate
andnet.minecraft.world.entity.Mob#getApproximateAttackDamageWithItem
.This leads to instances where attributes added via mods using the event are not seen in those methods.
The text was updated successfully, but these errors were encountered: