1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-31 11:19:13 +00:00

Fix computer upgrade recipes

This commit is contained in:
Jonathan Coates 2022-11-21 19:08:23 +00:00
parent 737d8a2585
commit 0fc78acd49
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
5 changed files with 6 additions and 6 deletions

View File

@ -196,7 +196,7 @@ class RecipeProvider {
.pattern("#C#") .pattern("#C#")
.pattern("# #") .pattern("# #")
.define('#', ingredients.goldIngot()) .define('#', ingredients.goldIngot())
.define('C', ModRegistry.Items.COMPUTER_ADVANCED.get()) .define('C', ModRegistry.Items.COMPUTER_NORMAL.get())
.unlockedBy("has_components", inventoryChange(itemPredicate(ModRegistry.Items.COMPUTER_NORMAL.get()), itemPredicate(ingredients.goldIngot()))) .unlockedBy("has_components", inventoryChange(itemPredicate(ModRegistry.Items.COMPUTER_NORMAL.get()), itemPredicate(ingredients.goldIngot())))
.save( .save(
RecipeWrapper.wrap(ModRegistry.RecipeSerializers.COMPUTER_UPGRADE.get(), add).withExtraData(family(ComputerFamily.ADVANCED)), RecipeWrapper.wrap(ModRegistry.RecipeSerializers.COMPUTER_UPGRADE.get(), add).withExtraData(family(ComputerFamily.ADVANCED)),
@ -242,7 +242,7 @@ class RecipeProvider {
.pattern("#C#") .pattern("#C#")
.pattern(" B ") .pattern(" B ")
.define('#', ingredients.goldIngot()) .define('#', ingredients.goldIngot())
.define('C', ModRegistry.Items.COMPUTER_ADVANCED.get()) .define('C', ModRegistry.Items.TURTLE_NORMAL.get())
.define('B', ingredients.goldBlock()) .define('B', ingredients.goldBlock())
.unlockedBy("has_components", inventoryChange(itemPredicate(ModRegistry.Items.TURTLE_NORMAL.get()), itemPredicate(ingredients.goldIngot()))) .unlockedBy("has_components", inventoryChange(itemPredicate(ModRegistry.Items.TURTLE_NORMAL.get()), itemPredicate(ingredients.goldIngot())))
.save( .save(

View File

@ -1,7 +1,7 @@
{ {
"type": "computercraft:computer_upgrade", "type": "computercraft:computer_upgrade",
"family": "ADVANCED", "family": "ADVANCED",
"key": {"#": {"tag": "c:gold_ingots"}, "C": {"item": "computercraft:computer_advanced"}}, "key": {"#": {"tag": "c:gold_ingots"}, "C": {"item": "computercraft:computer_normal"}},
"pattern": ["###", "#C#", "# #"], "pattern": ["###", "#C#", "# #"],
"result": {"item": "computercraft:computer_advanced"} "result": {"item": "computercraft:computer_advanced"}
} }

View File

@ -4,7 +4,7 @@
"key": { "key": {
"#": {"tag": "c:gold_ingots"}, "#": {"tag": "c:gold_ingots"},
"B": {"item": "minecraft:gold_block"}, "B": {"item": "minecraft:gold_block"},
"C": {"item": "computercraft:computer_advanced"} "C": {"item": "computercraft:turtle_normal"}
}, },
"pattern": ["###", "#C#", " B "], "pattern": ["###", "#C#", " B "],
"result": {"item": "computercraft:turtle_advanced"} "result": {"item": "computercraft:turtle_advanced"}

View File

@ -1,7 +1,7 @@
{ {
"type": "computercraft:computer_upgrade", "type": "computercraft:computer_upgrade",
"family": "ADVANCED", "family": "ADVANCED",
"key": {"#": {"tag": "forge:ingots/gold"}, "C": {"item": "computercraft:computer_advanced"}}, "key": {"#": {"tag": "forge:ingots/gold"}, "C": {"item": "computercraft:computer_normal"}},
"pattern": ["###", "#C#", "# #"], "pattern": ["###", "#C#", "# #"],
"result": {"item": "computercraft:computer_advanced"} "result": {"item": "computercraft:computer_advanced"}
} }

View File

@ -4,7 +4,7 @@
"key": { "key": {
"#": {"tag": "forge:ingots/gold"}, "#": {"tag": "forge:ingots/gold"},
"B": {"tag": "forge:storage_blocks/gold"}, "B": {"tag": "forge:storage_blocks/gold"},
"C": {"item": "computercraft:computer_advanced"} "C": {"item": "computercraft:turtle_normal"}
}, },
"pattern": ["###", "#C#", " B "], "pattern": ["###", "#C#", " B "],
"result": {"item": "computercraft:turtle_advanced"} "result": {"item": "computercraft:turtle_advanced"}