1. विकी
  2. /आइटम
  3. /कस्टम armor

कस्टम armor

Minecraft Bedrock के लिए एक Ruby armor सेट बनाएँ: protection, durability, enchanting और repair, साथ में वह attachable जो इसे खिलाड़ी पर दिखाता है।

इस गाइड में आप एक Ruby Chestplate बनाएँगे और सीखेंगे कि इसे चार हिस्सों वाले पूरे सेट में कैसे बदलें। Armor पहला आइटम है जिसमें बिहेवियर पैक और रिसोर्स पैक दोनों बड़ा काम करते हैं: BP तय करता है कि यह कितनी सुरक्षा देता है, और RP तय करता है कि यह खिलाड़ी के शरीर पर कैसा दिखता है, सिर्फ़ inventory में नहीं।

यह गाइड आपका पहला कस्टम आइटम पर आगे बढ़ती है। अगर icons, textures और lang फ़ाइलें आपके लिए नई हैं, तो पहले उसे पढ़ें।

तेज़ तरीका: GodCraft

GodCraft चारों हिस्से एक साथ बनाता है, पहनने वाला लुक भी, इसलिए आप इस गाइड की सबसे मुश्किल फ़ाइल से बच जाते हैं।

  1. Workshop खोलें और अपने ऐड-ऑन में एक Armor जोड़ें।
  2. pixel editor में icons और पहनने वाला texture पेंट करें।
  3. हर हिस्से के लिए protection, durability और repair आइटम सेट करें।
  4. Export पर टैप करें और गेम में सेट पहनकर देखें।

फ़ाइलें देखने के लिए तैयार? चलिए शुरू करते हैं।

Armor कैसे काम करता है

हर armor हिस्से को तीन चीज़ें चाहिए:

हिस्सापैकयह क्या करता है
आइटम फ़ाइलBPयह किस slot में जाता है, कितनी सुरक्षा देता है, durability
आइकनRPinventory में छोटी तस्वीर
AttachableRPपहनने पर शरीर पर दिखने वाला 3D मॉडल और texture

हम namespace myname इस्तेमाल करते हैं। इसे हर जगह अपने namespace से बदलें।

हाथ से

स्टेप 1: आइटम फ़ाइल

BP/items/ruby_chestplate.json
{
  "format_version": "1.26.30",
  "minecraft:item": {
    "description": {
      "identifier": "myname:ruby_chestplate",
      "menu_category": {
        "category": "equipment",
        "group": "minecraft:itemGroup.name.chestplate"
      }
    },
    "components": {
      "minecraft:icon": {
        "textures": {
          "default": "myname_ruby_chestplate"
        }
      },
      "minecraft:display_name": {
        "value": "item.myname:ruby_chestplate.name"
      },
      "minecraft:max_stack_size": 1,
      "minecraft:wearable": {
        "slot": "slot.armor.chest",
        "protection": 7
      },
      "minecraft:durability": {
        "max_durability": 500
      },
      "minecraft:enchantable": {
        "slot": "armor_torso",
        "value": 12
      },
      "minecraft:repairable": {
        "repair_items": [
          {
            "items": ["myname:ruby"],
            "repair_amount": "query.max_durability * 0.25"
          }
        ]
      },
      "minecraft:tags": {
        "tags": ["minecraft:is_armor"]
      }
    }
  }
}

ज़रूरी हिस्से:

  • minecraft:wearable ही इसे armor बनाता है। slot बताता है यह कहाँ जाता है और protection बताता है कि यह आपकी health के ऊपर वाली bar में कितने armor points जोड़ता है। हर पूरा armor आइकन 2 points का होता है।
  • minecraft:durability बताता है कि टूटने से पहले यह कितने वार झेल सकता है।
  • minecraft:enchantable armor slot के नाम इस्तेमाल करता है, ताकि Protection और दूसरे armor enchantments इस पर लग सकें।
  • minecraft:repairable खिलाड़ियों को anvil पर ruby से इसे ठीक करने देता है।
  • minecraft:tags इसे armor के रूप में चिह्नित करता है।
  • minecraft:max_stack_size 1 है। armor slot में पहनने पर वैसे भी stack 1 ही होता है, लेकिन लिख देना ज़्यादा साफ़ है।

स्टेप 2: बाकी तीन हिस्से

chestplate फ़ाइल को तीन बार कॉपी करें और हर कॉपी में ये values बदलें:

हिस्साslot (wearable)slot (enchantable)तुलना के लिए Diamond protection
Helmetslot.armor.headarmor_head3
Chestplateslot.armor.chestarmor_torso8
Leggingsslot.armor.legsarmor_legs6
Bootsslot.armor.feetarmor_feet3

identifier, आइकन और display name भी बदलना याद रखें, और मैच करने वाला creative group चुनें (chestplate की जगह helmet, leggings या boots)।

स्टेप 3: पहनने वाला texture

शरीर पर armor आइकन से अलग, बड़ा texture इस्तेमाल करता है। इसका लेआउट vanilla armor फ़ाइलों जैसा होता है: एक 64x32 PNG जो शरीर के चारों तरफ़ लिपटता है। Vanilla हर सेट को दो layers में बाँटता है:

  • Layer 1 (ruby_1.png): helmet, chestplate और boots।
  • Layer 2 (ruby_2.png): leggings।
