fix: correct cobblestone fragment crafting recipe

This commit is contained in:
Martin Prokoph
2025-06-22 12:11:00 +02:00
parent 50c8552ac6
commit c7a0260b3c
12 changed files with 24 additions and 23 deletions

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:andesite_from_splitter"
"recipe": "rocks:andesite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:andesite_from_splitter"
"rocks:andesite_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:stone_from_splitter"
"recipe": "rocks:cobblestone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:stone_from_splitter"
"rocks:cobblestone_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:diorite_from_splitter"
"recipe": "rocks:diorite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:diorite_from_splitter"
"rocks:diorite_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:end_stone_from_splitter"
"recipe": "rocks:end_stone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:end_stone_from_splitter"
"rocks:end_stone_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:granite_from_splitter"
"recipe": "rocks:granite_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:granite_from_splitter"
"rocks:granite_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:ice_from_splitter"
"recipe": "rocks:ice_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:ice_from_splitter"
"rocks:ice_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:netherrack_from_splitter"
"recipe": "rocks:netherrack_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:netherrack_from_splitter"
"rocks:netherrack_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:red_sandstone_from_splitter"
"recipe": "rocks:red_sandstone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:red_sandstone_from_splitter"
"rocks:red_sandstone_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:sandstone_from_splitter"
"recipe": "rocks:sandstone_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:sandstone_from_splitter"
"rocks:sandstone_from_splitter"
]
}
}

View File

@@ -13,7 +13,7 @@
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:soul_soil_from_splitter"
"recipe": "rocks:soul_soil_from_splitter"
},
"trigger": "minecraft:recipe_unlocked"
}
@@ -26,7 +26,7 @@
],
"rewards": {
"recipes": [
"minecraft:soul_soil_from_splitter"
"rocks:soul_soil_from_splitter"
]
}
}

View File

@@ -9,6 +9,6 @@
],
"result": {
"count": 1,
"id": "minecraft:stone"
"id": "minecraft:cobblestone"
}
}

View File

@@ -39,11 +39,12 @@ public class Recipes extends FabricRecipeProvider {
}
private void generateCrafting(RecipeExporter exporter) {
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)
.criterion(RecipeGenerator.hasItem(splitter), this.conditionsFromItem(splitter))
.offerTo(exporter, rockType.name().toLowerCase()+"_from_splitter");
.offerTo(exporter, stoneID.getPath()+"_from_splitter");
}));
}
}