mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-10-30 06:10:51 +01:00
Fix All in One Tool stats (Closes #1424)
This commit is contained in:
parent
c0b0111060
commit
906aa08ebf
1 changed files with 3 additions and 3 deletions
|
@ -36,13 +36,13 @@ public class AllInOneTool extends DiggerItem {
|
||||||
new Properties()
|
new Properties()
|
||||||
.durability(tier.getUses() * 4)
|
.durability(tier.getUses() * 4)
|
||||||
.component(DataComponents.TOOL, tier.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_AIO))
|
.component(DataComponents.TOOL, tier.createToolProperties(ActuallyTags.Blocks.MINEABLE_WITH_AIO))
|
||||||
.attributes(createAttributes())
|
.attributes(createAttributes(tier))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ItemAttributeModifiers createAttributes() {
|
private static ItemAttributeModifiers createAttributes(Tier tier) {
|
||||||
ItemAttributeModifiers.Builder builder = ItemAttributeModifiers.builder();
|
ItemAttributeModifiers.Builder builder = ItemAttributeModifiers.builder();
|
||||||
builder.add(Attributes.ATTACK_DAMAGE, new AttributeModifier(BASE_ATTACK_DAMAGE_ID,4.0f, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND);
|
builder.add(Attributes.ATTACK_DAMAGE, new AttributeModifier(BASE_ATTACK_DAMAGE_ID,4.0f + tier.getAttackDamageBonus(), AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND);
|
||||||
builder.add(Attributes.ATTACK_SPEED, new AttributeModifier(BASE_ATTACK_SPEED_ID, -2.0f, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND);
|
builder.add(Attributes.ATTACK_SPEED, new AttributeModifier(BASE_ATTACK_SPEED_ID, -2.0f, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND);
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue