diff --git a/src/datagen/java/com/github/elenterius/biomancy/datagen/recipes/DecomposerRecipeProvider.java b/src/datagen/java/com/github/elenterius/biomancy/datagen/recipes/DecomposerRecipeProvider.java index c6ff9390..808b173b 100644 --- a/src/datagen/java/com/github/elenterius/biomancy/datagen/recipes/DecomposerRecipeProvider.java +++ b/src/datagen/java/com/github/elenterius/biomancy/datagen/recipes/DecomposerRecipeProvider.java @@ -373,12 +373,48 @@ private void buildSpecialRecipes(Consumer consumer) { .unlockedBy(Items.SHROOMLIGHT).save(consumer); } + private DecomposerRecipeBuilder createBiomesOPlentyRecipe() { + return DecomposerRecipeBuilder.create().ifModLoaded("biomesoplenty"); + } + private void buildBiomesOPlentyRecipes(Consumer 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 consumer) { diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_eyebulb_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_eyebulb_decomposing.json new file mode 100644 index 00000000..d67314e4 --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_eyebulb_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_decomposing.json new file mode 100644 index 00000000..5f89a553 --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_decomposing.json index b2daa510..ef99fb1e 100644 --- a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_decomposing.json +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_decomposing.json @@ -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" ] } ] @@ -25,7 +25,7 @@ }, "requirements": [ [ - "has_mob_sinew", + "has_elastic_fibers", "has_the_recipe" ] ], diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json new file mode 100644 index 00000000..6c840adb --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_hair_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_hair_decomposing.json new file mode 100644 index 00000000..1436c292 --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_hair_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_porous_flesh_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_porous_flesh_decomposing.json new file mode 100644 index 00000000..e7bc0357 --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_porous_flesh_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_pus_bubble_decomposing.json b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_pus_bubble_decomposing.json new file mode 100644 index 00000000..49a97f8e --- /dev/null +++ b/src/generated/resources/data/biomancy/advancements/recipes/biomancy/decomposing/biomesoplenty_pus_bubble_decomposing.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_eyebulb_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_eyebulb_decomposing.json new file mode 100644 index 00000000..9eb4764e --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_eyebulb_decomposing.json @@ -0,0 +1,32 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:eyebulb" + }, + "nutrientsCost": 1, + "processingTime": 60, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 2, + "min": 1 + }, + "item": "biomancy:bile" + }, + { + "countRange": { + "type": "uniform", + "max": 2, + "min": 1 + }, + "item": "biomancy:elastic_fibers" + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_decomposing.json new file mode 100644 index 00000000..89cd90f3 --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_decomposing.json @@ -0,0 +1,24 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:flesh" + }, + "nutrientsCost": 1, + "processingTime": 36, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 2, + "min": 1 + }, + "item": "biomancy:flesh_bits" + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_decomposing.json index 454806d3..49b37626 100644 --- a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_decomposing.json +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_decomposing.json @@ -10,7 +10,7 @@ "item": "biomesoplenty:flesh_tendons" }, "nutrientsCost": 1, - "processingTime": 116, + "processingTime": 98, "results": [ { "countRange": { @@ -23,8 +23,8 @@ { "countRange": { "type": "uniform", - "max": 2, - "min": 1 + "max": 1, + "min": 0 }, "item": "biomancy:flesh_bits" } diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json new file mode 100644 index 00000000..7b0ea509 --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_flesh_tendons_strand_decomposing.json @@ -0,0 +1,32 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:flesh_tendons_strand" + }, + "nutrientsCost": 1, + "processingTime": 58, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 4, + "min": 2 + }, + "item": "biomancy:elastic_fibers" + }, + { + "countRange": { + "type": "uniform", + "max": 1, + "min": 0 + }, + "item": "biomancy:flesh_bits" + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_hair_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_hair_decomposing.json new file mode 100644 index 00000000..ab04f81b --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_hair_decomposing.json @@ -0,0 +1,24 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:hair" + }, + "nutrientsCost": 1, + "processingTime": 40, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 1, + "min": -1 + }, + "item": "biomancy:mineral_fragment" + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_porous_flesh_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_porous_flesh_decomposing.json new file mode 100644 index 00000000..b14547ae --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_porous_flesh_decomposing.json @@ -0,0 +1,24 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:porous_flesh" + }, + "nutrientsCost": 1, + "processingTime": 36, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 2, + "min": 1 + }, + "item": "biomancy:flesh_bits" + } + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_pus_bubble_decomposing.json b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_pus_bubble_decomposing.json new file mode 100644 index 00000000..5b5552b5 --- /dev/null +++ b/src/generated/resources/data/biomancy/recipes/decomposing/biomesoplenty_pus_bubble_decomposing.json @@ -0,0 +1,24 @@ +{ + "type": "biomancy:decomposing", + "conditions": [ + { + "type": "forge:mod_loaded", + "modid": "biomesoplenty" + } + ], + "ingredient": { + "item": "biomesoplenty:pus_bubble" + }, + "nutrientsCost": 1, + "processingTime": 120, + "results": [ + { + "countRange": { + "type": "uniform", + "max": 6, + "min": 4 + }, + "item": "biomancy:bile" + } + ] +} \ No newline at end of file