minecraft:spawn_entity आपके लिए सेट कर देता है।Get GodCraftओवरव्यू
minecraft:spawn_entity एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एंटिटी समय-समय पर कोई आइटम गिराती है या दूसरी एंटिटी spawn करती है, जैसे chicken अंडे देती है।
फ़ील्ड
| फ़ील्ड | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
filters | Minecraft Filter | कोई नहीं | कुछ भी spawn होने के लिए true होनी ज़रूरी शर्तें। |
max_wait_time | Integer | "600" | अगले spawn से पहले सबसे लंबा इंतज़ार, सेकंड में। |
min_wait_time | Integer | "300" | अगले spawn से पहले सबसे छोटा इंतज़ार, सेकंड में। |
num_to_spawn | Integer | "1" | हर बार कितनी एंटिटीज़ आती हैं। |
should_leash | Boolean | "false" | true होने पर नई एंटिटी इससे leash होती है। |
single_use | Boolean | "false" | true होने पर यह सिर्फ एक बार spawn करता है, फिर कभी नहीं। |
spawn_entity | String | कोई नहीं | Spawn होने वाली एंटिटी; उसकी जगह spawn_item गिराने के लिए खाली छोड़ें। |
spawn_event | String | "minecraft:entity_born" | नई spawn हुई एंटिटी पर चलने वाला event। |
spawn_item | String | "egg" | गिराने वाला आइटम, जैसे minecraft:egg। |
spawn_item_event | Trigger | कोई नहीं | आइटम गिरने पर इस एंटिटी पर चलने वाला event। |
spawn_method | String | "born" | नई एंटिटी कैसे बनती है, जैसे born या spawned। |
spawn_sound | String | "plop" | कुछ spawn होने पर बजने वाली आवाज़। |
उदाहरण
BP/entities/<name>.json के components ऑब्जेक्ट के अंदर (मान डिफ़ॉल्ट या placeholder हैं):
BP/entities/<name>.json
{
"minecraft:spawn_entity": {
"filters": {},
"max_wait_time": "600",
"min_wait_time": "300",
"num_to_spawn": "1",
"should_leash": "false",
"single_use": "false",
"spawn_entity": "",
"spawn_event": "minecraft:entity_born"
}
}