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

minecraft:behavior.transport_items

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

ओवरव्यू

minecraft:behavior.transport_items एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को एक तरह के container से दूसरे तक आइटम ढुलवाता है, जैसे copper golem copper chests से आइटम निकालकर दूसरी chests में रखता है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
source_container_typesBlock Descriptor[]कोई नहींमॉब किन container ब्लॉक से आइटम लेता है।
destination_container_typesBlock Descriptor[]कोई नहींमॉब किन container ब्लॉक में आइटम रखता है।
max_stack_sizeinteger64मॉब एक बार में container से ज़्यादा से ज़्यादा कितने आइटम लेता है।रेंज: 1 से 64
interaction_timenumber3हर बार container पर मॉब कितने सेकंड बिताता है।रेंज: 0 से …
allow_simultaneous_interactionbooleanfalseतय करता है कि कोई दूसरी entity container इस्तेमाल कर रही हो तो मॉब उसके खाली होने का इंतज़ार करे या नहीं।
search_strategyenum"random"मॉब container कैसे चुनता है: सबसे पास वाला या रेंज में कोई रैंडम।इनमें से एक: nearest, random
search_distanceVec2[64,32]मॉब containers के लिए दाएँ-बाएँ और ऊपर-नीचे कितनी दूर तक देखता है।
max_visited_containersinteger16ब्रेक लेकर फिर से शुरू करने से पहले मॉब कितने containers आज़माता है।रेंज: 0 से …
initial_cooldowninteger0spawn होने या यह goal मिलने के बाद शुरू करने से पहले मॉब कितनी देर इंतज़ार करता है।रेंज: 0 से …
idle_cooldowninteger20कोई सही container न मिलने पर goal कितने सेकंड रुका रहता है।रेंज: 0 से …
place_strategyenum"any"container में आइटम कब डालने हैं: जगह हो तो हमेशा, सिर्फ़ तब जब उसमें पहले से वही आइटम हो, या जब उसमें वही आइटम हो या वह खाली हो।इनमें से एक: any, with_matching, with_matching_or_empty
allowed_itemsItem Descriptor[]कोई नहींसिर्फ़ यही आइटम मॉब ढो सकता है। सब कुछ अनुमति देने के लिए इसे और disallowed_items को खाली छोड़ें।
disallowed_itemsItem Descriptor[]कोई नहींवे आइटम जिन्हें मॉब नहीं ढो सकता। इसे या allowed_items में से एक ही इस्तेमाल करें, दोनों नहीं।
priorityinteger0जब कई goal एक साथ चलना चाहें तो तय करता है कि कौन चलेगा: छोटी संख्या वाला पहले चलता है।रेंज: 0 से …
control_flagsGoal'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
  }
}

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