4 ATTACK DAMAGE WHEN ON FEET

This commit is contained in:
Ellpeck 2016-05-01 22:37:27 +02:00
parent 98299708d5
commit eed5cbdc92

View file

@ -42,7 +42,9 @@ public class ItemKnife extends ItemBase{
@Override @Override
public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack){ public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack){
Multimap map = super.getAttributeModifiers(slot, stack); Multimap map = super.getAttributeModifiers(slot, stack);
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Knife Modifier", 3, 0)); if(slot == EntityEquipmentSlot.MAINHAND){
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Knife Modifier", 3, 0));
}
return map; return map;
} }