From 4dab98baac2d98103857f23dcca1fdaa690a016f Mon Sep 17 00:00:00 2001 From: Sam Kirby Date: Sat, 7 Sep 2019 19:31:11 +0100 Subject: [PATCH] Prevent registering of certain Steelworks recipes when module disabled (#55) This prevents the following recipes being registered when Steelworks is disabled as these recipes will not have properly registered components or results in this circumstance:- * Steel Nuggets from Ingots * Steel Ingots from Block * Charcoal from Charcoal Block This closes #54. --- .../assets/tcomplement/recipes/steelworks/charcoal.json | 1 + .../tcomplement/recipes/steelworks/steel_ingot_from_block.json | 1 + .../assets/tcomplement/recipes/steelworks/steel_nugget.json | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/resources/assets/tcomplement/recipes/steelworks/charcoal.json b/src/main/resources/assets/tcomplement/recipes/steelworks/charcoal.json index 31c58be..bdd9ca0 100644 --- a/src/main/resources/assets/tcomplement/recipes/steelworks/charcoal.json +++ b/src/main/resources/assets/tcomplement/recipes/steelworks/charcoal.json @@ -1,4 +1,5 @@ { + "conditions": [{ "type": "pulse_loaded", "pulse": "ModuleSteelworks" }], "type": "forge:ore_shapeless", "ingredients": [{"type": "forge:ore_dict", "ore": "blockCharcoal"}], "result": {"item": "minecraft:coal", "data": 1, "count": 9} diff --git a/src/main/resources/assets/tcomplement/recipes/steelworks/steel_ingot_from_block.json b/src/main/resources/assets/tcomplement/recipes/steelworks/steel_ingot_from_block.json index 066ed49..e45f187 100644 --- a/src/main/resources/assets/tcomplement/recipes/steelworks/steel_ingot_from_block.json +++ b/src/main/resources/assets/tcomplement/recipes/steelworks/steel_ingot_from_block.json @@ -1,4 +1,5 @@ { + "conditions": [{ "type": "pulse_loaded", "pulse": "ModuleSteelworks" }], "type": "forge:ore_shapeless", "ingredients": [{"type": "forge:ore_dict", "ore": "blockSteel"}], "result": {"item": "tcomplement:materials", "data": 10, "count": 9} diff --git a/src/main/resources/assets/tcomplement/recipes/steelworks/steel_nugget.json b/src/main/resources/assets/tcomplement/recipes/steelworks/steel_nugget.json index 784d5ec..0eb40c7 100644 --- a/src/main/resources/assets/tcomplement/recipes/steelworks/steel_nugget.json +++ b/src/main/resources/assets/tcomplement/recipes/steelworks/steel_nugget.json @@ -1,4 +1,5 @@ { + "conditions": [{ "type": "pulse_loaded", "pulse": "ModuleSteelworks" }], "type": "forge:ore_shapeless", "ingredients": [{"type": "forge:ore_dict", "ore": "ingotSteel"}], "result": {"item": "tcomplement:materials", "data": 20, "count": 9}