How can I give a named squid egg to a player?

How can I give a named squid egg to a player? - Close Up of Ramen Burger

I am running Minecraft 1.9 and I am trying to give the player a squid egg with a custom name of "Create Script".

This is the command I have used:

/give chrisdude011 minecraft:spawn_egg 1 94 {EntityTag:{id:"Squid",CustomName:"Create Script",ench:[]}}

However, this only gives me the spawn squid egg with nothing else.



Best Answer

The squid is indeed spawned with the specified custom name. If you are talking about the enchantment overlay (via ench:[]), you specified it in the wrong depth, causing it to be potential entity data instead of item data.

As well, spawn eggs do not use Damage values anymore, thus a value of 94 is invalid and will default back to 0.

Fixed command, moving ench:[] to the root of the tag tag:

/give chrisdude011 minecraft:spawn_egg 1 0 {ench:[],EntityTag:{id:"Squid",CustomName:"Create Script"}}

For the display name of the item itself, you use the Name string inside the display compound. Example:

/give chrisdude011 minecraft:stone 1 0 {display:{Name:"Create Script"}}

With your spawn egg:

/give chrisdude011 minecraft:spawn_egg 1 0 {ench:[],display:{Name:"Create Script"},EntityTag:{id:"Squid",CustomName:"Create Script"}}



Pictures about "How can I give a named squid egg to a player?"

How can I give a named squid egg to a player? - A Can of Energy Drink over the Wooden Table
How can I give a named squid egg to a player? - Rusty Tin Can
How can I give a named squid egg to a player? - White Ceramic Bowls on White Table



How do you make a player spawn egg in Minecraft?

Spawn eggs can be obtained only in Creative mode or using commands. In Creative mode, the player can press pick block on an existing mob to obtain their respective egg. Spawn eggs are also available in the Creative inventory. There are 66 spawn eggs in Bedrock Edition and 64 spawn eggs in Java Edition.

How do you give a zombie spawn egg?

In Minecraft, there is a spawn egg called Zombie Spawn Egg that is blue with green spots. This spawn egg is an item that can not be crafted in the game. It is only available in Creative mode (not Survival mode) through the Creative Inventory menu. When you use this spawn egg, it will instantly spawn a zombie.

Is it possible to get spawn eggs in survival?

For survival, you should be able to make spawn eggs, but it will be very difficult to make them. To make the spawn eggs, you need to find a chicken egg and a head of a mob. When you craft the chicken egg and a mob head together, you get one spawn egg for the mob you had the head of.



Minecraft:Can It Breed Ep.4-Squids(Leave Suggestions)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: alleksana, Erik Mclean, Elizabeth Iris, Dotun Abu