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

minecraft:behavior.avoid_block

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

ओवरव्यू

minecraft:behavior.avoid_block एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब कुछ खास ब्लॉक्स से दूर हटता है, जैसे hoglins warped fungus से बचते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
walk_speed_modifiernumber1दूर चलते समय speed multiplier। 1.0 पर सामान्य स्पीड रहती है।
sprint_speed_modifiernumber1दूर दौड़ते समय speed multiplier। 1.0 पर सामान्य स्पीड रहती है।
search_rangeinteger0मॉब अगल-बगल कितने ब्लॉक तक बचने वाले ब्लॉक्स ढूंढता है।
search_heightinteger0मॉब ऊपर-नीचे कितने ब्लॉक तक बचने वाले ब्लॉक्स ढूंढता है।
tick_intervalinteger1goal कितने ticks में एक बार जांचता है कि उसे शुरू होना चाहिए या नहीं।
target_selection_methodstring"nearest"बचने वाला ब्लॉक कैसे चुना जाए, जैसे सबसे पास वाला।
on_escapeActorDefinitionTrigger[]कोई नहींमॉब के ब्लॉक से बच निकलने पर चलने वाले इवेंट्स।
target_blocksItem Descriptor[]कोई नहींब्लॉक्स जिनसे यह मॉब दूर रहता है।
avoid_block_soundLevelSoundEvent"undefined"ब्लॉक से बचते समय बजने वाला sound event।
sound_intervalFloatRange{"max":8,"min":3}बचने की आवाज़ों के बीच रैंडम इंतज़ार की रेंज, सेकंड में।
priorityinteger0कम नंबर पहले चलता है: जब दो goals आपस में टकराते हैं, तो छोटी priority वाला जीतता है।रेंज: 0 से …
control_flagsGoal's control flags[]कोई नहींयह goal शरीर के किन हिस्सों (move, look, jump) को अपने कब्ज़े में लेता है, ताकि एक ही हिस्से इस्तेमाल करने वाले goals साथ में न चलें।

उदाहरण

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

BP/entities/<name>.json
{
  "minecraft:behavior.avoid_block": {
    "walk_speed_modifier": 1,
    "sprint_speed_modifier": 1,
    "search_range": 0,
    "search_height": 0,
    "tick_interval": 1,
    "target_selection_method": "nearest",
    "on_escape": [],
    "target_blocks": []
  }
}

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