Row 1
1. [impulse] /scoreboard objectives add timer dummy
Row 2
2. [repeat] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:egg"}},tag=!egg] at @s run data merge entity @s {Tags:["egg","whiteEgg"]}
3. [chain] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:brown_egg"}},tag=!egg] at @s run data merge entity @s {Tags:["egg","brownEgg"]}
4. [chain] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:blue_egg"}},tag=!egg] at @s run data merge entity @s {Tags:["egg","blueEgg"]}
Row 3
5. [repeat] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:egg"},OnGround:1b}] at @s run summon block_display ~-.1 ~ ~-.1 {Tags:["eggBlock"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.1875f,0.3125f,0.1875f]},block_state:{Name:"minecraft:snow_block"}}
6. [chain] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:brown_egg"},OnGround:1b}] at @s run summon block_display ~-.1 ~ ~-.1 {Tags:["eggBlock"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.1875f,0.3125f,0.1875f]},block_state:{Name:"minecraft:brown_mushroom_block"}}
7. [chain] /execute as @e[type=item,nbt={Item:{count:1,id:"minecraft:blue_egg"},OnGround:1b}] at @s run summon block_display ~-.1 ~ ~-.1 {Tags:["eggBlock"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.1875f,0.3125f,0.1875f]},block_state:{Name:"minecraft:light_blue_terracotta"}}
8. [chain] /execute as @e[type=item,nbt={OnGround:1b},tag=whiteEgg] at @s run summon minecraft:interaction ~ ~ ~ {response:1b,Tags:["eggInteraction","whiteEggInteraction"],width:.1875f,height:.3125f}
9. [chain] /execute as @e[type=item,nbt={OnGround:1b},tag=brownEgg] at @s run summon minecraft:interaction ~ ~ ~ {response:1b,Tags:["eggInteraction","brownEggInteraction"],width:.1875f,height:.3125f}
10. [chain] /execute as @e[type=item,nbt={OnGround:1b},tag=blueEgg] at @s run summon minecraft:interaction ~ ~ ~ {response:1b,Tags:["eggInteraction","blueEggInteraction"],width:.1875f,height:.3125f}
11. [chain] /execute as @e[type=item,nbt={OnGround:1b},tag=egg] at @s run kill @s
Row 4
12. [repeat] /execute as @e[tag=whiteEggInteraction] at @s on target run give @p egg
13. [chain] /execute as @e[tag=brownEggInteraction] at @s on target run give @p brown_egg
14. [chain] /execute as @e[tag=blueEggInteraction] at @s on target run give @p blue_egg
15. [chain] /execute as @e[tag=eggInteraction] at @s on target run kill @e[type=minecraft:block_display,limit=1,sort=nearest,distance=..0.1875]
16. [chain] /execute as @e[tag=eggInteraction] at @s on target run kill @e[type=minecraft:interaction,limit=1,sort=nearest,distance=..0.1875]
Row 5
17. [repeat] /execute as @e[tag=eggBlock] at @s if entity @p[distance=..0.2] run playsound minecraft:entity.turtle.egg_break ambient @p[distance=..0.2] ~ ~ ~ 5 1
18. [chain] /execute as @e[tag=eggBlock] at @s if entity @p[distance=..0.2] run kill @s
19. [chain] /execute as @e[tag=eggInteraction] at @s if entity @p[distance=..0.2] run kill @s
Row 6
20. [repeat] /execute as @e[tag=eggInteraction] at @s run scoreboard players add @s timer 1
21. [chain] /execute as @e[tag=whiteEggInteraction] at @s if score @s timer matches 100.. run summon minecraft:chicken ~ ~ ~ {Age:-25000,variant:"minecraft:temperate"}
22. [chain] /execute as @e[tag=brownEggInteraction] at @s if score @s timer matches 100.. run summon minecraft:chicken ~ ~ ~ {Age:-25000,variant:"minecraft:warm"}
23. [chain] /execute as @e[tag=blueEggInteraction] at @s if score @s timer matches 100.. run summon minecraft:chicken ~ ~ ~ {Age:-25000,variant:"minecraft:cold"}
24. [chain] /execute as @e[tag=eggInteraction] at @s if score @s timer matches 100.. run kill @e[tag=eggBlock,sort=nearest,distance=..0.2]
25. [chain] /execute as @e[tag=eggInteraction] at @s if score @s timer matches 100.. run kill @s