pack.mcmeta: pack_format संख्याएं और "incompatible" चेतावनी
एक गलत पूर्णांक Minecraft में आपके पैक को धूसर कर देता है। यहाँ फॉर्मेट-से-वर्जन मैपिंग, supported_formats रेंज जो पूरी समस्या से बचाती है, और फ़ाइल कहाँ होनी चाहिए, दी गई है।
लगभग हर "मेरा पैक असंगत दिख रहा है" वाली समस्या एक छोटी फ़ाइल में एक संख्या की वजह से होती है।
फ़ाइल
{
"pack": {
"pack_format": 46,
"description": "My pack"
}
}
इसका नाम बिल्कुल यही होना चाहिए pack.mcmeta and sit at the रूट zip का — इसके बगल में assets/ or data/, not inside a folder inside the zip. Zipping the containing folder instead of its contents is the second most common failure, and it looks identical to a wrong format number.
Resource pack और data pack अलग-अलग संख्याओं का उपयोग करते हैं
यह वह हिस्सा है जहाँ लोग उलझते हैं: दोनों काउंटर सालों पहले अलग हो गए थे और आपस में बदले नहीं जा सकते। resource pack संख्या का उपयोग करने वाला data pack धूसर हो जाता है, भले ही संख्या "वर्तमान" हो।
हर रिलीज़ के साथ पुरानी होने वाली तालिका को याद रखने के बजाय, अपने लक्षित वर्ज़न के लिए वैनिला पैक से संख्या देखें — या किसी जनरेटर को इसे भरने दें।
supported_formats असली समाधान है
सिर्फ एक पूर्णांक तय करने का मतलब है कि अगली रिलीज़ पर पैक काम नहीं करेगा। एक रेंज के साथ ऐसा नहीं होता:
{
"pack": {
"pack_format": 46,
"supported_formats": { "min_inclusive": 42, "max_inclusive": 99 },
"description": "My pack"
}
}
pack_format stays as the primary declaration; supported_formats widens what the game accepts without the warning. For a pack that only adds textures or recipes — which is most packs — a wide range is honest, because nothing in it actually breaks between versions.
विवरण में टेक्स्ट कंपोनेंट्स काम करते हैं
"description": [
{ "text": "My pack ", "color": "gold" },
{ "text": "v2", "color": "gray", "italic": true }
]
सेक्शन-साइन कोड्स (§6) also still work, but the JSON form survives copy-paste through tools that strip control characters.
ओवरले, एक साथ कई वर्ज़न को सपोर्ट करने के लिए
"overlays": { "entries": [
{ "formats": { "min_inclusive": 42, "max_inclusive": 45 }, "directory": "older" }
] }
The older/ folder at the pack root is used only on those formats. This is how a single download supports two versions with different model formats, instead of shipping two zips.
त्वरित निदान
| लक्षण | कारण |
|---|---|
| धूसर, "पुराने/नए वर्ज़न के लिए बनाया गया" | गलत pack_format |
| पैक बिल्कुल भी सूचीबद्ध नहीं है | pack.mcmeta not at zip root, or invalid JSON |
| लोड होता है, टेक्सचर गायब हैं | pack format सही है; टेक्सचर paths गलत हैं |
| Singleplayer में काम करता है, सर्वर पर नहीं | data pack गलत वर्ल्ड फ़ोल्डर में है |
अंतिम में अतिरिक्त कॉमा अमान्य JSON होता है और कोई एरर मैसेज दिखाने के बजाय "बिल्कुल सूचीबद्ध नहीं" वाली स्थिति पैदा करता है।
अपने पैक प्रकार और लक्षित वर्ज़न के लिए मान्य फ़ाइल जनरेट करें — इसके साथ supported_formats filled in — using the pack.mcmeta जनरेटर.