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

minecraft:behavior.move_around_target

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

ओवरव्यू

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

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
destination_position_rangeFloatRange{"max":8,"min":4}टारगेट से सबसे कम और सबसे ज़्यादा दूरी जहां मॉब जाने की जगह ढूंढता है।
movement_speednumber0.6मॉब चुनी गई जगह तक कितनी तेज़ जाता है।
destination_pos_spread_degreesnumber90टारगेट के पीछे चुनी गई जगह कितने डिग्री तक बदल सकती है। 0 पर ठीक पीछे की जगह चुनी जाती है।
filtersFilter Group{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}goal शुरू होने से पहले पास होने वाली शर्तें।
height_difference_limitnumber10मॉब बहुत पास तभी माना जाता है जब टारगेट से ऊंचाई का अंतर इससे कम हो।रेंज: 0 से …
horizontal_search_distanceinteger5मॉब अगल-बगल कितने ब्लॉक तक टारगेट से दूर की जगह ढूंढता है।रेंज: 0 से …
vertical_search_distanceinteger5मॉब ऊपर-नीचे कितने ब्लॉक तक टारगेट से दूर की जगह ढूंढता है।रेंज: 0 से …
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.move_around_target": {
    "destination_position_range": {
      "max": 8,
      "min": 4
    },
    "movement_speed": 0.6,
    "destination_pos_spread_degrees": 90,
    "filters": {
      "AND": null,
      "NOT": null,
      "OR": null,
      "all": null,
      "all_of": null,
      "any": null,
      "any_of": null,
      "none_of": null
    },
    "height_difference_limit": 10,
    "horizontal_search_distance": 5,
    "vertical_search_distance": 5,
    "priority": 0
  }
}

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