minecraft:behavior.celebrate_survive आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.celebrate_survive एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। AI goal जिससे मॉब आतिशबाज़ी के साथ जश्न मनाता है, जैसे raid हारने के बाद villagers।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
duration | number | 30 | जश्न कितने सेकंड चलता है। |
fireworks_interval | FloatRange | {"max":20,"min":10} | आतिशबाज़ियों के बीच रैंडम इंतज़ार की रेंज, सेकंड में। |
on_celebration_end_event | ActorDefinitionTrigger | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | जश्न का समय खत्म होने पर चलने वाला इवेंट। |
priority | integer | 0 | कम नंबर पहले चलता है: जब दो goals आपस में टकराते हैं, तो छोटी priority वाला जीतता है।रेंज: 0 से … |
control_flags | Goal's control flags[] | कोई नहीं | यह goal शरीर के किन हिस्सों (move, look, jump) को अपने कब्ज़े में लेता है, ताकि एक ही हिस्से इस्तेमाल करने वाले goals साथ में न चलें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:behavior.celebrate_survive": {
"duration": 30,
"fireworks_interval": {
"max": 20,
"min": 10
},
"on_celebration_end_event": {
"event": "",
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"target": "self"
},
"priority": 0,
"control_flags": []
}
}