Skip to content
This repository was archived by the owner on Jun 7, 2026. It is now read-only.

Commit f243f79

Browse files
committed
Blasting recipes
1 parent 0c4a6d1 commit f243f79

6 files changed

Lines changed: 49 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"background": "gui/recipe/blasting",
3+
"inputSlots": {
4+
"1": {"x": 14, "y": 14},
5+
"2": {"x": 14, "y": 86}
6+
},
7+
"outputSlots": {
8+
"1": {"x": 143, "y": 50}
9+
}
10+
}

sql/provided/20250625211200_game_builtins.sql

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
INSERT INTO recipe_type (loc)
33
VALUES ('minecraft:crafting_shaped'),
44
('minecraft:crafting_shapeless'),
5-
('minecraft:smelting');
5+
('minecraft:smelting'),
6+
('minecraft:blasting');
67

78
-- Vanilla recipe workbenches
89
INSERT INTO recipe_workbench (type_id, item_id)
@@ -29,3 +30,12 @@ WHERE r.loc IN (
2930
'minecraft:smelting'
3031
)
3132
AND r.version_id IS NULL;
33+
34+
INSERT INTO recipe_workbench (type_id, item_id)
35+
SELECT r.id, pitem.id
36+
FROM recipe_type r
37+
JOIN project_item pitem ON pitem.item_id = (SELECT id FROM item i WHERE i.loc = 'minecraft:blast_furnace')
38+
WHERE r.loc IN (
39+
'minecraft:blasting'
40+
)
41+
AND r.version_id IS NULL;

src/service/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ read_and_escape_schema("schemas/workbenches.schema.json" RECIPE_WORKBENCHES)
1717

1818
read_and_escape_schema("../../builtin/minecraft/recipe_type/crafting.json" CRAFTING)
1919
read_and_escape_schema("../../builtin/minecraft/recipe_type/smelting.json" SMELTING)
20+
read_and_escape_schema("../../builtin/minecraft/recipe_type/blasting.json" BLASTING)
2021

2122
configure_file(
2223
${CMAKE_CURRENT_SOURCE_DIR}/schemas.cc

src/service/content/builtin_recipe_type.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
namespace recipe_type::builtin {
66
nlohmann::json crafting = R"(@CRAFTING@)"_json;
77
nlohmann::json smelting = R"(@SMELTING@)"_json;
8+
nlohmann::json blasting = R"(@BLASTING@)"_json;
89
}

src/service/content/recipe_builtin.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ namespace content {
165165
loadRecipeType("minecraft:crafting_shaped", recipe_type::builtin::crafting, readShapedCraftingRecipe);
166166
loadRecipeType("minecraft:crafting_shapeless", recipe_type::builtin::crafting, readShapelessCraftingRecipe);
167167
loadRecipeType("minecraft:smelting", recipe_type::builtin::smelting, readSmeltingRecipe);
168+
loadRecipeType("minecraft:blasting", recipe_type::builtin::blasting, readSmeltingRecipe);
168169
}
169170

170171
bool VanillaRecipeParser::handlesType(const ResourceLocation type) { return type.namespace_ == ResourceLocation::DEFAULT_NAMESPACE; }

src/service/schemas/game-recipe.schema.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,29 @@
140140
}
141141
]
142142
}
143+
},
144+
{
145+
"if": {
146+
"properties": {
147+
"type": {
148+
"const": "minecraft:blasting"
149+
}
150+
}
151+
},
152+
"then": {
153+
"description": "Represents a recipe in a blast furnace.",
154+
"anyOf": [
155+
{
156+
"$ref": "#/definitions/tagsCommonToAllRecipes"
157+
},
158+
{
159+
"$ref": "#/definitions/tagsCommonToAllCookingRecipes"
160+
},
161+
{
162+
"$ref": "#/definitions/cookingRecipeCategory"
163+
}
164+
]
165+
}
143166
}
144167
],
145168
"definitions": {
@@ -252,7 +275,8 @@
252275
"enum": [
253276
"minecraft:crafting_shaped",
254277
"minecraft:crafting_shapeless",
255-
"minecraft:smelting"
278+
"minecraft:smelting",
279+
"minecraft:blasting"
256280
]
257281
}
258282
}

0 commit comments

Comments
 (0)