Skip to content

Commit

Permalink
Add recipe for blocking modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Feb 2, 2023
1 parent d8253ee commit 0895451
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"type": "tconstruct:modifier",
"inputs": [
{
"tag": "minecraft:planks"
},
{
"tag": "forge:ingots/cobalt"
},
{
"tag": "minecraft:planks"
},
{
"tag": "minecraft:planks"
},
{
"tag": "minecraft:planks"
}
],
"tools": {
"tag": "tconstruct:modifiable/interactable/right"
},
"slots": {
"abilities": 1
},
"allow_crystal": true,
"result": {
"name": "tconstruct:blocking",
"level": 1
},
"max_level": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type": "tconstruct:modifier_salvage",
"tools": {
"tag": "tconstruct:modifiable/interactable/right"
},
"slots": {
"abilities": 1
},
"modifier": "tconstruct:blocking",
"min_level": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,17 @@ private void addModifierRecipes(Consumer<FinishedRecipe> consumer) {
.setTools(DifferenceIngredient.of(IntersectionIngredient.of(Ingredient.of(TinkerTags.Items.MELEE), Ingredient.of(TinkerTags.Items.INTERACTABLE_RIGHT)), Ingredient.of(TinkerTools.dagger)))
.saveSalvage(consumer, prefix(TinkerModifiers.dualWielding, abilitySalvage))
.save(consumer, prefix(TinkerModifiers.dualWielding, abilityFolder));
ModifierRecipeBuilder.modifier(TinkerModifiers.blocking)
.setTools(TinkerTags.Items.INTERACTABLE_RIGHT)
.addInput(ItemTags.PLANKS)
.addInput(TinkerMaterials.cobalt.getIngotTag())
.addInput(ItemTags.PLANKS)
.addInput(ItemTags.PLANKS)
.addInput(ItemTags.PLANKS)
.setMaxLevel(1)
.setSlots(SlotType.ABILITY, 1)
.saveSalvage(consumer, prefix(TinkerModifiers.blocking, abilitySalvage))
.save(consumer, prefix(TinkerModifiers.blocking, abilityFolder));

/*
* extra modifiers
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"tconstruct:sharpness": "tconstruct:gui/modifiers/melee/sharpness",
"tconstruct:swiftstrike": "tconstruct:gui/modifiers/melee/swiftstrike",

"tconstruct:blocking": "tconstruct:gui/modifiers/melee/blocking",
"tconstruct:dual_wielding": "tconstruct:gui/modifiers/melee/dual_wielding",
"tconstruct:fiery": "tconstruct:gui/modifiers/melee/fiery",
"tconstruct:experienced": ["minecraft:item/experience_bottle", "tconstruct:gui/modifiers/book"],
Expand Down

0 comments on commit 0895451

Please sign in to comment.