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

minecraft:behavior.swim_idle

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

ओवरव्यू

minecraft:behavior.swim_idle एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। तैरने वाले मॉब को थोड़ी देर रुककर एक जगह तैरने देता है। मॉब का पानी में होना ज़रूरी है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
idle_timenumber5मॉब कितने सेकंड खाली रुका रहता है।
success_ratenumber0.1मॉब के खाली रुकने की संभावना, 0 से 1 तक।
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.swim_idle": {
    "idle_time": 5,
    "success_rate": 0.1,
    "priority": 0,
    "control_flags": []
  }
}

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