/summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"/title @a times 10 60 10"},{id:MinecartCommandBlock,Command:"/title @a title [\"\",{\"text\":\"Egg Catcher\",\"color\":\"yellow\",\"bold\":true}]"},{id:MinecartCommandBlock,Command:"/title @a subtitle [\"\",{\"text\":\"by jpdude98\",\"color\":\"green\"}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Visit my YouTube channel at \",\"color\":\"gray\"},{\"text\":\"youtube.com/jpdude98\",\"color\":\"blue\",\"bold\":true,\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.youtube.com/user/jpdude98\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Click here to visit now!\"}]}}}]"},{id:MinecartCommandBlock,Command:"/playsound entity.player.levelup @a"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add egg dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eggTime dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add eggItem dummy"},{id:MinecartCommandBlock,Command:"/summon ArmorStand ~ ~ ~ {CustomName:summonCommandStack,Maker:1b,Invisible:1b,NoGravity:1b}"},{id:MinecartCommandBlock,Command:"/setblock ~ ~64 ~ barrier"},{id:MinecartCommandBlock,Command:setblock ~2 ~-2 ~-1 wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"Egg Catcher\\\",\\\"color\\\":\\\"yellow\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"by jpdude98\\\",\\\"color\\\":\\\"green\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~2 ~-2 ~1 wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"[Destroy]\\\",\\\"color\\\":\\\"dark_red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/kill @e[name=summonCommandStack]\\\"},\\\"bold\\\":true}",Text2:"{\\\"text\\\":\\\"Click this sing\\\",\\\"color\\\":\\\"dark_gray\\\"}",Text3:"{\\\"text\\\":\\\"to destroy\\\",\\\"color\\\":\\\"dark_gray\\\"}",Text4:"{\\\"text\\\":\\\"the module\\\",\\\"color\\\":\\\"dark_gray\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-2 ~7 ~1 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"execute @e[type=Item,score_egg=1] ~ ~ ~ tp @e[score_egg=-1,r=4,c=1] ~ ~-500 ~"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @e[type=Chicken] egg -1 {Age:-23999}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"execute @e[type=Item,score_egg=10] ~ ~ ~ /particle cloud ~ ~ ~ 0.01 0.01 0.01 0.05 3 force"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"entitydata @e[type=Item,score_egg_min=1,score_egg=1] {PickupDelay:22}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"execute @e[type=Item,score_egg_min=1,score_egg=1] ~ ~ ~ /playsound block.fire.extinguish @a ~ ~ ~ 1 1.25"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"execute @e[type=Item,score_egg_min=1,score_egg=1] ~ ~ ~ tp @e[type=!Item,r=1,c=1] ~ ~-500 ~"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"scoreboard players add @e[type=Item] egg 1 {Thrower:egg}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"scoreboard players tag @e[tag=egg] remove summonCmd"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=summonCmd] ~ ~ ~ /execute @e[name=summonCommandStack] ~ ~ ~ /summon FallingSand ~ ~65 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Creeper,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:50,Count:1,tag:{EntityTag:{id:\\\\\\\"Creeper\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Skeleton,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:51,Count:1,tag:{EntityTag:{id:\\\\\\\"Skeleton\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Spider,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:52,Count:1,tag:{EntityTag:{id:\\\\\\\"Spider\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Zombie,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:54,Count:1,tag:{EntityTag:{id:\\\\\\\"Zombie\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Slime,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:55,Count:1,tag:{EntityTag:{id:\\\\\\\"Slime\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Ghast,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:56,Count:1,tag:{EntityTag:{id:\\\\\\\"Ghast\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=PigZombie,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:57,Count:1,tag:{EntityTag:{id:\\\\\\\"PigZombie\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Enderman,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:58,Count:1,tag:{EntityTag:{id:\\\\\\\"Enderman\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=CaveSpider,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:59,Count:1,tag:{EntityTag:{id:\\\\\\\"CaveSpider\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Silverfish,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:60,Count:1,tag:{EntityTag:{id:\\\\\\\"Silverfish\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Blaze,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:61,Count:1,tag:{EntityTag:{id:\\\\\\\"Blaze\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=LavaSlime,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:62,Count:1,tag:{EntityTag:{id:\\\\\\\"LavaSlime\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Witch,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:66,Count:1,tag:{EntityTag:{id:\\\\\\\"Witch\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Endermite,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:67,Count:1,tag:{EntityTag:{id:\\\\\\\"Endermite\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Guardian,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:68,Count:1,tag:{EntityTag:{id:\\\\\\\"Guardian\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Pig,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:90,Count:1,tag:{EntityTag:{id:\\\\\\\"Pig\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Sheep,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:91,Count:1,tag:{EntityTag:{id:\\\\\\\"Sheep\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Cow,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:92,Count:1,tag:{EntityTag:{id:\\\\\\\"Cow\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Chicken,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:93,Count:1,tag:{EntityTag:{id:\\\\\\\"Chicken\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Squid,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:94,Count:1,tag:{EntityTag:{id:\\\\\\\"Squid\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Wolf,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:95,Count:1,tag:{EntityTag:{id:\\\\\\\"Wolf\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=MushroomCow,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:96,Count:1,tag:{EntityTag:{id:\\\\\\\"MushroomCow\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Ozelot,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:98,Count:1,tag:{EntityTag:{id:\\\\\\\"Ozelot\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=EntityHorse,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:100,Count:1,tag:{EntityTag:{id:\\\\\\\"EntityHorse\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Rabbit,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:101,Count:1,tag:{EntityTag:{id:\\\\\\\"Rabbit\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Villager,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:120,Count:1,tag:{EntityTag:{id:\\\\\\\"Villager\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Shulker,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:69,Count:1,tag:{EntityTag:{id:\\\\\\\"Shulker\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"execute @e[type=Bat,tag=egg] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:spawn_egg,Damage:65,Count:1,tag:{EntityTag:{id:\\\\\\\"Bat\\\\\\\"}}},Thrower:egg}\\\"},{id:MinecartCommandBlock,Command:\\\"scoreboard players tag @e[tag=egg] remove egg\\\"},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-2 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[tag=egg] ~ ~ ~ /particle smoke ~ ~0.15 ~ 0.25 0.1 0.25 0.01 2"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @e[score_egg_min=1] add summonCmd {HurtTime:10s}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @e[score_egg_min=1] add egg {HurtTime:10s}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players remove @e[score_egg_min=1,type=!Item] egg 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"execute @e[type=ThrownEgg] ~ ~ ~ scoreboard players set @e[r=4,type=!Item] egg 3"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}