minecraft:behavior.nap आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:behavior.nap एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। मॉब को बीच-बीच में लेटकर झपकी लेने देता है, जैसे दिन में सोती लोमड़ी। कुछ खास मॉब पास आने पर वह जाग जाता है।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
cooldown_min | number | 0 | मॉब के दोबारा झपकी लेने से पहले सबसे कम इंतज़ार, सेकंड में। |
cooldown_max | number | 0 | मॉब के दोबारा झपकी लेने से पहले सबसे ज़्यादा इंतज़ार, सेकंड में। |
mob_detect_dist | number | 6 | मॉब उसे जगा सकने वाले पास के मॉब के लिए दाएँ-बाएँ कितनी दूर तक जाँचता है। |
mob_detect_height | number | 6 | मॉब उसे जगा सकने वाले पास के मॉब के लिए ऊपर-नीचे कितनी दूर तक जाँचता है। |
can_nap_filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | मॉब के सोने के लिए ये शर्तें सही होनी चाहिए। |
wake_mob_exceptions | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | इन filters से मेल खाने वाले मॉब उसे नहीं जगाएँगे। |
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.nap": {
"cooldown_min": 0,
"cooldown_max": 0,
"mob_detect_dist": 6,
"mob_detect_height": 6,
"can_nap_filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"wake_mob_exceptions": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"priority": 0,
"control_flags": []
}
}