mirror of
https://github.com/TeamMidnightDust/ThisRocks.git
synced 2025-12-16 02:55:08 +01:00
fix: correct cobblestone fragment crafting recipe
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:andesite_from_splitter"
|
"recipe": "rocks:andesite_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:andesite_from_splitter"
|
"rocks:andesite_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:stone_from_splitter"
|
"recipe": "rocks:cobblestone_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:stone_from_splitter"
|
"rocks:cobblestone_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:diorite_from_splitter"
|
"recipe": "rocks:diorite_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:diorite_from_splitter"
|
"rocks:diorite_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:end_stone_from_splitter"
|
"recipe": "rocks:end_stone_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:end_stone_from_splitter"
|
"rocks:end_stone_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:granite_from_splitter"
|
"recipe": "rocks:granite_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:granite_from_splitter"
|
"rocks:granite_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:ice_from_splitter"
|
"recipe": "rocks:ice_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:ice_from_splitter"
|
"rocks:ice_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:netherrack_from_splitter"
|
"recipe": "rocks:netherrack_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:netherrack_from_splitter"
|
"rocks:netherrack_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:red_sandstone_from_splitter"
|
"recipe": "rocks:red_sandstone_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:red_sandstone_from_splitter"
|
"rocks:red_sandstone_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:sandstone_from_splitter"
|
"recipe": "rocks:sandstone_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:sandstone_from_splitter"
|
"rocks:sandstone_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"has_the_recipe": {
|
"has_the_recipe": {
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"recipe": "minecraft:soul_soil_from_splitter"
|
"recipe": "rocks:soul_soil_from_splitter"
|
||||||
},
|
},
|
||||||
"trigger": "minecraft:recipe_unlocked"
|
"trigger": "minecraft:recipe_unlocked"
|
||||||
}
|
}
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
],
|
],
|
||||||
"rewards": {
|
"rewards": {
|
||||||
"recipes": [
|
"recipes": [
|
||||||
"minecraft:soul_soil_from_splitter"
|
"rocks:soul_soil_from_splitter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"count": 1,
|
"count": 1,
|
||||||
"id": "minecraft:stone"
|
"id": "minecraft:cobblestone"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,11 +39,12 @@ public class Recipes extends FabricRecipeProvider {
|
|||||||
}
|
}
|
||||||
private void generateCrafting(RecipeExporter exporter) {
|
private void generateCrafting(RecipeExporter exporter) {
|
||||||
RocksMain.splittersByType.forEach(((rockType, splitter) -> {
|
RocksMain.splittersByType.forEach(((rockType, splitter) -> {
|
||||||
|
Identifier stoneID = rockType.getFragment().getStoneId();
|
||||||
|
|
||||||
ShapelessRecipeJsonBuilder.create(registries.getOrThrow(RegistryKeys.ITEM), RecipeCategory.BUILDING_BLOCKS, Registries.BLOCK.get(Identifier.ofVanilla(rockType.name().toLowerCase())).asItem())
|
ShapelessRecipeJsonBuilder.create(registries.getOrThrow(RegistryKeys.ITEM), RecipeCategory.BUILDING_BLOCKS, Registries.BLOCK.get(stoneID).asItem())
|
||||||
.input(splitter, 4)
|
.input(splitter, 4)
|
||||||
.criterion(RecipeGenerator.hasItem(splitter), this.conditionsFromItem(splitter))
|
.criterion(RecipeGenerator.hasItem(splitter), this.conditionsFromItem(splitter))
|
||||||
.offerTo(exporter, rockType.name().toLowerCase()+"_from_splitter");
|
.offerTo(exporter, stoneID.getPath()+"_from_splitter");
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user