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
public Multimap getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack){
Multimap map = super.getAttributeModifiers(slot, stack);
if(slot == EntityEquipmentSlot.MAINHAND){
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Knife Modifier", 3, 0));
}
return map;
}