Skip to content

Commit

Permalink
feat: add crafting recipes for anbu armour and flak jackets
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jul 12, 2022
1 parent cba1ae3 commit b2dde18
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ dependencies {
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.19-41.0.87'
minecraft 'net.minecraftforge:forge:1.19-41.0.93'

implementation 'org.spongepowered:mixin:0.8.5'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
Expand Down
27 changes: 26 additions & 1 deletion src/main/java/com/sekwah/narutomod/datagen/RecipeGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,32 @@ protected void buildCraftingRecipes(Consumer<FinishedRecipe> recipeConsumer) {
ShapelessRecipeBuilder.shapeless(NarutoItems.ARMOR_PLATE_GREEN.get(), 1)
.requires(NarutoItems.ARMOR_PLATE.get())
.requires(Items.GREEN_DYE)
.unlockedBy("has_armor_plate", has(NarutoItems.ARMOR_PLATE.get()))
.unlockedBy("has_naruto_armor_plate", has(NarutoItems.ARMOR_PLATE.get()))
.save(recipeConsumer);

ShapedRecipeBuilder.shaped(NarutoItems.ANBU_ARMOR.get(), 1)
.define('B', NarutoItems.FABRIC_REINFORCED_BLACK.get())
.define('A', NarutoItems.ARMOR_PLATE.get())
.pattern("B B")
.pattern("AAA")
.pattern("AAA")
.unlockedBy("has_naruto_armor_plate", has(NarutoItems.ARMOR_PLATE.get()))
.save(recipeConsumer);

ShapedRecipeBuilder.shaped(NarutoItems.FLAK_JACKET_NEW.get(), 1)
.define('A', NarutoItems.ARMOR_PLATE_GREEN.get())
.pattern("A A")
.pattern("AAA")
.pattern("AAA")
.unlockedBy("has_naruto_armor_plate_green", has(NarutoItems.ARMOR_PLATE_GREEN.get()))
.save(recipeConsumer);

ShapedRecipeBuilder.shaped(NarutoItems.FLAK_JACKET.get(), 1)
.define('F', NarutoItems.FABRIC_REINFORCED_GREEN.get())
.pattern("F F")
.pattern("FFF")
.pattern("FFF")
.unlockedBy("has_fabric_reinforced_green", has(NarutoItems.FABRIC_REINFORCED_GREEN.get()))
.save(recipeConsumer);

}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/narutomod/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"itemGroup.narutomod_weapons": "Ninja Weapons",
"itemGroup.narutomod_armor": "Ninja Armor",
"itemGroup.narutomod_headbands": "Ninja Headbands",
"itemGroup.narutomod_materials": "Ninja Materials",
"jutsu.fail.cooldown": "%1$s is on cooldown %2$ss",
"jutsu.fail.riding": "You must dismount to use %s",
"jutsu.fail.notonground": "You must be on the ground to use %s",
Expand Down

0 comments on commit b2dde18

Please sign in to comment.