minecraft:behavior.take_flower आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.take_flower एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को offer_flower से फूल दे रहे मॉब से फूल लेने देता है। Villager बच्चे इसे iron golem के साथ इस्तेमाल करते हैं।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
speed_multiplier | number | 0.5 | यह goal चलते समय मॉब की स्पीड बढ़ाता या घटाता है: 1 मतलब सामान्य स्पीड।रेंज: 0 से … |
filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | goal शुरू होने के लिए ये शर्तें सही होनी चाहिए। |
min_wait_time | number | 4 | फूल लेने से पहले सबसे कम रैंडम इंतज़ार, सेकंड में।रेंज: 0 से … |
max_wait_time | number | 20 | फूल लेने से पहले सबसे ज़्यादा रैंडम इंतज़ार, सेकंड में।रेंज: 0 से … |
search_area | vec3 | [6,2,6] | मॉब के आसपास उस box का साइज़ जिसमें फूल दे रहा मॉब ढूँढा जाता है। |
max_rotation_x | number | 30 | दूसरे मॉब को देखते समय मॉब ऊपर या नीचे कितने डिग्री तक झुक सकता है। |
max_head_rotation_y | number | 30 | दूसरे मॉब को देखते समय मॉब अपना सिर दाएँ-बाएँ कितने डिग्री तक घुमा सकता है। |
min_distance_to_target | number | 2 | दूसरे मॉब तक पहुँचा हुआ माने जाने के लिए मॉब को कितना पास पहुँचना होगा। |
on_take_flower | ActorDefinitionTrigger | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | मॉब के फूल लेने पर चलने वाला event। |
priority | integer | 0 | जब कई goal एक साथ चलना चाहें तो तय करता है कि कौन चलेगा: छोटी संख्या वाला पहले चलता है।रेंज: 0 से … |
control_flags | Goal'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
}
}