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

minecraft:behavior.swim_up_for_breath

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

ओवरव्यू

minecraft:behavior.swim_up_for_breath एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। साँस खत्म होने वाली हो तो मॉब को हवा ढूँढने के लिए ऊपर तैराता है। इसके लिए minecraft:breathable चाहिए। डॉल्फ़िन और कछुए इसका इस्तेमाल करते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
speed_modnumber1.4यह goal चलते समय मॉब की स्पीड बढ़ाता या घटाता है: 1 मतलब सामान्य स्पीड।
search_radiusinteger4मॉब अपने आसपास air ब्लॉक कितनी दूर तक ढूँढता है।
search_heightinteger16मॉब अपने ऊपर हवा कितनी दूर तक ढूँढता है। न मिले तो वह सीधे इतने ब्लॉक ऊपर तैरता है।
material_typestring"water"मॉब किस तरल में तैरता है: "water", "lava" या "any"। air ब्लॉक इसी तरल के ऊपर होना चाहिए।
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_up_for_breath": {
    "speed_mod": 1.4,
    "search_radius": 4,
    "search_height": 16,
    "material_type": "water",
    "priority": 0,
    "control_flags": []
  }
}

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