2

How to disable chickens from laying eggs?

Bob19's Avatar Bob199/22/19 2:53 pm history
2 emeralds 2.9k 6
9/27/2019 4:21 am
ShelLuser's Avatar ShelLuser
I've got some chickens acting as rope into a cave going between fences but they keep laying eggs. Any way to disable this or just /kill the eggs?
1.14.4 btw

EDIT:
It's an adventure map so hoppers are out.
EDIT number 2:
I've decided to change to 1.12.2 because the new coding system just all round sucks... why minecraft?
Posted by Bob19's Avatar
Bob19
Level 2 : Apprentice Crafter
0

Create an account or sign in to comment.

6

1
09/23/2019 7:39 pmhistory
Level 44 : Master Network
Star Craft Network
Star Craft Network's Avatar
stick this into a repeating command block and hide it some where /kill @e[type=egg]

if you set your gamerule randomtickspeed to 0 then plants wont grow
2
09/27/2019 4:21 am
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
The kill command would never work. Everything that gets dropped on the ground is of type Item (minecraft:item). Easily shown: just drop something on the ground and then use: /data get entity @e[type=minecraft:item,limit=1] and you'll get the data of that specific item you dropped (assuming there's nothing else on the floor ;)).

If you need a specific kind of item you'd need to use NBT tags to specify the item type.
1
09/22/2019 4:32 pm
Level 56 : Grandmaster Cake
DereC4
DereC4's Avatar
place hoppers underneath and just make it a farm
1
09/22/2019 11:24 pm
Level 2 : Apprentice Crafter
Bob19
Bob19's Avatar
I'm making an adventure map, sorry forgot to mention that.
2
09/22/2019 4:31 pm
Level 1 : New Miner
Sonic Mania
Sonic Mania's Avatar
Such command does not work for 1.14.4 (and works for 1.12.2).

On 1.12.2, change your tickspeed to 0 - which would prevent chickens from having a spawntime
1
09/23/2019 12:52 amhistory
Level 2 : Apprentice Crafter
Bob19
Bob19's Avatar
Thanks, worked a treat after I changed.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome