Command to create chicken which doesn't lay eggs
I'm working on an special project in Minecraft at the moment and I really need your help.
The thing I want to do: Use a command to spawn a chicken which doesn't lay eggs or drop anything else.
How can I do that?
Thanks in advance.
Best Answer
As far as I know this is impossible to do the on the pocket edition else you make a mod for it. On the other hand, for the pc edition it quite easy to do. Just summon in a chicken with the EggLayTime data tag. An example is
/summon Chicken ~ ~ ~ {EggLayTime:32000}
This will summon a chicken who won't lay an egg until 32000 ticks have past.
Notes:
- There are 20 ticks in a second!
- Putting the value in the negative will make the chicken immediately lay an egg as soon as it spawns.
EDIT:
To make the chicken not drop anything when it dies all you need to do is give it an invalid loot table. The data tag DeathLootTable is used here. All you need to do is give it an invalid string and the chicken won't drop anything. Example of command below
/summon Chicken ~ ~ ~ {DeathLootTable:"invalid"}
Notes:
The chicken will still drop xp. If you don't want this happening the easiest solution is to run this command.
/kill @e[type=EXOrb]
Hope this helps.
Pictures about "Command to create chicken which doesn't lay eggs"



Is it possible for a chicken to never lay an egg?
Chickens stop laying eggs for a variety of reasons. Hens may lay fewer eggs due to light, stress, poor nutrition, molt or age. Some of these reasons are natural responses, while others can be fixed with simple changes and egg laying can return to normal.How do you keep chickens from laying eggs?
8 Tips To Help Your Chickens Lay More EggsHow do you stimulate chickens to lay eggs?
Give the chickens a little scratch feed occasionally, if desired. Chickens instinctively like to scratch at the ground and pick up small seeds, insects, grit, or greens to eat. This promotes chicken's wellbeing, which promotes egg laying.How do you spawn a diamond chicken in Minecraft?
Chickens that will lay an egg in 1 tick get an eggLayer score of 2, which automatically decreased by 1 per tick until it reaches 0 again. 1 tick later, when the egg is actually laid, it is marked with a tag and transformed into a diamond using /entitydata .Unlimited Chicken In Minecraft | Pocket Edition | Unlimited Chicken By Using Command Block
More answers regarding command to create chicken which doesn't lay eggs
Answer 2
You can set the "IsChickenJockey" tag to 1, which will make it no longer lay eggs. Be sure to use a Name Tag on it, in order to prevent despawning.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Eren Li, Alison Burrell, ROMAN ODINTSOV, ROMAN ODINTSOV
