Skip to content

Commit

Permalink
Use custom puncher model
Browse files Browse the repository at this point in the history
  • Loading branch information
emortaldev committed Aug 19, 2024
1 parent 9d08167 commit a38f096
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public final class Puncher extends PowerUp {
private static final PowerUpItemInfo ITEM_INFO =
new PowerUpItemInfo(Material.BLAZE_ROD, Component.text("Puncher", NamedTextColor.RED), ItemRarity.RARE);
new PowerUpItemInfo(Material.PHANTOM_MEMBRANE, Component.text("Puncher", NamedTextColor.RED), ItemRarity.RARE);

public Puncher(@NotNull BlockSumoGame game) {
super(game, "puncher", ITEM_INFO, SpawnLocation.CENTER);
Expand All @@ -31,6 +31,7 @@ public Puncher(@NotNull BlockSumoGame game) {
@Override
public void addExtraMetadata(@NotNull ItemStack.Builder builder) {
builder.set(ItemComponent.ENCHANTMENTS, new EnchantmentList(Map.of(Enchantment.KNOCKBACK, 4)));
builder.set(ItemComponent.CUSTOM_MODEL_DATA, 4);
}

@Override
Expand Down

0 comments on commit a38f096

Please sign in to comment.