Skip to content

Commit

Permalink
Create custom bow class
Browse files Browse the repository at this point in the history
  • Loading branch information
Badtz committed Mar 6, 2024
1 parent fcb330c commit 3a0cc72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/main/java/me/woach/bone/items/BoneSteelBow.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package me.woach.bone.items;

import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.BowItem;
import net.minecraft.util.Rarity;

public class BoneSteelBow extends BowItem {
public BoneSteelBow() {
super(new FabricItemSettings().maxDamage(512).rarity(Rarity.EPIC));
}

}
2 changes: 1 addition & 1 deletion src/main/java/me/woach/bone/items/ItemsRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected static Item newItemDust() {
}

protected static Item newItemBow() {
return new BowItem(new FabricItemSettings().maxDamage(512).rarity(Rarity.EPIC));
return new BoneSteelBow();
}

protected static Item newItemArmor(Type armorType) {
Expand Down

0 comments on commit 3a0cc72

Please sign in to comment.