INIT:/summon ArmorStand ~4 ~-10 ~4 {NoGravity:1,Invisible:1,CustomName:"backpackStorage",CustomNameVisible:0}
INIT:/summon MinecartChest ~5 ~ ~4 {Riding:{id:"ArmorStand",NoGravity:1,Small:1,Invisible:1,CustomName:"backpackHolder",CustomNameVisible:0}}
INIT:/tp @e[name=backpackHolder] @e[name=backpackStorage]
INIT:/give @a spawn_egg 1 120 {display:{Name:"Backpack"}}
INIT:/tellraw @a {color:green,text:"You have been given a backpack!"}
INIT:/tellraw @a {"text":"Click here to open my generator!","color":"blue","clickEvent":{"action":"open_url","value":"http://mrgarretto.com/commanddump"}}
INIT:/tellraw @a {color:aqua,text:"Create your own vanilla mods in one command with my generator:"}
INIT:/tellraw @a {color:gold,bold:true,text:"The Backpack Vanilla mod has been installed!"}
/effect @e[type=Villager,name=Backpack] 14 5 1 true
/execute @e[type=Villager,name=Backpack] ~ ~ ~ tp @e[name=backpackHolder] @e[name=Backpack]
/execute @e[type=Villager,name=Backpack] ~ ~ ~ tp @e[name=BackpackHolder] ~ ~-2 ~
/execute @e[type=Villager,name=Backpack] ~ ~ ~ particle magicCrit ~ ~ ~ 0 1 0 1 200
/execute @e[type=Villager,name=Backpack] ~ ~ ~ clear @a spawn_egg 120
/execute @e[name=GrabBackpack] ~ ~ ~ execute @a ~ ~ ~ playsound random.chestopen @a ~ ~ ~ 0.4
/execute @e[type=Villager,name=Backpack] ~ ~ ~ give @a spawn_egg 1 101 {display:{Name:"GrabBackpack"}}
/execute @e[type=Villager,name=Backpack] ~ ~ ~ kill @e[type=Villager,name=Backpack]
/effect @e[name=GrabBackpack] 14 5 1 true
/execute @e[name=GrabBackpack] ~ ~ ~ clear @a spawn_egg 101
/execute @e[name=GrabBackpack] ~ ~ ~ give @a spawn_egg 1 120 {display:{Name:"Backpack"}}
/execute @e[name=GrabBackpack] ~ ~ ~ execute @a ~ ~ ~ playsound random.chestclosed @a ~ ~ ~ 0.4
/execute @e[name=GrabBackpack] ~ ~ ~ particle magicCrit ~ ~ ~ 0 1 0 1 200
/execute @e[name=GrabBackpack] ~ ~ ~ tp @e[name=backpackHolder] @e[name=backpackStorage]
/execute @e[name=GrabBackpack] ~ ~ ~ gamerule doMobLoot false
/execute @e[name=GrabBackpack] ~ ~ ~ kill @e[name=GrabBackpack]
/execute @e[name=GrabBackpack] ~ ~ ~ gamerule doMobLoot true