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

minecraft:behavior.panic

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

ओवरव्यू

minecraft:behavior.panic एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को चोट पहुँचाने वाले से दूर हड़बड़ी में इधर-उधर भगाता है। गाय और मुर्गी जैसे जानवर मार खाने पर इसका इस्तेमाल करते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
damage_sourcesList"[campfire, fire, fire_tick, freezing, lava, lightning, magma, soul_campfire, temperature, entity_attack, entity_explosion, fireworks, magic, projectile, ram_attack, sonic_boom, wither, mace_smash]"किस तरह के damage से मॉब घबराता है, जैसे "fire" या "entity_attack"।
forceBoolean"false"true होने पर, मॉब तब तक घबराया रहता है जब तक वह हिल न सके या goal हटा न दिया जाए।
ignore_mob_damageBoolean"false"true होने पर, दूसरे मॉब का damage कभी घबराहट नहीं लाता, भले ही वह damage_sources में हो।
prefer_waterBoolean"false"true होने पर, घबराया हुआ मॉब पानी की ओर भागने की कोशिश करता है।
speed_multiplierDecimal"1.0"यह goal चलते समय मॉब की स्पीड बढ़ाता या घटाता है: 1 मतलब सामान्य स्पीड।

उदाहरण

BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):

BP/entities/<name>.json
{
  "minecraft:behavior.panic": {
    "damage_sources": "[campfire, fire, fire_tick, freezing, lava, lightning, magma, soul_campfire, temperature, entity_attack, entity_explosion, fireworks, magic, projectile, ram_attack, sonic_boom, wither, mace_smash]",
    "force": "false",
    "ignore_mob_damage": "false",
    "prefer_water": "false",
    "speed_multiplier": "1.0"
  }
}

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