minecraft:inventory आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:inventory एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एंटिटी को आइटम रखने वाली inventory देता है, जैसे donkey पर chest या minecart।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
additional_slots_per_strength | Integer | "0" | Strength के हर point पर मिलने वाले अतिरिक्त slots। |
can_be_siphoned_from | Boolean | "false" | Hoppers को इसमें से आइटम खींचने देता है। |
container_type | String | "none" | Container screen का प्रकार, जैसे horse, inventory, container या hopper। |
inventory_size | Integer | "5" | Slots की संख्या। |
private | Boolean | "false" | true होने पर एंटिटी के मरने पर आइटम नहीं गिरते। |
restrict_to_owner | Boolean | "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"
}
}