/summon NBT के साथ: उपकरण, विशेषताएँ और टैग जो मॉब के व्यवहार को तय करते हैं
किसी मॉब को summon करना बस एक शब्द का काम है। उसके उपकरण बनाए रखने, despawn न होने, न जलने और भटकने से रोकने के लिए छह विशिष्ट टैग लगते हैं। यहाँ बताया गया है कि प्रत्येक क्या करता है।
/summon zombie works. A zombie that keeps its armour, stands still, survives daylight and never despawns needs six more tags, and they are not discoverable from the command help.
छह महत्वपूर्ण टैग
/summon zombie ~ ~ ~ {PersistenceRequired:1b,NoAI:1b,Silent:1b,Invulnerable:1b,
CustomName:'"Guard"',CustomNameVisible:1b}
| टैग | प्रभाव |
|---|---|
PersistenceRequired:1b | कभी despawn नहीं होता। मैप-मेकिंग के लिए सबसे महत्वपूर्ण |
NoAI:1b | फ़्रीज़ — कोई हलचल नहीं, कोई हमला नहीं, कोई गुरुत्वाकर्षण नहीं |
NoGravity:1b | तैरता है, लेकिन अपना AI बनाए रखता है |
Silent:1b | मॉब की कोई आवाज़ नहीं |
Invulnerable:1b | इसके अलावा हर चीज़ से सुरक्षित /kill and the void |
Glowing:1b | दीवारों के आर-पार आउटलाइन |
PersistenceRequired and naming are related but not the same: a name tag also prevents despawn, but CustomName set via NBT नहीं करता जब तक आप जोड़ते नहीं PersistenceRequired. That trips up nearly everyone building a shop NPC.
उपकरण जो ड्रॉप नहीं होते
{HandItems:[{id:"minecraft:diamond_sword",count:1},{}],
ArmorItems:[{},{},{},{id:"minecraft:diamond_helmet",count:1}],
HandDropChances:[0f,0f],ArmorDropChances:[0f,0f,0f,0f]}
दो बातें ध्यान देने योग्य। ArmorItems is ordered feet, legs, chest, head — नीचे से ऊपर, जो कि आर्मर सूचीबद्ध करने के सामान्य तरीके का उल्टा है। और खाली {} entries are required placeholders; you cannot skip slots.
ड्रॉप संभावनाएँ फ़्लोट हैं 0f to 1f. Anything above 1f guarantees the drop और आइटम के enchantments और durability को बरकरार रखता है।
विशेषताएँ
{attributes:[{id:"minecraft:max_health",base:40},
{id:"minecraft:movement_speed",base:0.35}]}
सेटिंग max_health does नहीं मॉब को नए अधिकतम स्वास्थ्य तक ठीक नहीं करता — यह अपने पुराने स्वास्थ्य मान पर स्पॉन होगा और क्षतिग्रस्त दिखेगा। जोड़ें Health:40f alongside it.
सामान्य ids: max_health, movement_speed, attack_damage, armor, knockback_resistance, follow_range, scale.
Passengers नीचे की ओर स्टैक होते हैं
{Passengers:[{id:"minecraft:skeleton",Passengers:[{id:"minecraft:chicken"}]}]}
सबसे बाहरी एंटिटी सबसे नीचे वाली होती है। नेस्टिंग Passengers inside Passengers builds the tower upward. Each rider needs its own full NBT if you want it configured.
Bedrock अलग है
Bedrock में कोई NBT argument नहीं है /summon. The syntax is /summon <entity> <pos> <yRot> <xRot> <spawnEvent> <name>, and behaviour is set through spawn events rather than tags. A Java NBT blob pasted into Bedrock will not run.
एक मॉब चुनें और इन टैग्स को विज़ुअली टॉगल करें — आर्मर स्लॉट क्रम आपके लिए संभाला जाएगा — इसमें /summon जनरेटर.