[1.21.1] Sword damage modules don't work
Walnuss1 opened this issue ยท 5 comments
Base information
- Minecraft version: 1.21.1
- Mod version: 1.21.1-3.1.3.625
- Minecraft Forge version: Neoforge - 21.1.206
- Mod Pack: (if applicable)
Description / steps to reproduce
use a sword from draconic evolution and add some damage modules and energy modules and charge the sword.
The damage of the sword didn't increase.
draconic sword always does 0-1 damage
chaotic sword always does 2-3 damage
https://github.com/VazkiiMods/Psi/blob/master/src/main/java/vazkii/psi/common/item/tool/ItemPsimetalAxe.java
https://github.com/VazkiiMods/Psi/blob/master/src/main/java/vazkii/psi/common/item/tool/ItemPsimetalPickaxe.java
https://github.com/VazkiiMods/Psi/blob/master/src/main/java/vazkii/psi/common/item/tool/ItemPsimetalShovel.java
Those 3 files also have the same event. After removing the event from all 4 files and recompiling the psi mod, the issue was fixed. I will go report it on the psi github, sorry to bother you.
Yes a custom/private modpack.
The issue only occurs when the PSI mod is included https://www.curseforge.com/minecraft/mc-mods/psi
Is that their fault?
@brandon3055
has:
@SubscribeEvent
public static void adjustAttributes(ItemAttributeModifierEvent event) {
if(!IPsimetalTool.isEnabled(event.getItemStack())) {
event.removeAllModifiersFor(Attributes.ATTACK_DAMAGE);
}
}
could that be affecting items from other mods like Draconic Evolution? @brandon3055