TheMaxShaft

One Command Hatching Chickens WITH Population Control

Aug 8th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 6.07 KB | None | 0 0
  1. /summon MinecartCommandBlock ~ ~1 ~ {Command:kill @e[type=MinecartCommandBlock,r=1],Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air},Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Command by TheMaxShaft™\",\"color\":\"dark_aqua\",\"bold\":\"true\"}]",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add Control dummy",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add Hatch dummy",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add Incubation dummy",Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 command_block 0 replace {Command:fill ~ ~ ~1 ~5 ~1 ~1 stone},Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 command_block 0 replace {Command:fill ~ ~ ~-1 ~5 ~1 ~-1 redstone_block},Riding:{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 command_block 0 replace {Command:"/scoreboard players add @e[type=Item] Incubation 1 {Item:{id:minecraft:egg}}"},Riding:{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 command_block 0 replace {Command:"/execute @e[score_Incubation_min=25000,score_Incubation=25000] ~ ~ ~ summon Chicken ~ ~ ~ {Age:-25000}"},Riding:{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 command_block 0 replace {Command:"/scoreboard players set @e[type=Chicken] Hatch 1 {Age:-24999}"},Riding:{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 command_block 0 replace {Command:"/execute @e[score_Hatch_min=1] ~ ~ ~ kill @e[score_Incubation_min=25000,r=1]"},Riding:{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 command_block 0 replace {Command:"/scoreboard players set @e[type=Chicken] Hatch 0 {Age:-24500}"},Riding:{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 command_block 0 replace {Command:"/entitydata @e[score_Incubation_min=1] {Age:0}"},Riding:{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 command_block 0 replace {Command:"/execute @e[score_Hatch_min=1] ~ ~ ~ /scoreboard players set @e[score_Hatch_min=1,score_Hatch=1] Control 1"},Riding:{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 command_block 0 replace {Command:"/execute @e[score_Control_min=1] ~ ~ ~ /entitydata @e[score_Control_min=1,score_Control=1] {EggLayTime:1000000}"},Riding:{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~-2 quartz_block,Riding:{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~-1 command_block 0 replace {Command:"/scoreboard players set @e[type=Chicken] Hatch 1 {Age:-24999}"},Riding:{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~2 iron_block,Riding:{id:MinecartCommandBlock,Command:setblock ~8 ~-2 ~1 command_block 0 replace {Command:"/execute @e[score_Incubation_min=25000,score_Incubation=25000] ~ ~ ~ summon Chicken ~ ~ ~ {Age:-25000}"},Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-2 wool,Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 command_block 0 replace {Command:"/scoreboard players set @e[type=Chicken] Hatch 0 {Age:-24500}"},Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~2 sea_lantern,Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 command_block 0 replace {Command:"/execute @e[score_Hatch_min=1] ~ ~ ~ kill @e[score_Incubation_min=25000,r=1]"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{text:\\\"==========\\\",color:black,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Incubation\\\"}}",Text2:"{text:\\\"Uninstall From\\\",color:black,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Hatch\\\"}}",Text3:"{text:\\\"1-2\\\",color:black,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Control\\\"}}",Text4:"{text:\\\"==========\\\",color:black}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{text:\\\"==========\\\",color:red,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Incubation\\\"}}",Text2:"{text:\\\"Uninstall\\\",color:red,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Hatch\\\"}}",Text3:"{text:\\\"Part 1\\\",color:red,clickEvent:{action:\\\"run_command\\\",value:\\\"/scoreboard objectives remove Control\\\"}}",Text4:"{text:\\\"==========\\\",color:red}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{text:\\\"==========\\\",color:red}",Text2:"{text:\\\"Uninstall\\\",color:red}",Text3:"{text:\\\"Part 2\\\",color:red}",Text4:"{text:\\\"==========\\\",color:red,clickEvent:{action:\\\"run_command\\\",value:\\\"fill ~ ~-1 ~-2 ~9 ~2 ~2 air\\\"}}"},Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-2 ~9 ~-1 ~2 stained_hardened_clay 0 replace stained_hardened_clay 0,Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-3 ~-2 ~9 ~ ~2 stained_hardened_clay 0 hollow,Riding:{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false,Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,Block:activator_rail,Time:1,Riding:{id:FallingSand,Block:redstone_block,Time:1,Riding:{id:FallingSand,Block:stone,Time:1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
  2.  
  3. Quartz Block = Edit to the age of spawned in chicken (Only if edited chicken's age in iron block) /scoreboard players set @e[type=Chicken] Hatch 1 {Age:#} (default is -24999)
  4.  
  5. Iron Block = Edit time it takes for chicken to hatch (The #s in the text is what you will want to set your number in the command /execute @e[score_Incubation_min=#,score_Incubation=#] ~ ~ ~ summon Chicken ~ ~ ~ {Age:-25000} (default is -25000))
  6.  
  7. Wool = Edit the time to the amount of time as it takes for the chicken to hatch, then subtract 500 from the # /scoreboard players set @e[type=Chicken] Hatch 0 {Age:#} (default is -24500)
  8.  
  9. Sea Lantern = Edit the # to the same number as the iron block: /execute @e[score_Hatch_min=1] ~ ~ ~ kill @e[score_Incubation_min=#,r=1] (Default is 25000)
  10.  
  11. HUGE NOTE: Chickens MANUALLY SPAWNED (By throwing egg or VIA Spawn Egg) WILL NOT be affected the Population Control, only the ones that are spawned by the egg themselves
Advertisement
Add Comment
Please, Sign In to add comment