One Command Pets
One Command Pets by MrRockis7093401    1
This command add pets to your Minecraft World! You can select ArmorStand/Pig Pet, You can put armor to your ArmorStand pet! Thanks for installing :) Command Version: 1.0.1
Minecraft 1.8.7
7502 characters
More by MrRockis
How to install
Comments
Show source commands
/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:blockdata ~3 ~-2 ~-1 {Command:fill ~ ~ ~1 ~7 ~1 ~1 stone},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~1 {Command:fill ~ ~ ~-1 ~7 ~1 ~-1 redstone_block},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~-1 {Command:"/scoreboard objectives add PetFollow dummy"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~1 {Command:"/scoreboard objectives add PetArmor dummy"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~-1 {Command:"/scoreboard objectives add PetWolf dummy"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~1 {Command:"/scoreboard objectives add PetAlert dummy"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~-1 {Command:"/tp @e[type=ArmorStand,name=Pet] @e[type=Wolf,name=Pet]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~1 {Command:"/tp @e[type=Pig,name=Pet] @e[type=Wolf,name=Pet]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~-1 {Command:"/effect @e[type=Wolf,name=Pet] minecraft:invisibility 9999 200 true"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~1 {Command:"/scoreboard players add @a PetFollow 1"},Riding:{id:MinecartCommandBlock,Command:blockdata ~8 ~-2 ~-1 {Command:"/scoreboard players add @a PetArmor 1"},Riding:{id:MinecartCommandBlock,Command:blockdata ~8 ~-2 ~1 {Command:"/scoreboard players add @a PetWolf 1"},Riding:{id:MinecartCommandBlock,Command:blockdata ~9 ~-2 ~-1 {Command:"/testfor @a[score_PetFollow_min=200]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~9 ~-2 ~1 {Command:"/scoreboard players reset @a[score_PetFollow_min=200] PetFollow"},Riding:{id:MinecartCommandBlock,Command:blockdata ~10 ~-2 ~-1 {Command:"/tp @e[type=Wolf,name=Pet] @p[score_PetFollow_min=199]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~10 ~-2 ~1 {Command:"/execute @a[score_PetArmor=1,score_PetArmor_min=1] ~ ~ ~ summon ArmorStand ~ ~1 ~ {CustomName:\\\"Pet\\\",CustomNameVisible:1,ShowArms:1,Small:1,NoBasePlate:1,Invulnerable:1}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~-1 {Command:"/execute @a[score_PetAmor=5,score_PetArmor_min=2] ~ ~ ~ scoreboard players set @a PetArmor 2"},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~1 {Command:"/execute @a[score_PetWolf=1,score_PetWolf_min=1] ~ ~ ~ summon Wolf ~ ~1 ~ {CustomName:\\\"Pet\\\",CustomNameVisible:1,Invulnerable:1}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~-1 {Command:"/execute @a[score_PetWolf=5,score_PetWolf_min=2] ~ ~ ~ scoreboard players set @a PetWolf 2"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~1 {Command:"/execute @a[score_PetAlert=5,score_PetAlert_min=2] ~ ~ ~ scoreboard players set @a PetAlert 2"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~-1 {Command:"/execute @a[score_PetAlert=1,score_PetAlert_min=1] ~ ~ ~ tellraw @a [\\\"\\\",{\\\"text\\\":\\\"Pets \\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\"by MrRockis\\\",\\\"color\\\":\\\"dark_green\\\"}]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~1 {Command:"scoreboard players add @a PetAlert 1"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~-1 {Command:"/execute @a[score_PetAlert=2,score_PetAlert_min=2] ~ ~ ~ /tellraw @a [\\\"\\\",{\\\"text\\\":\\\"Machine has been \\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\"successful \\\",\\\"color\\\":\\\"dark_green\\\"},{\\\"text\\\":\\\"installed! \\\",\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\"Terms of Use\\\",\\\"color\\\":\\\"dark_red\\\",\\\"hoverEvent\\\":{\\\"action\\\":\\\"show_text\\\",\\\"value\\\":{\\\"text\\\":\\\"\\\",\\\"extra\\\":[{\\\"text\\\":\\\"Terms of Use \\\",\\\"color\\\":\\\"dark_red\\\"},{\\\"text\\\":\\\"1. Dont say this machine is yours! \\\",\\\"color\\\":\\\"dark_red\\\"},{\\\"text\\\":\\\"2. You can use my machine if you credit me, MrRockis! \\\",\\\"color\\\":\\\"dark_red\\\"},{\\\"text\\\":\\\"3. Thanks for Installing :)\\\",\\\"color\\\":\\\"dark_green\\\"}]}}}]"},Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~6 ~-1 ~-1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~10 ~-2 ~-1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~1 ~5 ~-1 ~1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~1 ~10 ~-2 ~1 command_block,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"You Selected \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"Pig!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_green\\\\\\\"}]\\\"}}",Text2:"{text:\\\"Pig\\\",color:dark_purple,clickEvent:{action:\\\"run_command\\\",value:\\\"kill @e[type=Pig,name=Pet]\\\"}}",Text3:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"kill @e[type=ArmorStand,name=Pet]\\\"}}",Text4:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"/summon Pig ~ ~1 ~ {CustomName:\\\\\\\"Pet\\\\\\\",CustomNameVisible:1,Invulnerable:1}\\\"}}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"You Selected \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"ArmorStand!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_green\\\\\\\"}]\\\"}}",Text2:"{text:\\\"ArmorStand\\\",color:dark_purple,clickEvent:{action:\\\"run_command\\\",value:\\\"kill @e[type=Pig]\\\"}}",Text3:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"kill @e[type=ArmorStand]\\\"}}",Text4:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"summon ArmorStand ~ ~1 ~ {CustomName:\\\\\\\"Pet\\\\\\\",CustomNameVisible:1,ShowArms:1,Small:1,NoBasePlate:1,Invulnerable:1}\\\"}}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"/tellraw @a [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"You \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"Destroyed \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"dark_red\\\\\\\",\\\\\\\"insertion\\\\\\\":\\\\\\\"You Selected \\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"the machine! Commands will not work anymore!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\",\\\\\\\"insertion\\\\\\\":\\\\\\\"/tellraw @a %s\\\\\\\"}]\\\"}}",Text2:"{text:\\\"Destroy\\\",color:dark_red}",Text4:"{text:\\\"\\\",clickEvent:{action:\\\"run_command\\\",value:\\\"fill ~ ~-1 ~-2 ~11 ~2 ~2 air\\\"}}"},Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-2 ~11 ~-1 ~2 stained_glass 3 replace stained_hardened_clay 3,Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-3 ~-2 ~11 ~ ~2 stained_hardened_clay 3 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}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}