Skip to content

Commit

Permalink
feat: add Recipes for Essence Extractor and Modular Larynx
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed May 29, 2024
1 parent 730bd46 commit b783dcd
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ private void buildToolRecipes(Consumer<FinishedRecipe> consumer) {
.addIngredient(ModItems.ELASTIC_FIBERS.get(), 1)
.setCategory(ModBioForgeTabs.TOOLS)
.unlockedBy(ModItems.ELASTIC_FIBERS.get()).save(consumer);

BioForgeRecipeBuilder.create(ModItems.ESSENCE_EXTRACTOR.get())
.addIngredient(ModItems.FLESH_BITS.get(), 20)
.addIngredient(ModItems.MINERAL_FRAGMENT.get(), 10)
.addIngredient(ModItems.ELASTIC_FIBERS.get(), 25)
.addIngredient(ModItems.EXOTIC_DUST.get(), 4)
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 6)
.setCraftingCost(20)
.setCategory(ModBioForgeTabs.TOOLS)
.unlockedBy(ModItems.EXOTIC_DUST.get()).save(consumer);
}

private void buildComponentRecipes(Consumer<FinishedRecipe> consumer) {
Expand Down Expand Up @@ -312,7 +322,7 @@ private void buildComponentRecipes(Consumer<FinishedRecipe> consumer) {
}

private void buildMiscRecipes(Consumer<FinishedRecipe> consumer) {
BioForgeRecipeBuilder.create(new ItemData(ModItems.FLESHKIN_PRESSURE_PLATE.get()))
BioForgeRecipeBuilder.create(ModItems.FLESHKIN_PRESSURE_PLATE.get())
.addIngredient(ModItems.LIVING_FLESH.get())
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 3)
.addIngredient(ModItems.FLESH_BITS.get(), 5)
Expand All @@ -321,15 +331,15 @@ private void buildMiscRecipes(Consumer<FinishedRecipe> consumer) {
.setCategory(ModBioForgeTabs.MISC)
.unlockedBy(ModItems.LIVING_FLESH.get()).save(consumer);

//BioForgeRecipeBuilder.create(new ItemData(ModItems.VOICE_BOX.get()))
// .addIngredient(Items.NOTE_BLOCK)
// .addIngredient(ModItems.FLESH_BITS.get(), 6)
// .addIngredient(ModItems.BONE_FRAGMENTS.get(), 4)
// .addIngredient(ModItems.ELASTIC_FIBERS.get(), 8)
// .setCategory(ModRecipeBooks.BioForgeCategory.MISC)
// .unlockedBy(ModItems.ELASTIC_FIBERS.get()).save(consumer);
BioForgeRecipeBuilder.create(ModItems.MODULAR_LARYNX.get())
.addIngredient(ModItems.LIVING_FLESH.get())
.addIngredient(ModItems.GEM_FRAGMENTS.get(), 4)
.addIngredient(ModItems.FLESH_BITS.get(), 6)
.addIngredient(ModItems.BONE_FRAGMENTS.get(), 12)
.addIngredient(ModItems.ELASTIC_FIBERS.get(), 16)
.setCategory(ModBioForgeTabs.MISC)
.unlockedBy(ModItems.LIVING_FLESH.get()).save(consumer);

//////////// STORAGE ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
BioForgeRecipeBuilder.create(ModItems.STORAGE_SAC.get())
.addIngredient(ModItems.FLESH_BITS.get(), 4)
.addIngredient(ModItems.TOUGH_FIBERS.get(), 6)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_exotic_dust": {
"conditions": {
"items": [
{
"items": [
"biomancy:exotic_dust"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:bio_forging/extractor_from_bio_forging"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_exotic_dust",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:bio_forging/extractor_from_bio_forging"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_living_flesh": {
"conditions": {
"items": [
{
"items": [
"biomancy:living_flesh"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:bio_forging/modular_larynx_from_bio_forging"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_living_flesh",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:bio_forging/modular_larynx_from_bio_forging"
]
},
"sends_telemetry_event": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"type": "biomancy:bio_forging",
"bio_forge_tab": "biomancy:tools",
"ingredients": [
{
"count": 20,
"item": "biomancy:flesh_bits"
},
{
"count": 10,
"item": "biomancy:mineral_fragment"
},
{
"count": 25,
"item": "biomancy:elastic_fibers"
},
{
"count": 4,
"item": "biomancy:exotic_dust"
},
{
"count": 6,
"item": "biomancy:bone_fragments"
}
],
"nutrientsCost": 20,
"result": {
"item": "biomancy:extractor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "biomancy:bio_forging",
"bio_forge_tab": "biomancy:misc",
"ingredients": [
{
"item": "biomancy:living_flesh"
},
{
"count": 4,
"item": "biomancy:gem_fragments"
},
{
"count": 6,
"item": "biomancy:flesh_bits"
},
{
"count": 12,
"item": "biomancy:bone_fragments"
},
{
"count": 16,
"item": "biomancy:elastic_fibers"
}
],
"nutrientsCost": 1,
"result": {
"item": "biomancy:modular_larynx"
}
}

0 comments on commit b783dcd

Please sign in to comment.