JSONCrafter allows you to easily create and inject custom recipes into the game by loading them from minecraftFolder/config/JSONCrafter/crafts/crafts.json.
The mod automatically reads this JSON file on game launch and registers all defined recipes. Below is the complete JSON structure containing working examples for all major recipe types: Shaped (форменный), Shapeless (бесформенный), Smelting (плавка в печи) and Blasting (плавка в доменной печи).
`crafts.json` Example Code { "recipes": \[ { "type": "shaped", "result": "minecraft:diamond\_sword", "count": 1, "pattern": \[ " D ", " D ", " S " \], "key": { "D": "minecraft:diamond", "S": "minecraft:stick" } }, { "type": "shapeless", "result": "minecraft:golden\_apple", "count": 1, "ingredients": \[ "minecraft:apple", "minecraft:gold\_ingot", "minecraft:gold\_ingot", "minecraft:gold\_ingot", "minecraft:gold\_ingot" \] }, { "type": "smelting", "ingredient": "minecraft:rotten\_flesh", "result": "minecraft:leather", "experience": 0.35, "cookingTime": 200 }, { "type": "blasting", "ingredient": "minecraft:iron\_sword", "result": "minecraft:iron\_nugget", "experience": 0.1, "cookingTime": 100 } \] }
Recipe Types Breakdown
-
shaped: Classic crafting grid recipe requiring a specific pattern.-
pattern: Grid layout (3 lines of up to 3 characters). -
key: Maps characters in the pattern to exact item IDs.
-
-
shapeless: Crafting grid recipe where ingredient placement doesn't matter.ingredients: Array of required item IDs.
-
smelting: Furnace recipe.-
cookingTime: Ticks required (200 ticks = 10 seconds). -
experience: XP points rewarded upon extraction.
-
-
blasting: Blast Furnace recipe (faster processing, usually 100 ticks).