RP/textures/models/armor/ruby_1.png
64x32 PNG: the helmet, chestplate and boots parts
RP/textures/models/armor/ruby_2.png
64x32 PNG: the leggings parts

लेआउट सही पाने का सबसे आसान तरीका है vanilla diamond_1.png और diamond_2.png से शुरू करके उन पर पेंट करना। पेंटिंग टिप्स के लिए Pixel textures देखें।

स्टेप 4: attachable

attachable गेम को बताता है कि आइटम पहनने या पकड़ने पर खिलाड़ी पर क्या दिखाना है। अपने रिसोर्स पैक में एक attachables फ़ोल्डर बनाएँ:

RP/attachables/ruby_chestplate.json
{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "myname:ruby_chestplate",
      "materials": {
        "default": "armor",
        "enchanted": "armor_enchanted"
      },
      "textures": {
        "default": "textures/models/armor/ruby_1",
        "enchanted": "textures/misc/enchanted_actor_glint"
      },
      "geometry": {
        "default": "geometry.humanoid.armor.chestplate"
      },
      "scripts": {
        "parent_setup": "variable.chest_layer_visible = 0.0;"
      },
      "render_controllers": ["controller.render.armor"]
    }
  }
}

लाइन दर लाइन:

  1. identifier बिल्कुल आइटम की ID जैसा होना चाहिए। इसी से गेम attachable को आइटम से जोड़ता है।
  2. materials और enchanted texture से armor enchant होने पर बैंगनी चमक दिखती है।
  3. textures.default आपका पहनने वाला texture है, .png के बिना।
  4. geometry built-in vanilla armor मॉडल इस्तेमाल करता है, इसलिए आपको 3D मॉडल बनाने की ज़रूरत नहीं।
  5. parent_setup शरीर के उस हिस्से के लिए vanilla armor layer छिपाता है, ताकि आपके armor के ऊपर कुछ और न दिखे।
  6. render_controllers vanilla armor कंट्रोलर इस्तेमाल करता है।

बाकी हिस्सों के लिए, तीन values बदलें:

हिस्साgeometryparent_setupTexture
Helmetgeometry.humanoid.armor.helmetvariable.helmet_layer_visible = 0.0;ruby_1
Chestplategeometry.humanoid.armor.chestplatevariable.chest_layer_visible = 0.0;ruby_1
Leggingsgeometry.humanoid.armor.leggingsvariable.leg_layer_visible = 0.0;ruby_2
Bootsgeometry.humanoid.armor.bootsvariable.boot_layer_visible = 0.0;ruby_1

स्टेप 5: icons और नाम

item_texture.json में (texture_data के अंदर) हर हिस्से के लिए एक आइकन जोड़ें, और 16x16 icons को RP/textures/items/ में सेव करें:

RP/textures/item_texture.json
"myname_ruby_helmet": { "textures": "textures/items/ruby_helmet" },
"myname_ruby_chestplate": { "textures": "textures/items/ruby_chestplate" },
"myname_ruby_leggings": { "textures": "textures/items/ruby_leggings" },
"myname_ruby_boots": { "textures": "textures/items/ruby_boots" }
RP/texts/en_US.lang
item.myname:ruby_helmet.name=Ruby Helmet
item.myname:ruby_chestplate.name=Ruby Chestplate
item.myname:ruby_leggings.name=Ruby Leggings
item.myname:ruby_boots.name=Ruby Boots

टेस्ट करें

  1. पैक को किसी world में लोड करें (देखें Export और install)।
  2. हर हिस्से के लिए /give चलाएँ, उदाहरण के लिए /give @s myname:ruby_chestplate।
  3. इसे पहनें और armor bar देखें। बाहर से देखने के लिए PC पर F5 दबाएँ, या settings में camera view बदलें।

Armor दिख नहीं रहा?

अगर armor bar बढ़ती है लेकिन armor दिखता नहीं, तो BP ठीक है और दिक्कत attachable में है। जाँचें कि attachable का identifier आइटम ID से मैच करता है और texture path सही है।

जब कुछ गड़बड़ हो

आपको क्या दिखता हैसबसे संभावित कारण
आप इसे पहन नहीं पातेminecraft:wearable नहीं है या slot की spelling गलत है
पहनने पर यह दिखता नहींattachable identifier या texture path गलत है
यह बिखरा हुआ दिखता हैपहनने वाले texture का लेआउट vanilla 64x32 armor texture जैसा नहीं है, या हिस्सा गलत layer इस्तेमाल कर रहा है
शरीर पर गुलाबी और कालाattachable में texture path ऐसी फ़ाइल की तरफ़ point करता है जो मौजूद नहीं है

और समाधान Troubleshooting में हैं। आगे, Crafting और furnace रेसिपी में खिलाड़ियों को सेट craft करने दें, या इसके साथ एक Ruby Sword बनाएँ।

आइटम: गाइड

We use cookies to improve your experience and analyse site traffic. Learn more