Skip to content

Commit

Permalink
使铁砧锤支持重锤覆膜
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuRuoLing committed Oct 10, 2024
1 parent 946c6ed commit 7e1c370
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"values": [
"anvilcraft:anvil_hammer",
"anvilcraft:royal_anvil_hammer",
"anvilcraft:ember_anvil_hammer"
]
}
3 changes: 3 additions & 0 deletions src/main/java/dev/dubhe/anvilcraft/init/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ public class ModItems {
public static final ItemEntry<AnvilHammerItem> ANVIL_HAMMER = REGISTRATE
.item("anvil_hammer", AnvilHammerItem::new)
.properties(properties -> properties.durability(35))
.tag(ItemTags.MACE_ENCHANTABLE)
.model((ctx, provider) -> {
})
.recipe((ctx, provider) -> ShapedRecipeBuilder.shaped(RecipeCategory.TOOLS, ctx.get())
Expand Down Expand Up @@ -357,6 +358,7 @@ public class ModItems {
.unlocks("hasitem", AnvilCraftDatagen.has(ModItems.ROYAL_STEEL_INGOT))
.save(provider, AnvilCraft.of("smithing/royal_anvil_hammer"));
})
.tag(ItemTags.MACE_ENCHANTABLE)
.properties(properties -> properties.durability(150))
.model((ctx, provider) -> {
})
Expand All @@ -373,6 +375,7 @@ public class ModItems {
.unlocks("hasitem", AnvilCraftDatagen.has(ModItems.EMBER_METAL_INGOT))
.save(provider, AnvilCraft.of("smithing/ember_anvil_hammer"));
})
.tag(ItemTags.MACE_ENCHANTABLE)
.model((ctx, provider) -> {
})
.register();
Expand Down

0 comments on commit 7e1c370

Please sign in to comment.