minecraft:behavior.transport_items आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.transport_items एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को एक तरह के container से दूसरे तक आइटम ढुलवाता है, जैसे copper golem copper chests से आइटम निकालकर दूसरी chests में रखता है।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
source_container_types | Block Descriptor[] | कोई नहीं | मॉब किन container ब्लॉक से आइटम लेता है। |
destination_container_types | Block Descriptor[] | कोई नहीं | मॉब किन container ब्लॉक में आइटम रखता है। |
max_stack_size | integer | 64 | मॉब एक बार में container से ज़्यादा से ज़्यादा कितने आइटम लेता है।रेंज: 1 से 64 |
interaction_time | number | 3 | हर बार container पर मॉब कितने सेकंड बिताता है।रेंज: 0 से … |
allow_simultaneous_interaction | boolean | false | तय करता है कि कोई दूसरी entity container इस्तेमाल कर रही हो तो मॉब उसके खाली होने का इंतज़ार करे या नहीं। |
search_strategy | enum | "random" | मॉब container कैसे चुनता है: सबसे पास वाला या रेंज में कोई रैंडम।इनमें से एक: nearest, random |
search_distance | Vec2 | [64,32] | मॉब containers के लिए दाएँ-बाएँ और ऊपर-नीचे कितनी दूर तक देखता है। |
max_visited_containers | integer | 16 | ब्रेक लेकर फिर से शुरू करने से पहले मॉब कितने containers आज़माता है।रेंज: 0 से … |
initial_cooldown | integer | 0 | spawn होने या यह goal मिलने के बाद शुरू करने से पहले मॉब कितनी देर इंतज़ार करता है।रेंज: 0 से … |
idle_cooldown | integer | 20 | कोई सही container न मिलने पर goal कितने सेकंड रुका रहता है।रेंज: 0 से … |
place_strategy | enum | "any" | container में आइटम कब डालने हैं: जगह हो तो हमेशा, सिर्फ़ तब जब उसमें पहले से वही आइटम हो, या जब उसमें वही आइटम हो या वह खाली हो।इनमें से एक: any, with_matching, with_matching_or_empty |
allowed_items | Item Descriptor[] | कोई नहीं | सिर्फ़ यही आइटम मॉब ढो सकता है। सब कुछ अनुमति देने के लिए इसे और disallowed_items को खाली छोड़ें। |
disallowed_items | Item Descriptor[] | कोई नहीं | वे आइटम जिन्हें मॉब नहीं ढो सकता। इसे या allowed_items में से एक ही इस्तेमाल करें, दोनों नहीं। |
priority | integer | 0 | जब कई goal एक साथ चलना चाहें तो तय करता है कि कौन चलेगा: छोटी संख्या वाला पहले चलता है।रेंज: 0 से … |
control_flags | Goal's control flags[] | कोई नहीं | बताता है कि यह goal शरीर के किन हिस्सों का कंट्रोल लेता है (जैसे move, look या jump), ताकि एक ही हिस्से वाले goal साथ में न चलें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:behavior.transport_items": {
"source_container_types": [],
"destination_container_types": [],
"max_stack_size": 64,
"interaction_time": 3,
"allow_simultaneous_interaction": false,
"search_strategy": "random",
"search_distance": [
64,
32
],
"max_visited_containers": 16
}
}