minecraft:behavior.follow_caravan आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.follow_caravan एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब मॉब्स की कतार में शामिल होकर आगे वाले के पीछे चलता है, जैसे lead पर बंधे llamas।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
speed_multiplier | number | 1 | caravan के पीछे चलते समय speed multiplier। |
entity_count | integer | 1 | एक caravan में कितने मॉब्स हो सकते हैं। |
entity_types | EntityTypes | कोई नहीं | यह मॉब caravan में किन एंटिटीज़ के पीछे चल सकता है। |
priority | integer | 0 | कम नंबर पहले चलता है: जब दो goals आपस में टकराते हैं, तो छोटी priority वाला जीतता है।रेंज: 0 से … |
control_flags | Goal's control flags[] | कोई नहीं | यह goal शरीर के किन हिस्सों (move, look, jump) को अपने कब्ज़े में लेता है, ताकि एक ही हिस्से इस्तेमाल करने वाले goals साथ में न चलें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:behavior.follow_caravan": {
"speed_multiplier": 1,
"entity_count": 1,
"entity_types": {},
"priority": 0,
"control_flags": []
}
}