1. विकी
  2. /एंटिटी
  3. /minecraft:spawn_entity

minecraft:spawn_entity

इसे हाथ से नहीं लिखना चाहते? GodCraft एक स्विच से minecraft:spawn_entity आपके लिए सेट कर देता है।Get GodCraft

ओवरव्यू

minecraft:spawn_entity एक एंटिटी कंपोनेंट है: यह कस्टम मॉब के components ऑब्जेक्ट में, या उसके किसी component group में जाता है। एंटिटी समय-समय पर कोई आइटम गिराती है या दूसरी एंटिटी spawn करती है, जैसे chicken अंडे देती है।

फ़ील्ड

फ़ील्डटाइपडिफ़ॉल्टविवरण
filtersMinecraft Filterकोई नहींकुछ भी spawn होने के लिए true होनी ज़रूरी शर्तें।
max_wait_timeInteger"600"अगले spawn से पहले सबसे लंबा इंतज़ार, सेकंड में।
min_wait_timeInteger"300"अगले spawn से पहले सबसे छोटा इंतज़ार, सेकंड में।
num_to_spawnInteger"1"हर बार कितनी एंटिटीज़ आती हैं।
should_leashBoolean"false"true होने पर नई एंटिटी इससे leash होती है।
single_useBoolean"false"true होने पर यह सिर्फ एक बार spawn करता है, फिर कभी नहीं।
spawn_entityStringकोई नहींSpawn होने वाली एंटिटी; उसकी जगह spawn_item गिराने के लिए खाली छोड़ें।
spawn_eventString"minecraft:entity_born"नई spawn हुई एंटिटी पर चलने वाला event।
spawn_itemString"egg"गिराने वाला आइटम, जैसे minecraft:egg।
spawn_item_eventTriggerकोई नहींआइटम गिरने पर इस एंटिटी पर चलने वाला event।
spawn_methodString"born"नई एंटिटी कैसे बनती है, जैसे born या spawned।
spawn_soundString"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"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more