Enhanced Armor

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 ~6 ~2 coal_block 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~5 ~2 iron_bars 0 replace coal_block"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add crouch stat.sneakTime"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add timer dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add armor dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add sneak stat.sneakTime"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add sneaking stat.sneakTime"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add gem dummy"},{id:MinecartCommandBlock,Command:setblock ~1 ~1 ~ wall_sign 4 replace {Text2:"{\\\"text\\\":\\\"Made by\\\",\\\"color\\\":\\\"blue\\\"}",Text3:"{\\\"text\\\":\\\"Barf Creations\\\",\\\"color\\\":\\\"dark_green\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~2 ~ 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 ~ ~-5 ~-2 ~7 ~4 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~5 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneak_min=1,score_armor=0] sneak 10"}},{id:MinecartCommandBlock,Command:setblock ~3 ~5 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a[score_sneaking_min=1] sneaking 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~5 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[type=Item,score_sneaking_min=1] ~ ~ ~ detect ~ ~-.5 ~ enchanting_table 0 /particle enchantmenttable ~ ~ ~ 0 0 0 1 10 force"}},{id:MinecartCommandBlock,Command:setblock ~4 ~5 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item,score_sneaking_min=100] sneaking 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~5 ~1 chain_command_block 4 replace {auto:1,Command:"entitydata @e[type=Item,score_sneaking_min=100] {Item:{tag:{display:{Name:\\\"Unenhanced Iron Ingot\\\"},G:0,ench:\\\"\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~5 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_sneaking_min=100] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:\\\"minecraft:experience_bottle\\\",Count:1b}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~5 ~1 chain_command_block 4 replace {auto:1,Command:"execute @a ~ ~ ~ execute @e[type=Item] ~ ~ ~ detect ~ ~-.5 ~ enchanting_table -1 /scoreboard players add @e[type=Item] sneaking 1 {Item:{id:\\\"minecraft:iron_ingot\\\",tag:{G:1}}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~4 ~1 chain_command_block 1 replace {auto:1,Command:"/scoreboard players set @e[type=Item,score_sneaking_min=100] sneaking 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~4 ~1 chain_command_block 5 replace {auto:1,Command:"entitydata @e[type=Item,score_sneaking_min=100] {Item:{tag:{display:{Name:\\\"Unenhanced Gold Ingot\\\"},G:0,ench:\\\"\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~4 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_sneaking_min=100] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:\\\"minecraft:experience_bottle\\\",Count:2b}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~4 ~1 chain_command_block 5 replace {auto:1,Command:"execute @a ~ ~ ~ execute @e[type=Item] ~ ~ ~ detect ~ ~-.5 ~ enchanting_table -1 /scoreboard players add @e[type=Item] sneaking 1 {Item:{id:\\\"minecraft:gold_ingot\\\",tag:{G:1}}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~4 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item,score_sneaking_min=100] sneaking 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~4 ~ chain_command_block 3 replace {auto:1,Command:"entitydata @e[type=Item,score_sneaking_min=100] {Item:{tag:{display:{Name:\\\"Unenhanced Diamond\\\"},G:0,ench:\\\"\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~4 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_sneaking_min=100] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:\\\"minecraft:experience_bottle\\\",Count:4b}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~4 ~ chain_command_block 4 replace {auto:1,Command:"execute @a ~ ~ ~ execute @e[type=Item] ~ ~ ~ detect ~ ~-.5 ~ enchanting_table -1 /scoreboard players add @e[type=Item] sneaking 1 {Item:{id:\\\"minecraft:diamond\\\",tag:{G:1}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~4 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=1,score_sneaking=0,score_armor_min=1,score_armor=1] haste 1 255 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~4 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @a[score_sneaking_min=1,score_sneak_min=1,m=3,score_sneak=4] sneak 2"}},{id:MinecartCommandBlock,Command:setblock ~7 ~4 ~-1 chain_command_block 3 replace {auto:1,Command:"/scoreboard players add @a[score_sneaking_min=1,score_sneak=95,score_armor_min=3,score_armor=3] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~4 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @a[score_armor_min=1,score_armor=1,score_sneak_min=1,score_sneaking=0] ~ ~ ~ particle witchMagic ~ ~ ~ 0 0 0 .1 10 force @a"}},{id:MinecartCommandBlock,Command:setblock ~5 ~4 ~-1 chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak=0] subtitle {\\\"text\\\":\\\"\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~4 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @a[score_armor_min=3,score_armor=3,score_sneak_min=1] ~ ~ ~ /particle fireworksSpark ~ ~ ~ 0 0 0 0 10 force @a"}},{id:MinecartCommandBlock,Command:setblock ~3 ~4 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneaking_min=1,score_sneak_min=5,m=3] sneak 4"}},{id:MinecartCommandBlock,Command:setblock ~3 ~3 ~-1 chain_command_block 1 replace {auto:1,Command:"gamemode 0 @a[score_sneak_min=1,score_sneak=1,score_armor_min=3,score_armor=3,m=3]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~3 ~-1 chain_command_block 4 replace {auto:1,Command:"gamemode 3 @a[score_sneak_min=95,score_sneaking=0,score_armor_min=3,score_armor=3]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~3 ~-1 chain_command_block 4 replace {auto:1,Command:"execute @a[score_sneak_min=95,score_sneaking=0,score_armor_min=3,score_armor=3] ~ ~ ~ gamerule /gamerule sendCommandFeedback true"}},{id:MinecartCommandBlock,Command:setblock ~6 ~3 ~-1 chain_command_block 4 replace {auto:1,Command:"gamemode 3 @a[score_sneak_min=95,score_sneaking=0,score_armor_min=3,score_armor=3]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~3 ~-1 chain_command_block 4 replace {auto:1,Command:"execute @a[score_sneak_min=95,score_sneaking=0,score_armor_min=3,score_armor=3] ~ ~ ~ /gamerule sendCommandFeedback false"}},{id:MinecartCommandBlock,Command:setblock ~7 ~3 ~ chain_command_block 2 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=3,score_armor=3] title {\\\"text\\\":\\\"\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~3 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a[score_sneak_min=99] sneak 98"}},{id:MinecartCommandBlock,Command:setblock ~5 ~3 ~ chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=3,score_armor=3] subtitle [\\\"\\\",{\\\"text\\\":\\\"Charge: \\\",\\\"color\\\":\\\"gray\\\"},{\\\"score\\\":{\\\"name\\\":\\\"@p\\\",\\\"objective\\\":\\\"sneak\\\"},\\\"color\\\":\\\"aqua\\\"},{\\\"text\\\":\\\"%\\\",\\\"color\\\":\\\"aqua\\\"}]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~3 ~ chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=3,score_armor=3] times 0 100000 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~3 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a armor 3 {Inventory:[{id:\\\"minecraft:diamond_boots\\\",Slot:100b,tag:{G:1}},{Slot:101b,id:\\\"minecraft:diamond_leggings\\\",tag:{G:1}},{Slot:102b,id:\\\"minecraft:diamond_chestplate\\\",tag:{G:1}},{Slot:103b,id:\\\"minecraft:diamond_helmet\\\",tag:{G:1}}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~3 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @a armor 3 {Inventory:[{id:\\\"minecraft:diamond_boots\\\",Slot:100b,tag:{G:1}},{Slot:101b,id:\\\"minecraft:diamond_leggings\\\",tag:{G:1}},{Slot:102b,id:\\\"minecraft:diamond_chestplate\\\",tag:{G:1}},{Slot:103b,id:\\\"minecraft:diamond_helmet\\\",tag:{G:1}}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~3 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @a[score_armor_min=2,score_armor=2,score_sneak_min=81,score_sneak=100] ~ ~ ~ /particle magicCrit ~ ~ ~ .5 0 .5 0 16 force @a"}},{id:MinecartCommandBlock,Command:setblock ~5 ~3 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @a[score_armor_min=2,score_armor=2,score_sneak_min=61,score_sneak=80] ~ ~ ~ /particle magicCrit ~ ~ ~ .5 0 .5 0 7 force @a"}},{id:MinecartCommandBlock,Command:setblock ~6 ~3 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @a[score_armor_min=2,score_armor=2,score_sneak_min=41,score_sneak=100] ~ ~ ~ /particle crit ~ ~ ~ .5 0 .5 0 18 force @a"}},{id:MinecartCommandBlock,Command:setblock ~7 ~3 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @a[score_armor_min=2,score_armor=2,score_sneak_min=21,score_sneak=40] ~ ~ ~ /particle crit ~ ~ ~ .5 0 .5 0 8 force @a"}},{id:MinecartCommandBlock,Command:setblock ~7 ~2 ~1 chain_command_block 1 replace {auto:1,Command:"/execute @a[score_armor_min=2,score_armor=2,score_sneak_min=1,score_sneak=20] ~ ~ ~ /particle crit ~ ~ ~ .5 0 .5 0 2 force @a"}},{id:MinecartCommandBlock,Command:setblock ~6 ~2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneak_min=1,score_armor_min=2,score_armor=2] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~2 ~1 chain_command_block 5 replace {auto:1,Command:"effect @a[score_sneak_min=80,score_sneak=80,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 30 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~2 ~1 chain_command_block 5 replace {auto:1,Command:"effect @a[score_sneak_min=80,score_sneak=80,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 25 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~2 ~1 chain_command_block 5 replace {auto:1,Command:"effect @a[score_sneak_min=80,score_sneak=80,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 16 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~2 ~ chain_command_block 3 replace {auto:1,Command:"effect @a[score_sneak_min=60,score_sneak=60,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 9 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=40,score_sneak=40,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 4 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~2 ~ chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=20,score_sneak=20,score_armor_min=2,score_armor=2,score_sneaking=1] resistance 1 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @a[score_sneak_min=1,score_sneaking=0,score_armor_min=2,score_armor=2] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~2 ~ chain_command_block 4 replace {auto:1,Command:"title @a[score_sneak_min=1,score_sneak=1,score_armor_min=2,score_armor=2] reset"}},{id:MinecartCommandBlock,Command:setblock ~7 ~2 ~-1 chain_command_block 3 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=2,score_armor=2] subtitle [\\\"\\\",{\\\"text\\\":\\\"Charge: \\\",\\\"color\\\":\\\"dark_gray\\\"},{\\\"score\\\":{\\\"name\\\":\\\"@p\\\",\\\"objective\\\":\\\"sneak\\\"},\\\"color\\\":\\\"gray\\\"},{\\\"text\\\":\\\"%\\\",\\\"color\\\":\\\"gray\\\"}]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~2 ~-1 chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=2,score_armor=2] times 0 100000 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneak_min=1,score_sneaking=0] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a armor 2 {Inventory:[{id:\\\"minecraft:iron_boots\\\",Slot:100b,tag:{G:1}},{Slot:101b,id:\\\"minecraft:iron_leggings\\\",tag:{G:1}},{Slot:102b,id:\\\"minecraft:iron_chestplate\\\",tag:{G:1}},{Slot:103b,id:\\\"minecraft:iron_helmet\\\",tag:{G:1}}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~2 ~-1 chain_command_block 5 replace {auto:1,Command:"title @a[score_sneak_min=0,score_sneak=1,score_armor_min=1,score_armor=1] reset "}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~-1 chain_command_block 1 replace {auto:1,Command:"effect @a[score_sneak_min=1,score_sneak=1,score_armor_min=1,score_armor=1] speed 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~-1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=1,score_sneak=1,score_armor_min=1,score_armor=1] jump_boost 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~-1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_armor_min=1,score_armor=1] haste 1 3 true"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~-1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=1,score_sneaking=0,score_armor_min=1,score_armor=1] jump_boost 1 4 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~-1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_sneak_min=1,score_sneaking=0,score_armor_min=1,score_armor=1] minecraft:speed 1 10 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~ chain_command_block 2 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=1,score_armor=1] times 0 100000 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_armor_min=1,score_armor=1] subtitle [\\\"\\\",{\\\"text\\\":\\\"Charge: \\\",\\\"color\\\":\\\"dark_gray\\\"},{\\\"score\\\":{\\\"name\\\":\\\"@p\\\",\\\"objective\\\":\\\"sneak\\\"},\\\"color\\\":\\\"gold\\\"},{\\\"text\\\":\\\"%\\\",\\\"color\\\":\\\"gold\\\"}]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/title @a[score_sneak_min=1,score_sneak=1,score_armor_min=1,score_armor=1] title {\\\"text\\\":\\\"\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneak_min=101,score_armor_min=1,score_armor=1] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players remove @a[score_sneak_min=1,score_sneaking=0] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @a armor 1 {Inventory:[{id:\\\"minecraft:golden_boots\\\",Slot:100b,tag:{G:1}},{Slot:101b,id:\\\"minecraft:golden_leggings\\\",tag:{G:1}},{Slot:102b,id:\\\"minecraft:golden_chestplate\\\",tag:{G:1}},{Slot:103b,id:\\\"minecraft:golden_helmet\\\",tag:{G:1}}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @a[score_armor_min=1] armor 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Villager,name=Crafting] ~ ~1 ~ /particle iconcrack ~ ~.1 ~ 0 0 0 .04 10 force @a 264"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @a[score_sneaking_min=0,score_sneak_min=1,score_sneak=100] sneak 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"effect @e[type=Villager,name=Crafting] 14 100 10 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 1 replace {auto:1,Command:"/scoreboard players set @a[score_sneak=0,score_sneaking=0] sneak -1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Villager,name=Crafting] ~ ~ ~ detect ~ ~ ~ air 0 kill @e[type=Villager,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Villager,name=Crafting] ~ ~ ~ detect ~ ~ ~ air 0 summon Item ~ ~ ~ {Item:{id:\\\"spawn_egg\\\",Count:1b,tag:{display:{Name:Advanced Armor Crafting},ench:[],EntityTag:{id:\\\"Guardian\\\",CustomName:Cr4fti4g,ActiveEffects:[{Id:14,Duration:1000,Amplifier:10}],Silent:1}}}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Villager,name=Crafting] ~ ~ ~ detect ~ ~ ~ air 0 kill @e[type=ArmorStand,name=Cr4fting,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Villager,name=Crafting] ~ ~ ~ tp @e[c=1] @e[type=ArmorStand,c=1,name=Cr4fting]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ tp @e[c=1] ~ ~-1000 ~"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ /execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:Cr4fting,NoGravity:1,Invisible:1,Marker:1}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ /execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ /summon Villager ~ ~ ~ {CustomName:\\\"Crafting\\\",Profession:0,Willing:1,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond,Count:4,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Diamond\\\"}}},sell:{id:diamond_boots,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Diamond Boots\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond,Count:7,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Diamond\\\"}}},sell:{id:diamond_leggings,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Diamond Leggings\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond,Count:8,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Diamond\\\"}}},sell:{id:diamond_chestplate,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Diamond Chestplate\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond,Count:5,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Diamond\\\"}}},sell:{id:diamond_helmet,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Diamond Helmet\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:iron_ingot,Count:4,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Iron Ingot\\\"}}},sell:{id:iron_boots,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Iron Boots\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:iron_ingot,Count:7,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Iron Ingot\\\"}}},sell:{id:iron_leggings,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Iron Leggings\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:iron_ingot,Count:8,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Iron Ingot\\\"}}},sell:{id:iron_chestplate,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Iron Chestplate\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:iron_ingot,Count:5,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Iron Ingot\\\"}}},sell:{id:iron_helmet,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Iron Helmet\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:4,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Ingot\\\"}}},sell:{id:golden_boots,Count:1,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Boots\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:7,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Ingot\\\"}}},sell:{id:golden_leggings,Count:1,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Leggings\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:8,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Ingot\\\"}}},sell:{id:golden_chestplate,Count:1,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Chestplate\\\"}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:5,tag:{G:1,ench:[],display:{Name:\\\"Enhanced Gold Ingot\\\"}}},sell:{id:golden_helmet,Count:1,tag:{Unbreakable:1,G:1,ench:[],display:{Name:\\\"Enhanced Gold Helmet\\\"}}}}]},NoAI:1,Silent:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20}],Invulnerable:1}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Guardian,name=Cr4fti4g] ~ ~ ~ setblock ~ ~ ~ crafting_table"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=10,score_gem=10] ~ ~ ~ /execute @e[type=Item,score_gem_min=11,score_gem=11,r=1] ~ ~ ~ kill @e[type=Item,r=2,score_gem_min=10,score_gem=11]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=10,score_gem=10] ~ ~ ~ /execute @e[type=Item,score_gem_min=11,score_gem=11,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:\\\"spawn_egg\\\",Count:1b,tag:{display:{Name:Advanced Armor Crafting},ench:[],EntityTag:{id:\\\"Guardian\\\",CustomName:Cr4fti4g,ActiveEffects:[{Id:14,Duration:1000,Amplifier:10}],Silent:1}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] gem 11 {Item:{id:\\\"minecraft:crafting_table\\\"},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] gem 10 {Item:{id:\\\"minecraft:diamond\\\",tag:{G:1}},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"kill @e[type=Item,score_gem_min=4,score_gem=4]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=4,score_gem=4] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ cauldron 0 replace cauldron -1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=4,score_gem=4] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ kill @e[type=ArmorStand,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=4,score_gem=4] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:\\\"minecraft:gold_ingot\\\",Count:2b,tag:{display:{Name:Enhanced Gold Ingot},G:1,ench:[]}},Motion:[0.0,0.8,0.0],PickupDelay:40s}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=4,score_gem=4] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ particle dragonbreath ~ ~1 ~ 0 0 0 0.1 3000 force @a"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~1.5 ~ execute @e[type=Item,r=1] ~ ~ ~ scoreboard players set @e[type=Item,c=1] gem 4 {Item:{id:\\\"minecraft:gold_ingot\\\",Count:2b},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"kill @e[type=Item,score_gem_min=3,score_gem=3]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=3,score_gem=3] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ setblock ~ ~ ~ cauldron 0 replace cauldron"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=3,score_gem=3] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ kill @e[type=ArmorStand,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=3,score_gem=3] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:\\\"minecraft:iron_ingot\\\",Count:4b,tag:{display:{Name:Enhanced Iron Ingot},G:1,ench:[]}},Motion:[0.0,0.8,0.0],PickupDelay:40s}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=3,score_gem=3] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ particle dragonbreath ~ ~1 ~ 0 0 0 0.1 3000 force @a"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=3,score_gem=3] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ /playsound minecraft:block.brewing_stand.brew voice @a ~ ~ ~ 1 2 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~1.5 ~ execute @e[type=Item,r=1] ~ ~ ~ scoreboard players set @e[type=Item,c=1] gem 3 {Item:{id:\\\"minecraft:iron_ingot\\\",Count:4b},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"kill @e[type=Item,score_gem_min=2,score_gem=2]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=2,score_gem=2] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ setblock ~ ~ ~ cauldron 0 replace cauldron"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=2,score_gem=2] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ kill @e[type=ArmorStand,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=2,score_gem=2] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ summon Item ~ ~1 ~ {Item:{id:\\\"minecraft:diamond\\\",Count:1b,tag:{display:{Name:Enhanced Diamond},G:1,ench:[]}},Motion:[0.0,0.8,0.0],PickupDelay:40s}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=2,score_gem=2] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ /playsound minecraft:block.brewing_stand.brew voice @a ~ ~ ~ 1 2 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=2,score_gem=2] ~ ~-1 ~ execute @e[type=ArmorStand,name=GemSpawn,r=1] ~ ~ ~ particle dragonbreath ~ ~1 ~ 0 0 0 0.1 3000 force @a"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~1.5 ~ execute @e[type=Item,r=1] ~ ~ ~ scoreboard players set @e[type=Item,c=1] gem 2 {Item:{id:\\\"minecraft:diamond\\\"},OnGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ /particle mobSpell ~ ~.7 ~ .1 0 .1 0 1 force @a"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ /particle mobSpellAmbient ~ ~1.5 ~ .2 0 .2 0 3 force @a"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ detect ~ ~1 ~ air -1 kill @e[c=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ detect ~ ~1 ~ air -1 /particle smoke ~ ~1.0 ~ 0 0 0 .03 10000 force @a"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ detect ~ ~1 ~ air -1 /playsound minecraft:block.redstone_torch.burnout voice @a ~ ~ ~"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ detect ~ ~1 ~ cauldron 0 setblock ~ ~1 ~ cauldron 3"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=GemSpawn] ~ ~ ~ detect ~ ~1 ~ cauldron 2 setblock ~ ~1 ~ cauldron 3"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=ItemFrame,name=GemSpawn] ~ ~ ~ kill @e[c=1]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ItemFrame,name=GemSpawn] ~ ~ ~ summon ArmorStand ~ ~ ~0.469 {CustomName:GemSpawn,NoGravity:1,Invisible:1,Marker:1}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=1,score_gem=1] ~ ~ ~ detect ~ ~ ~ cauldron 3 kill @e[type=Item,c=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_gem_min=1,score_gem=1] ~ ~ ~ detect ~ ~ ~ cauldron 3 summon ItemFrame ~ ~-1 ~ {CustomName:GemSpawn}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] gem 1 {Item:{id:\\\"minecraft:experience_bottle\\\",Count:4b},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]}]}]}]}