mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
4 ATTACK DAMAGE WHEN ON FEET
This commit is contained in:
parent
98299708d5
commit
eed5cbdc92
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
if(slot == EntityEquipmentSlot.MAINHAND){
|
||||||
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Knife Modifier", 3, 0));
|
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Knife Modifier", 3, 0));
|
||||||
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue