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

minecraft:behavior.take_flower

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

ओवरव्यू

minecraft:behavior.take_flower एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को offer_flower से फूल दे रहे मॉब से फूल लेने देता है। Villager बच्चे इसे iron golem के साथ इस्तेमाल करते हैं।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
speed_multipliernumber0.5यह goal चलते समय मॉब की स्पीड बढ़ाता या घटाता है: 1 मतलब सामान्य स्पीड।रेंज: 0 से …
filtersFilter Group{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null}goal शुरू होने के लिए ये शर्तें सही होनी चाहिए।
min_wait_timenumber4फूल लेने से पहले सबसे कम रैंडम इंतज़ार, सेकंड में।रेंज: 0 से …
max_wait_timenumber20फूल लेने से पहले सबसे ज़्यादा रैंडम इंतज़ार, सेकंड में।रेंज: 0 से …
search_areavec3[6,2,6]मॉब के आसपास उस box का साइज़ जिसमें फूल दे रहा मॉब ढूँढा जाता है।
max_rotation_xnumber30दूसरे मॉब को देखते समय मॉब ऊपर या नीचे कितने डिग्री तक झुक सकता है।
max_head_rotation_ynumber30दूसरे मॉब को देखते समय मॉब अपना सिर दाएँ-बाएँ कितने डिग्री तक घुमा सकता है।
min_distance_to_targetnumber2दूसरे मॉब तक पहुँचा हुआ माने जाने के लिए मॉब को कितना पास पहुँचना होगा।
on_take_flowerActorDefinitionTrigger{"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"}मॉब के फूल लेने पर चलने वाला event।
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.take_flower": {
    "speed_multiplier": 0.5,
    "filters": {
      "AND": null,
      "NOT": null,
      "OR": null,
      "all": null,
      "all_of": null,
      "any": null,
      "any_of": null,
      "none_of": null
    },
    "min_wait_time": 4,
    "max_wait_time": 20,
    "search_area": [
      6,
      2,
      6
    ],
    "max_rotation_x": 30,
    "max_head_rotation_y": 30,
    "min_distance_to_target": 2
  }
}

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