Skip to content

Commit

Permalink
feat: make all BoP flesh blocks decomposable
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Oct 14, 2024
1 parent 80c6f5e commit 4ec514f
Show file tree
Hide file tree
Showing 15 changed files with 486 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,48 @@ private void buildSpecialRecipes(Consumer<FinishedRecipe> consumer) {
.unlockedBy(Items.SHROOMLIGHT).save(consumer);
}

private DecomposerRecipeBuilder createBiomesOPlentyRecipe() {
return DecomposerRecipeBuilder.create().ifModLoaded("biomesoplenty");
}

private void buildBiomesOPlentyRecipes(Consumer<FinishedRecipe> consumer) {
DecomposerRecipeBuilder.create().ifModLoaded("biomesoplenty")
createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:flesh_tendons"))
.addOutput(ModItems.ELASTIC_FIBERS.get(), 4, 8)
.addOutput(ModItems.FLESH_BITS.get(), 0, 1)
.unlockedBy(ModItems.ELASTIC_FIBERS).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:flesh_tendons_strand"))
.addOutput(ModItems.ELASTIC_FIBERS.get(), 2, 4)
.addOutput(ModItems.FLESH_BITS.get(), 0, 1)
.unlockedBy(ModItems.ELASTIC_FIBERS).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:flesh"))
.addOutput(ModItems.FLESH_BITS.get(), 1, 2)
.unlockedBy(ModItems.MOB_SINEW).save(consumer);
.unlockedBy(ModItems.FLESH_BITS).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:porous_flesh"))
.addOutput(ModItems.FLESH_BITS.get(), 1, 2)
.unlockedBy(ModItems.FLESH_BITS).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:hair"))
.addOutput(ModItems.MINERAL_FRAGMENT.get(), -1, 1)
.unlockedBy(ModItems.MINERAL_FRAGMENT).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:eyebulb"))
.addOutput(ModItems.BILE.get(), 1, 2)
.addOutput(ModItems.ELASTIC_FIBERS.get(), 1, 2)
.unlockedBy(ModItems.BILE).save(consumer);

createBiomesOPlentyRecipe()
.setIngredient(new DatagenIngredient("biomesoplenty:pus_bubble"))
.addOutput(ModItems.BILE.get(), 4, 6)
.unlockedBy(ModItems.BILE).save(consumer);
}

private void buildTetraRecipes(Consumer<FinishedRecipe> consumer) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_bile": {
"conditions": {
"items": [
{
"items": [
"biomancy:bile"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_eyebulb_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_bile",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_eyebulb_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_flesh_bits": {
"conditions": {
"items": [
{
"items": [
"biomancy:flesh_bits"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_flesh_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_flesh_bits",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_flesh_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_mob_sinew": {
"has_elastic_fibers": {
"conditions": {
"items": [
{
"items": [
"biomancy:mob_sinew"
"biomancy:elastic_fibers"
]
}
]
Expand All @@ -25,7 +25,7 @@
},
"requirements": [
[
"has_mob_sinew",
"has_elastic_fibers",
"has_the_recipe"
]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_elastic_fibers": {
"conditions": {
"items": [
{
"items": [
"biomancy:elastic_fibers"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_flesh_tendons_strand_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_elastic_fibers",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_flesh_tendons_strand_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_mineral_fragment": {
"conditions": {
"items": [
{
"items": [
"biomancy:mineral_fragment"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_hair_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_mineral_fragment",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_hair_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_flesh_bits": {
"conditions": {
"items": [
{
"items": [
"biomancy:flesh_bits"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_porous_flesh_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_flesh_bits",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_porous_flesh_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"advancements": [
{
"advancement": {
"parent": "minecraft:recipes/root",
"criteria": {
"has_bile": {
"conditions": {
"items": [
{
"items": [
"biomancy:bile"
]
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "biomancy:decomposing/biomesoplenty_pus_bubble_decomposing"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_bile",
"has_the_recipe"
]
],
"rewards": {
"recipes": [
"biomancy:decomposing/biomesoplenty_pus_bubble_decomposing"
]
},
"sends_telemetry_event": false
},
"conditions": [
{
"type": "forge:mod_loaded",
"modid": "biomesoplenty"
}
]
}
]
}
Loading

0 comments on commit 4ec514f

Please sign in to comment.