minecraft:spawn_on_death आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:spawn_on_death एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। इसके मरने पर नई एंटिटीज़ spawn करता है, जैसे slime का छोटी slimes में बँटना।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
entity_to_spawn | string | "self" | Spawn होने वाली एंटिटी; इसी एंटिटी की और copies spawn करने के लिए इसे छोड़ दें। |
spawn_method | string | "spawned" | नई एंटिटीज़ कैसे बनती हैं: born, spawned या summoned। |
spawn_amount | integer | 1 | कितनी एंटिटीज़ spawn करनी हैं। |
inherit_parent_name | boolean | true | true होने पर नई एंटिटीज़ मरने वाली का custom नाम रखती हैं। |
additional_spawn_range | IntRange | {"max":0,"min":0} | Spawn amount के ऊपर जुड़ने वाली एंटिटीज़ की random अतिरिक्त संख्या। |
filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | कुछ भी spawn होने के लिए true होनी ज़रूरी शर्तें। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:spawn_on_death": {
"entity_to_spawn": "self",
"spawn_method": "spawned",
"spawn_amount": 1,
"inherit_parent_name": true,
"additional_spawn_range": {
"max": 0,
"min": 0
},
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
}
}
}