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:
parent
737d8a2585
commit
0fc78acd49
@ -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(
|
||||||
|
@ -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"}
|
||||||
}
|
}
|
||||||
|
@ -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"}
|
||||||
|
@ -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"}
|
||||||
}
|
}
|
||||||
|
@ -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"}
|
||||||
|
Loading…
Reference in New Issue
Block a user