Minecraft Bedrock में सात तरह की रेसिपी होती हैं। हर एक बिहेवियर पैक में एक JSON फ़ाइल होती है, और हर एक का एक type होता है जो तय करता है कि उसे कौन से fields चाहिए और कौन सा station उसे इस्तेमाल कर सकता है। यह पेज सातों के लिए एक quick reference है, हर एक के लिए Ruby वाले उदाहरण के साथ।
रेसिपी में नए हैं? पहले Crafting और furnace रेसिपी पढ़ें। उसमें patterns, keys, item tags, recipe book (unlock) और priority स्टेप बाय स्टेप समझाए गए हैं। यह पेज उन हिस्सों को दोहराता नहीं।
फ़ाइलें
सभी रेसिपी एक ही फ़ोल्डर में जाती हैं। फ़ाइलों के नाम आप पर हैं, और चीज़ें साफ़-सुथरी रखने के लिए आप subfolders बना सकते हैं।
BP/
recipes/
ruby_block.json
ruby_from_block.json
smelt_raw_ruby.json
brew_ruby_strength.json
brew_ruby_splash.json
ruby_sword_upgrade.jsonसातों प्रकार एक नज़र में
| Type | Station | यह क्या करता है |
|---|---|---|
minecraft:recipe_shaped | Crafting table | तय pattern में रखे आइटम से नतीजा बनता है |
minecraft:recipe_shapeless | Crafting table, stonecutter, cartography table | किसी भी जगह रखे आइटम से नतीजा बनता है |
minecraft:recipe_furnace | Furnace, blast furnace, smoker, campfires | एक आइटम पककर दूसरा बन जाता है |
minecraft:recipe_brewing_mix | Brewing stand | potion का effect बदलता है |
minecraft:recipe_brewing_container | Brewing stand | बोतल का प्रकार बदलता है, जैसे potion से splash potion |
minecraft:recipe_smithing_transform | Smithing table | एक आइटम को दूसरे में upgrade करता है, उसके enchantments बचाकर |
minecraft:recipe_smithing_trim | Smithing table | armor पर रंगीन trim pattern जोड़ता है |
हर प्रकार का बाहरी ढाँचा एक जैसा होता है:
{
"format_version": "1.20.10",
"minecraft:recipe_shaped": {
"description": {
"identifier": "wiki:ruby_block"
},
"tags": ["crafting_table"]
}
}- root के नीचे वाली key (यहाँ
minecraft:recipe_shaped) ही type है। description.identifierरेसिपी की अपनी ID है। यह unique होनी चाहिए, और यह आइटम ID नहीं है।tagsउन stations की लिस्ट है जो इसे स्वीकार करते हैं। नीचे tags फ़ील्ड देखें।
Shaped
आइटम एक pattern में रखे होने चाहिए।
{
"format_version": "1.20.10",
"minecraft:recipe_shaped": {
"description": {
"identifier": "wiki:ruby_block"
},
"tags": ["crafting_table"],
"pattern": [
"RRR",
"RRR",
"RRR"
],
"key": {
"R": { "item": "wiki:ruby" }
},
"unlock": [{ "item": "wiki:ruby" }],
"result": { "item": "wiki:ruby_block" }
}
}| फ़ील्ड | इसमें क्या होता है |
|---|---|
pattern | ज़्यादा से ज़्यादा 3 characters की ज़्यादा से ज़्यादा 3 rows। space एक खाली slot है। |
key | हर character का मतलब: एक item या एक item tag |
result | आपको मिलने वाला आइटम, optional count के साथ |
assume_symmetry | Optional। क्या उल्टा (mirrored) pattern भी काम करे। default में करता है। |
priority | Optional। दो रेसिपी मैच होने पर कौन सी जीतेगी |
result एक लिस्ट भी हो सकता है। पहला आइटम output slot में जाता है, और बाकी भी वापस मिलते हैं। Vanilla cake यही करता है: आपको cake और आपकी तीन खाली buckets वापस मिलती हैं।
"result": [
{ "item": "wiki:ruby_cake" },
{ "item": "minecraft:bucket", "count": 3 }
]Shapeless
सिर्फ़ सामग्री मायने रखती है, यह नहीं कि वह कहाँ रखी है।
{
"format_version": "1.20.10",
"minecraft:recipe_shapeless": {
"description": {
"identifier": "wiki:ruby_from_block"
},
"tags": ["crafting_table"],
"ingredients": [
{ "item": "wiki:ruby_block" }
],
"unlock": [{ "item": "wiki:ruby_block" }],
"result": { "item": "wiki:ruby", "count": 9 }
}
}| फ़ील्ड | इसमें क्या होता है |
|---|---|
ingredients | आइटम (या item tags) की लिस्ट, हर एक optional count के साथ |
result | आपको मिलने वाला आइटम |
priority | Optional। दो रेसिपी मैच होने पर कौन सी जीतेगी |
Stonecutter रेसिपी भी shapeless होती हैं
Stonecutter का अपना कोई type नहीं है। यह एक सामग्री और stonecutter tag वाली shapeless रेसिपी इस्तेमाल करता है:
{
"format_version": "1.20.10",
"minecraft:recipe_shapeless": {
"description": {
"identifier": "wiki:ruby_bricks_stonecutting"
},
"tags": ["stonecutter"],
"ingredients": [{ "item": "wiki:ruby_block" }],
"unlock": [{ "item": "wiki:ruby_block" }],
"result": { "item": "wiki:ruby_bricks", "count": 1 }
}
}stonecutter मेनू का हर विकल्प एक अलग रेसिपी फ़ाइल है। Vanilla में ऐसी सैकड़ों हैं।
Furnace
एक आइटम अंदर जाता है, दूसरा बाहर आता है। इसमें result नहीं होता: इसके बजाय यह input और output इस्तेमाल करता है।
{
"format_version": "1.20.10",
"minecraft:recipe_furnace": {
"description": {
"identifier": "wiki:smelt_raw_ruby"
},
"tags": ["furnace", "blast_furnace"],
"input": "wiki:raw_ruby",
"output": "wiki:ruby"
}
}| फ़ील्ड | इसमें क्या होता है |
|---|---|
input | पकाने वाला आइटम |
output | बाहर आने वाला आइटम |
ईंधन रेसिपी का हिस्सा नहीं है। कोई भी सामान्य ईंधन चलेगा।
Brewing mix
brewing mix एक potion effect को दूसरे में बदलता है। बोतल का प्रकार वही रहता है: potion potion ही रहता है, splash potion splash potion ही रहता है।
{
"format_version": "1.20.10",
"minecraft:recipe_brewing_mix": {
"description": {
"identifier": "wiki:brew_ruby_strength"
},
"tags": ["brewing_stand"],
"input": "minecraft:potion_type:awkward",
"reagent": "wiki:ruby",
"output": "minecraft:potion_type:strength"
}
}| फ़ील्ड | इसमें क्या होता है |
|---|---|
input | नीचे वाले slots में potion, minecraft:potion_type:<name> के रूप में |
reagent | ऊपर वाले slot का आइटम। यह आपका अपना आइटम हो सकता है। |
output | आपको मिलने वाला potion, minecraft:potion_type:<name> के रूप में |
यहाँ, ruby एक Awkward Potion को Potion of Strength में बदल देती है, बिल्कुल blaze powder की तरह।
Potion के नाम lowercase में होते हैं, शब्दों के बीच _ के साथ। कुछ काम के नाम: water, awkward, mundane, thick, strength, swiftness, healing, regeneration, fire_resistance, slow_falling, water_breathing, invisibility और leaping। Night vision nightvision लिखा जाता है। लंबे versions long_ से शुरू होते हैं (long_strength) और ज़्यादा ताक़तवर वाले strong_ से (strong_strength)।
Brewing container
brewing container रेसिपी बोतल बदलती है, और effect वही रखती है। Vanilla इसे gunpowder (potion से splash potion) और dragon's breath (splash potion से lingering potion) के लिए इस्तेमाल करता है।
{
"format_version": "1.20.10",
"minecraft:recipe_brewing_container": {
"description": {
"identifier": "wiki:brew_ruby_splash"
},
"tags": ["brewing_stand"],
"input": "minecraft:potion",
"reagent": "wiki:ruby_dust",
"output": "minecraft:splash_potion"
}
}| फ़ील्ड | इसमें क्या होता है |
|---|---|
input | अंदर जाने वाला बोतल आइटम, जैसे minecraft:potion |
reagent | ऊपर वाले slot का आइटम |
output | बाहर आने वाला बोतल आइटम, जैसे minecraft:splash_potion या minecraft:lingering_potion |
Smithing transform
smithing table पर एक आइटम को दूसरे में upgrade करता है। पुराने आइटम के enchantments, नाम और damage नए आइटम में आ जाते हैं। Vanilla इसे diamond gear को netherite में बदलने के लिए इस्तेमाल करता है।
{
"format_version": "1.20.10",
"minecraft:recipe_smithing_transform": {
"description": {
"identifier": "wiki:ruby_sword_upgrade"
},
"tags": ["smithing_table"],
"template": "wiki:ruby_upgrade_template",
"base": "minecraft:diamond_sword",
"addition": "wiki:ruby",
"result": "wiki:ruby_sword"
}
}| फ़ील्ड | Slot | यह item tag चाहिए |
|---|---|---|
template | बायाँ: smithing template | minecraft:transform_templates |
base | बीच वाला: upgrade होने वाला आइटम | minecraft:transformable_items |
addition | दायाँ: material | minecraft:transform_materials |
result | upgrade हुआ आइटम | कोई नहीं |
item tags optional नहीं हैं
smithing table किसी slot में आइटम तभी आने देता है जब उसके पास ऊपर की टेबल वाला tag हो। Vanilla diamond gear के पास पहले से minecraft:transformable_items है। अपने template और material के लिए, minecraft:tags आइटम कंपोनेंट से tags जोड़ें, वरना slots बंद रहेंगे।
"minecraft:tags": {
"tags": ["minecraft:transform_templates"]
}हर template और material में से सिर्फ़ एक ही खर्च होता है, भले ही stack बड़ा हो।
Smithing trim
armor पर trim pattern जोड़ता है। इसमें कोई result नहीं होता: armor trim लगकर वापस आता है। यह ऐसा दिखता है:
{
"format_version": "1.20.10",
"minecraft:recipe_smithing_trim": {
"description": {
"identifier": "wiki:ruby_armor_trim"
},
"tags": ["smithing_table"],
"template": { "tag": "minecraft:trim_templates" },
"base": { "tag": "minecraft:trimmable_armors" },
"addition": { "tag": "minecraft:trim_materials" }
}
}| फ़ील्ड | Slot | यह item tag चाहिए |
|---|---|---|
template | trim pattern | minecraft:trim_templates |
base | armor का हिस्सा | minecraft:trimmable_armors |
addition | रंग तय करने वाला material | minecraft:trim_materials |
हर फ़ील्ड एक आइटम लेता है, या ऊपर की तरह एक item tag। यह वही ढाँचा है जो vanilla की अकेली trim रेसिपी इस्तेमाल करती है: क्योंकि यह सिर्फ़ tags इस्तेमाल करती है, यह एक साथ हर template, armor और material को कवर करती है।
कस्टम armor पर trim
आमतौर पर आपको trim रेसिपी की ज़रूरत ही नहीं होती। अपने armor हिस्सों को minecraft:trimmable_armors tag दें और vanilla रेसिपी उन्हें पहले से स्वीकार कर लेती है। armor बनाने के लिए Armor देखें।
tags फ़ील्ड
tags उन stations की लिस्ट है जो किसी रेसिपी को इस्तेमाल कर सकते हैं। हर प्रकार कुछ ख़ास tags के साथ ही समझ में आता है:
| रेसिपी का प्रकार | यह कौन से tags स्वीकार करता है |
|---|---|
| Shaped | crafting_table |
| Shapeless | crafting_table, stonecutter, cartography_table |
| Furnace | furnace, blast_furnace, smoker, campfire, soul_campfire |
| Brewing mix और container | brewing_stand |
| Smithing transform और trim | smithing_table |
कुछ नियम:
- हर वह station लिखें जो आप चाहते हैं। सिर्फ़
furnacetag वाली furnace रेसिपी smoker में काम नहीं करती। - एक प्रकार के अंदर खुलकर मिलाएँ। खाने में आमतौर पर
furnace,smoker,campfireऔरsoul_campfireएक साथ लिखे होते हैं। deprecatedको नज़रअंदाज़ करें। कुछ vanilla फ़ाइलें पुरानी रेसिपी को दिखाए बिना बनाए रखने के लिए यह tag इस्तेमाल करती हैं। आपकी रेसिपी को इसकी ज़रूरत नहीं।
हर station के बारे में, और 2x2 inventory grid के बारे में और जानकारी Crafting और furnace रेसिपी में है।
जब कुछ गड़बड़ हो
| आपको क्या दिखता है | सबसे संभावित कारण |
|---|---|
| रेसिपी कभी दिखती ही नहीं | tags लिस्ट में वह station नहीं है |
| smithing slot मेरा आइटम नहीं ले रहा | आइटम के पास वह item tag नहीं है जो slot को चाहिए |
| brewing रेसिपी कुछ नहीं करती | potion का नाम गलत है, या minecraft:potion_type: नहीं है |
| stonecutter मेरी रेसिपी को नज़रअंदाज़ करता है | इसमें एक से ज़्यादा सामग्री है, या यह shapeless नहीं है |
| दो रेसिपी की ID एक है | हर description.identifier unique होना चाहिए, सभी प्रकारों में |
और मदद Troubleshooting में है। अपनी रेसिपी में इस्तेमाल करने के लिए आइटम चाहिए? आपका पहला कस्टम आइटम से शुरू करें।