generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...rces/data/big_swords_addon/advancement/recipes/misc/titanium_big_sword_from_smelting.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "big_swords_addon:titanium_big_sword_from_smelting" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
}, | ||
"has_titanium_big_sword": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "big_swords_addon:titanium_big_sword" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_titanium_big_sword" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"big_swords_addon:titanium_big_sword_from_smelting" | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/generated/resources/data/big_swords_addon/recipe/titanium_big_sword_from_smelting.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type": "minecraft:smelting", | ||
"category": "misc", | ||
"cookingtime": 200, | ||
"experience": 0.1, | ||
"ingredient": { | ||
"item": "big_swords_addon:titanium_big_sword" | ||
}, | ||
"result": { | ||
"count": 1, | ||
"id": "cosmicore:titanium_ingot" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...rated/resources/data/cosmicore/advancement/recipes/tools/titanium_big_sword_smithing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "cosmicore:titanium_big_sword_smithing" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
}, | ||
"has_titanium_ingot": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": "cosmicore:titanium_ingot" | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_the_recipe", | ||
"has_titanium_ingot" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"cosmicore:titanium_big_sword_smithing" | ||
] | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/generated/resources/data/cosmicore/recipe/titanium_big_sword_smithing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"type": "minecraft:smithing_transform", | ||
"addition": { | ||
"item": "cosmicore:titanium_ingot" | ||
}, | ||
"base": { | ||
"item": "big_swords:iron_big_sword" | ||
}, | ||
"result": { | ||
"count": 1, | ||
"id": "big_swords_addon:titanium_big_sword" | ||
}, | ||
"template": { | ||
"item": "cosmicore:titanium_upgrade_smithing_template" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/net/nova/big_swords_addon/data/recipe/BCRecipeProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package net.nova.big_swords_addon.data.recipe; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.recipes.RecipeOutput; | ||
import net.nova.big_swords.data.recipe.BSRecipeProvider; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import static net.nova.big_swords_addon.BigSwordsRAddon.MODID; | ||
|
||
public class BCRecipeProvider extends BSRecipeProvider { | ||
public final PackOutput output; | ||
public final CompletableFuture<HolderLookup.Provider> lookupProvider; | ||
public static String path = MODID + ":"; | ||
|
||
public BCRecipeProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider) { | ||
super(output, lookupProvider); | ||
this.output = output; | ||
this.lookupProvider = lookupProvider; | ||
} | ||
|
||
@Override | ||
protected void buildRecipes(RecipeOutput recipeOutput) { | ||
new CraftingRecipes(output, lookupProvider, recipeOutput).build(); | ||
new BCSmithingRecipes(output, lookupProvider, recipeOutput).build(); | ||
new FurnaceRecipes(output, lookupProvider, recipeOutput).build(); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/net/nova/big_swords_addon/data/recipe/BCSmithingRecipes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.nova.big_swords_addon.data.recipe; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.recipes.RecipeCategory; | ||
import net.minecraft.data.recipes.RecipeOutput; | ||
import net.nova.big_swords.init.BSItems; | ||
import net.nova.big_swords_addon.init.BCItems; | ||
import net.nova.cosmicore.data.recipe.CRecipeProvider; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class BCSmithingRecipes extends CRecipeProvider { | ||
public final RecipeOutput recipeOutput; | ||
|
||
public BCSmithingRecipes(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, RecipeOutput recipeOutput) { | ||
super(output, lookupProvider); | ||
this.recipeOutput = recipeOutput; | ||
} | ||
|
||
public void build() { | ||
// Titanium Stuff | ||
titaniumSmithing(recipeOutput, BSItems.IRON_BIG_SWORD.asItem(), RecipeCategory.TOOLS, BCItems.TITANIUM_BIG_SWORD.get()); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/java/net/nova/big_swords_addon/data/recipe/CraftingRecipes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package net.nova.big_swords_addon.data.recipe; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.recipes.RecipeOutput; | ||
import net.nova.big_swords.data.recipe.BSRecipeProvider; | ||
import net.nova.big_swords.init.BSItems; | ||
import net.nova.big_swords_addon.init.BCItems; | ||
import net.nova.cosmicore.init.CItems; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class CraftingRecipes extends BSRecipeProvider { | ||
public final RecipeOutput recipeOutput; | ||
|
||
public CraftingRecipes(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, RecipeOutput recipeOutput) { | ||
super(output, lookupProvider); | ||
this.recipeOutput = recipeOutput; | ||
} | ||
|
||
public void build() { | ||
// Big Swords | ||
|
||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/net/nova/big_swords_addon/data/recipe/FurnaceRecipes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package net.nova.big_swords_addon.data.recipe; | ||
|
||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.data.recipes.RecipeCategory; | ||
import net.minecraft.data.recipes.RecipeOutput; | ||
import net.minecraft.data.recipes.SimpleCookingRecipeBuilder; | ||
import net.minecraft.world.item.crafting.Ingredient; | ||
import net.nova.big_swords_addon.init.BCItems; | ||
import net.nova.cosmicore.init.CItems; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class FurnaceRecipes extends BCRecipeProvider { | ||
public final RecipeOutput recipeOutput; | ||
|
||
public FurnaceRecipes(PackOutput output, CompletableFuture<HolderLookup.Provider> lookupProvider, RecipeOutput recipeOutput) { | ||
super(output, lookupProvider); | ||
this.recipeOutput = recipeOutput; | ||
} | ||
|
||
public void build() { | ||
// Big Swords | ||
SimpleCookingRecipeBuilder.smelting(Ingredient.of( | ||
BCItems.TITANIUM_BIG_SWORD | ||
), | ||
RecipeCategory.MISC, | ||
CItems.TITANIUM_INGOT, | ||
0.1F, | ||
200 | ||
) | ||
.unlockedBy("has_" + getItemName(BCItems.TITANIUM_BIG_SWORD), has(BCItems.TITANIUM_BIG_SWORD)) | ||
.save(recipeOutput, path + getSmeltingRecipeName(BCItems.TITANIUM_BIG_SWORD)); | ||
} | ||
} |