#Getting exact spawn egg of a mob

1 messages · Page 1 of 1 (latest)

simple steppe
#

I've been working on a lil project. And for that I need to be able to get spawn eggs of mobs or a summon command of mobs in the wild. What I mean is let's say there's a zombie with diamond armor and a diamond sword. How do I get the summon / mob egg of that mob? How do I copy over the nbt data of one mob to a summon/mob egg
?

lament vectorBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1724498981:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

ocean geyser
#

use mcstacker

gray parrotBOT
#
MCStacker
About

MCStacker is a Minecraft command generator, focusing on generating commands with NBT/item components easily without having to write long commands by hand.

ocean geyser
#

generate a /give command

#

make it give a spawn egg

#

and then configure the rest however you want

cunning trellis
#

since there is no copy_entity_data function the only way I can think of to set the entity_data is to run a data get command in a command block and then copy the previous output to a storage, remove the timestamp and add it in via a macro

ocean geyser
ocean geyser
cunning trellis
ocean geyser
#

and its so much less complicated and much performant than doing it the way you suggested