From 5c8d405a257e43e4fad880981f65300136bd3adc Mon Sep 17 00:00:00 2001 From: Ayutac Date: Fri, 11 Feb 2022 18:05:05 +0100 Subject: [PATCH] Added toasts for fluids in chem. reactor --- .../chemical_reactor/calcium_carbonate.json | 45 +++++++++++++++++++ .../recipes/chemical_reactor/glyceryl.json | 33 ++++++++++++++ .../recipes/chemical_reactor/methane.json | 45 +++++++++++++++++++ .../chemical_reactor/nitro_carbon.json | 33 ++++++++++++++ .../chemical_reactor/nitro_diesel.json | 45 +++++++++++++++++++ .../chemical_reactor/nitrocoal_fuel.json | 33 ++++++++++++++ .../recipes/chemical_reactor/nitrofuel.json | 45 +++++++++++++++++++ .../chemical_reactor/nitrogen_dioxide.json | 33 ++++++++++++++ .../chemical_reactor/sodium_persulfate.json | 33 ++++++++++++++ .../chemical_reactor/sodium_sulfide.json | 45 +++++++++++++++++++ .../chemical_reactor/sulfuric_acid.json | 33 ++++++++++++++ .../recipes/chemical_reactor/water.json | 45 +++++++++++++++++++ 12 files changed, 468 insertions(+) create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/calcium_carbonate.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/glyceryl.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/methane.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_carbon.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_diesel.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrocoal_fuel.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrofuel.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrogen_dioxide.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_persulfate.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_sulfide.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sulfuric_acid.json create mode 100644 src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/water.json diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/calcium_carbonate.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/calcium_carbonate.json new file mode 100644 index 000000000..d3eda5f3f --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/calcium_carbonate.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/calcium_carbonate" + ] + }, + "criteria": { + "has_carbon": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:carbon", + "holder": "techreborn:cell" + } + ] + } + }, + "has_calcium": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:calcium", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/calcium_carbonate" + } + } + }, + "requirements": [ + [ + "has_carbon", + "has_calcium", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/glyceryl.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/glyceryl.json new file mode 100644 index 000000000..13eafd7d6 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/glyceryl.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/glyceryl" + ] + }, + "criteria": { + "has_nitro_carbon": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:nitro_carbon", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/glyceryl" + } + } + }, + "requirements": [ + [ + "has_nitro_carbon", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/methane.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/methane.json new file mode 100644 index 000000000..abf547e1e --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/methane.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/methane" + ] + }, + "criteria": { + "has_carbon": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:carbon", + "holder": "techreborn:cell" + } + ] + } + }, + "has_hydrogen": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:hydrogen", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/hydrogen_carbonate" + } + } + }, + "requirements": [ + [ + "has_carbon", + "has_hydrogen", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_carbon.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_carbon.json new file mode 100644 index 000000000..a3da6b6b1 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_carbon.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/nitro_carbon" + ] + }, + "criteria": { + "has_nitrogen": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:nitrogen", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/nitro_carbon" + } + } + }, + "requirements": [ + [ + "has_nitrogen", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_diesel.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_diesel.json new file mode 100644 index 000000000..1b0cd8aa1 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitro_diesel.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/nitro_diesel" + ] + }, + "criteria": { + "has_glyceryl": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:glyceryl", + "holder": "techreborn:cell" + } + ] + } + }, + "has_diesel": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:diesel", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/nitro_diesel" + } + } + }, + "requirements": [ + [ + "has_glyceryl", + "has_diesel", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrocoal_fuel.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrocoal_fuel.json new file mode 100644 index 000000000..2ee13cdf6 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrocoal_fuel.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/nitrocoal_fuel" + ] + }, + "criteria": { + "has_glyceryl": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:glyceryl", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/nitrocoal_fuel" + } + } + }, + "requirements": [ + [ + "has_glyceryl", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrofuel.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrofuel.json new file mode 100644 index 000000000..b2f6d3fec --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrofuel.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/nitrofuel" + ] + }, + "criteria": { + "has_oil": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:oil", + "holder": "techreborn:cell" + } + ] + } + }, + "has_nitrogen": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:nitrogen", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/nitrofuel" + } + } + }, + "requirements": [ + [ + "has_oil", + "has_nitrogen", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrogen_dioxide.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrogen_dioxide.json new file mode 100644 index 000000000..8c15d0924 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/nitrogen_dioxide.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/nitrogen_dioxide" + ] + }, + "criteria": { + "has_nitrogen": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:nitrogen", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/nitrogen_dioxide" + } + } + }, + "requirements": [ + [ + "has_nitrogen", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_persulfate.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_persulfate.json new file mode 100644 index 000000000..54ddd5ff4 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_persulfate.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/sodium_persulfate" + ] + }, + "criteria": { + "has_sodium_sulfide": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:sodium_sulfide", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/sodium_persulfate" + } + } + }, + "requirements": [ + [ + "has_sodium_sulfide", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_sulfide.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_sulfide.json new file mode 100644 index 000000000..c8455e882 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sodium_sulfide.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/sodium_sulfide" + ] + }, + "criteria": { + "has_sulfur": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:sulfur", + "holder": "techreborn:cell" + } + ] + } + }, + "has_sodium": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:sodium", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/sodium_sulfide" + } + } + }, + "requirements": [ + [ + "has_sulfur", + "has_sodium", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sulfuric_acid.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sulfuric_acid.json new file mode 100644 index 000000000..5d5bbbd28 --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/sulfuric_acid.json @@ -0,0 +1,33 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/sulfuric_acid" + ] + }, + "criteria": { + "has_sulfur": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:sulfur", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/sulfuric_acid" + } + } + }, + "requirements": [ + [ + "has_sulfur", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/water.json b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/water.json new file mode 100644 index 000000000..5ba0f36cd --- /dev/null +++ b/src/main/resources/data/techreborn/advancements/recipes/chemical_reactor/water.json @@ -0,0 +1,45 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "techreborn:chemical_reactor/water" + ] + }, + "criteria": { + "has_compressed_air": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:compressed_air", + "holder": "techreborn:cell" + } + ] + } + }, + "has_hydrogen": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "fluid": "techreborn:hydrogen", + "holder": "techreborn:cell" + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "techreborn:chemical_reactor/water" + } + } + }, + "requirements": [ + [ + "has_compressed_air", + "has_hydrogen", + "has_the_recipe" + ] + ] +} \ No newline at end of file