Pocket Pets

Throw 8 bones at a villager

/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:"fill ~2 ~-3 ~-2 ~8 ~1 ~2 coal_block 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~ ~2 stained_glass_pane 5 replace coal_block"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add fish dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add pet dummy"},{id:MinecartCommandBlock,Command:"/kill LogDotZip"},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"Made by\\\",\\\"color\\\":\\\"blue\\\"}",Text3:"{\\\"text\\\":\\\"Barf Creations\\\",\\\"color\\\":\\\"dark_red\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"Destroy\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"Machine\\\",\\\"color\\\":\\\"dark_red\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-2 ~-2 ~7 ~2 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_fish_min=600] fish 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"give @a[score_fish_min=600] fish 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"scoreboard players add @a fish 1 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:30s}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_pet_min=9,score_pet=9] fire_resistance 1 0 true"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 9 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:23s}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"execute @a[score_pet_min=8,score_pet=8] ~ ~ ~ detect ~ ~-.1 ~ stone 0 effect @p 11 1 2 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 8 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:26s}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"effect @a[score_pet_min=7,score_pet=7] jump_boost 1 3 true"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a pet 7 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:20s}]}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"execute @a[score_pet_min=6,score_pet=6] ~ ~ ~ effect @a[r=5] regeneration 1 1 true"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"execute @a[score_pet_min=6,score_pet=6] ~ ~ ~ effect @e[type=Wolf,r=5] regeneration 1 1 true"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a pet 6 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:17s}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"clear @a golden_sword 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_pet_min=5,score_pet=5] water_breathing 4 4 true"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 5 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:13s}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_pet_min=4,score_pet=4] night_vision 20 10 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 4 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:11s}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"effect @a[score_pet=-1] 11 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"effect @a[score_pet=-1] 8 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_pet_min=3,score_pet=3] pet -1 {FallDistance:0.0f}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"execute @a[score_pet_min=3,score_pet=3] ~ ~ ~ detect ~ ~-1 ~ air 0 effect @p 8 1 128 true"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"execute @a[score_pet_min=3,score_pet=3] ~ ~ ~ detect ~ ~-1 ~ air 0 effect @p levitation 1 250 true"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"effect @a[score_pet_min=3,score_pet=3] levitation 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 3 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:7s}]}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"execute @a[score_pet_min=2,score_pet=2] ~ ~ ~ effect @e[r=20] glowing 1 0 true"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"scoreboard players set @a pet 2 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:5s}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_pet_min=1,score_pet=1] 11 1 0 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"scoreboard players set @a pet 1 {Inventory:[{id:\\\"minecraft:golden_sword\\\",Damage:1s}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_pet_min=1] pet 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @e[type=Villager,name=!Villager] ~ ~ ~ kill @e[type=Item,r=1,score_pet_min=1,score_pet=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @e[type=Item,score_pet_min=1,score_pet=1] ~ ~ ~ entitydata @e[type=Villager,r=1] {CustomName:\\\"Pet Salesman\\\",Profession:1,Career:0,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:beef,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:1,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:725949,UUIDMost:713083}],display:{Name:\\\"Cow Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:porkchop,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:5,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:+.001,Operation:0,UUIDLeast:51298,UUIDMost:851764}],display:{Name:\\\"Pig Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:feather,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:7,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:138342,UUIDMost:272980}],display:{Name:\\\"Chicken Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:leather,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:11,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:684265,UUIDMost:553389}],display:{Name:\\\"Pet Bat\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:dye,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:13,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:29440,UUIDMost:972066}],display:{Name:\\\"Squid Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:bone,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:17,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:469072,UUIDMost:599618}],display:{Name:\\\"Wolf Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:rabbit_hide,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:20,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:132570,UUIDMost:213443}],display:{Name:\\\"Rabbit Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:blaze_rod,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:23,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:289353,UUIDMost:966193}],display:{Name:\\\"Blaze Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:stone,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:26,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:363389,UUIDMost:112242}],display:{Name:\\\"Silverfish Pet\\\"},ench:[{id:34,lvl:1000}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:prismarine_shard,Count:4},buyB:{id:diamond,Count:4},sell:{id:golden_sword,Damage:30,Count:1,tag:{HideFlags:3,AttributeModifiers:[{AttributeName:\\\"generic.attackDamage\\\",Name:\\\"generic.attackDamage\\\",Amount:.001,Operation:0,UUIDLeast:887599,UUIDMost:473891}],display:{Name:\\\"Guardian pet\\\"},ench:[{id:34,lvl:1000}]}}}]},PersistenceRequired:1}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"scoreboard players set @e[type=Item] pet 1 {Item:{id:\\\"minecraft:bone\\\",Count:8b},OnGround:1b}"}},{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]}]}]}]}