Skip to content

Commit

Permalink
🐛 Fix the attack speed
Browse files Browse the repository at this point in the history
  • Loading branch information
H2Sxxa committed Oct 14, 2023
1 parent 6720e5e commit 517436a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies {
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"
runtime "mezz.jei:jei_${mc_version}:${jei_version}"

compile 'maven.modrinth:kekkai:1.2.0'
compile 'maven.modrinth:kekkai:1.2.1'
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;

public class ItemMomijisScimitarSword extends ItemBaseSword {
public class ItemMomijisScimitarSword extends ItemBaseSword {

public ItemMomijisScimitarSword(ToolMaterial material) {
super(material, LibName.MOMIJI_SCIMITAR_SWORD);
}
public ItemMomijisScimitarSword(ToolMaterial material) {
super(material, LibName.MOMIJI_SCIMITAR_SWORD);
}

@Override
public Multimap<String, AttributeModifier> getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) {
Multimap<String, AttributeModifier> modifiers = super.getAttributeModifiers(slot, stack);
MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, 4);
return modifiers;
}
@Override
public Multimap<String, AttributeModifier> getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) {
Multimap<String, AttributeModifier> modifiers = super.getAttributeModifiers(slot, stack);
MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, -0.7);
return modifiers;
}

@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) {
return repair.getItem() == Items.IRON_INGOT;
}
@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) {
return repair.getItem() == Items.IRON_INGOT;
}
}

0 comments on commit 517436a

Please sign in to comment.