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

minecraft:behavior.slime_random_direction

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

ओवरव्यू

minecraft:behavior.slime_random_direction एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को बीच-बीच में किसी नई रैंडम दिशा में मोड़ता है, जैसे slime भटकते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
add_random_time_rangeinteger3इंतज़ार में रैंडम तरीके से चुने गए ज़्यादा से ज़्यादा इतने अतिरिक्त सेकंड जुड़ते हैं।
turn_rangeinteger360नई दिशा चुनते समय मॉब सबसे बड़ा कितने डिग्री का मोड़ ले सकता है।
min_change_direction_timenumber2नई दिशा चुनने से पहले मॉब का सबसे कम इंतज़ार, सेकंड में।
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.slime_random_direction": {
    "add_random_time_range": 3,
    "turn_range": 360,
    "min_change_direction_time": 2,
    "priority": 0,
    "control_flags": []
  }
}

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