tinycodinglm / mc /mc-0039.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.95 kB
{"type": "session", "harness": "opencode", "id": "mc-0039", "name": "Custom Recipes"}
{"type": "message", "message": {"role": "system", "content": "You are an expert Fabric mod developer. You write idiomatic Minecraft Fabric mods using Java, Fabric API, and Yarn mappings."}}
{"type": "message", "message": {"role": "user", "content": "How do I create custom crafting recipes and smelting recipes for my mod?"}}
{"type": "message", "message": {"role": "assistant", "content": "Place recipe JSON files in data/<modid>/recipe/ directory.\n\nShaped Recipe (data/mymod/recipe/custom_shaped.json):\n```json\n{\n \"type\": \"minecraft:crafting_shaped\",\n \"pattern\": [\"ABA\", \" C \", \"ABA\"],\n \"key\": {\n \"A\": {\"item\": \"minecraft:iron_ingot\"},\n \"B\": {\"item\": \"minecraft:diamond\"},\n \"C\": {\"item\": \"mymod:simple_item\"}\n },\n \"result\": {\"id\": \"mymod:custom_sword\", \"count\": 1}\n}\n```\n\nShapeless Recipe:\n```json\n{\n \"type\": \"minecraft:crafting_shapeless\",\n \"ingredients\": [{\"item\": \"mymod:simple_item\"}, {\"item\": \"minecraft:redstone\"}],\n \"result\": {\"id\": \"mymod:powered_item\", \"count\": 2}\n}\n```\n\nSmelting Recipe:\n```json\n{\n \"type\": \"minecraft:smelting\",\n \"ingredient\": {\"item\": \"mymod:raw_ore\"},\n \"result\": {\"id\": \"mymod:ingot\", \"count\": 1},\n \"experience\": 0.7,\n \"cookingtime\": 200\n}\n```\n\nSmithing Transform Recipe (1.21+):\n```json\n{\n \"type\": \"minecraft:smithing_transform\",\n \"template\": {\"item\": \"minecraft:netherite_upgrade_smithing_template\"},\n \"base\": {\"item\": \"mymod:diamond_tool\"},\n \"addition\": {\"item\": \"minecraft:netherite_ingot\"},\n \"result\": {\"item\": \"mymod:netherite_tool\"}\n}\n```\n\nTag ingredients:\n```json\n{\n \"type\": \"minecraft:crafting_shapeless\",\n \"ingredients\": [{\"tag\": \"c:ingots/iron\"}],\n \"result\": {\"id\": \"mymod:iron_dust\", \"count\": 1}\n}\n```"}}