1. विकी
  2. /एंटिटी
  3. /minecraft:inventory

minecraft:inventory

इसे हाथ से नहीं लिखना चाहते? GodCraft एक स्विच से minecraft:inventory आपके लिए सेट कर देता है।Get GodCraft

ओवरव्यू

minecraft:inventory एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एंटिटी को आइटम रखने वाली inventory देता है, जैसे donkey पर chest या minecart।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
additional_slots_per_strengthInteger"0"Strength के हर point पर मिलने वाले अतिरिक्त slots।
can_be_siphoned_fromBoolean"false"Hoppers को इसमें से आइटम खींचने देता है।
container_typeString"none"Container screen का प्रकार, जैसे horse, inventory, container या hopper।
inventory_sizeInteger"5"Slots की संख्या।
privateBoolean"false"true होने पर एंटिटी के मरने पर आइटम नहीं गिरते।
restrict_to_ownerBoolean"false"सिर्फ मालिक ही inventory खोल सकता है।

उदाहरण

BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):

BP/entities/<name>.json
{
  "minecraft:inventory": {
    "additional_slots_per_strength": "0",
    "can_be_siphoned_from": "false",
    "container_type": "none",
    "inventory_size": "5",
    "private": "false",
    "restrict_to_owner": "false"
  }
}

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