Is there a way for me to scrap the damage calculation of vanilla and change the formula. I want to change armor points from giving a flat 4% damage reduction bonus to a curve formula that makes higher defense less effective.
I have done that and that returned an error, so i imported net.minecraft.world.entity.ai.attributes
Now this is also returning the same error, cannot find symbol, specifically .attributes.
I am trying to find the damage attribute of an item, which I already have a reference too.
This is what I have tried. I checked my logs and it says that EntityAttributes is undefined. Is there any import I can add to fix this or just something else I can replace it with?
itemstack.getAttributeModifiers(EquipmentSlot.MAINHAND).get(EntityAttributes.GENERIC_ATTACK_DAMAGE)