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 ~ ~2 gold_block 0 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~-1 ~2 stained_glass 4 replace gold_block"},{id:MinecartCommandBlock,Command:"/kill @e[type=Zombie]"},{id:MinecartCommandBlock,Command:"/gamerule doMobSpawning false"},{id:MinecartCommandBlock,Command:"/kill @e[type=Item]"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add wWool dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add rWool dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add ink dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add 2kill dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add pikachuTurn dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add pikachuTimer dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add rFlesh dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add fGround dummy"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Minecraft Pikachu Boss Fight In One Command\",\"color\":\"red\",\"bold\":true,\"underlined\":true}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Click [here] for the resource pack\",\"color\":\"green\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://www.dropbox.com/s/iom48c426a7d54g/Pikachu%20Boss%20Fight.zip?dl=1\"}}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Click for video on how to use [here]\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://youtu.be/6rXnwa6hnog\"}}]"},{id:MinecartCommandBlock,Command:"/tellraw @a [\"\",{\"text\":\"Combined into one command using MrGarretto's command combiner [here]\",\"color\":\"aqua\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"https://mrgarretto.com/cmdcombiner\"}}]"},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/kill @e[score_fGround_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[score_fGround_min=1] ~ ~ ~ playsound pik.achu master @a ~ ~ ~ 100 1"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[score_fGround_min=1] ~ ~ ~ summon LightningBolt ~ ~ ~"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @e[type=!Player,name=unknown] fGround 1 {inGround:1b}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/kill @e[score_rFlesh_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_rFlesh_min=1] ~ ~ ~ summon Item ~ ~ ~ {Motion:[0.0,0.5,0.0],Item:{id:\\\"minecraft:fishing_rod\\\",Count:1b,tag:{display:{Name:\\\"Lightning Bolt Staff\\\",Lore:[\\\"Right Click To\\\",\\\"Shoot Lightning Bolt\\\"]},ench:[]}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] rFlesh 1 {Item:{id:\\\"minecraft:rotten_flesh\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_pikachuTimer_min=400,score_pikachuTimer=400] ~ ~ ~ playsound pik.achu master @a[r=50] ~ ~ ~ 50 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/scoreboard players set @e[score_pikachuTimer_min=600] pikachuTimer 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_pikachuTimer_min=600] ~ ~ ~ execute @p[r=30] ~ ~ ~ summon LightningBolt ~ ~ ~"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players add @e[tag=pikachu] pikachuTimer 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/kill @e[score_pikachuTurn_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/tp @e[score_pikachuTurn_min=1] ~ -200 ~"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[score_pikachuTurn_min=1] ~ ~ ~ summon Zombie ~ ~1 ~ {Attributes:[{Name:generic.maxHealth,Base:100},{Name:generic.movementSpeed,Base:0.5},{Name:generic.attackDamage,Base:8},{Name:generic.followRange,Base:50}],ActiveEffects:[{Id:14,Amplifier:1,Duration:999999},{Id:8,Amplifier:1,Duration:999999}],Silent:1,Health:100.0f,ArmorItems:[{},{},{},{id:\\\"minecraft:golden_hoe\\\"}],Tags:[\\\"pikachu\\\"],CustomName:\\\"Pikachu\\\",CustomNameVisible:0}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Snowball] ~ ~ ~ scoreboard players set @e[type=Pig,r=2] pikachuTurn 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/kill @e[score_2kill_min=1]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_wWool_min=1] ~ ~ ~ execute @e[type=Item,score_rWool_min=1,r=1] ~ ~ ~ execute @e[type=Item,score_ink_min=1,r=1] ~ ~ ~ kill @e[score_wWool_min=1,r=2] "}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_wWool_min=1] ~ ~ ~ execute @e[type=Item,score_rWool_min=1,r=1] ~ ~ ~ execute @e[type=Item,score_ink_min=1,r=1] ~ ~ ~ scoreboard players set @e[type=Item,score_rWool_min=1,c=1,r=1] 2kill 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Item,score_wWool_min=1] ~ ~ ~ execute @e[type=Item,score_rWool_min=1,r=1] ~ ~ ~ execute @e[type=Item,score_ink_min=1,r=1] ~ ~ ~ scoreboard players set @e[type=Item,score_ink_min=1,c=1,r=1] 2kill 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_wWool_min=1] ~ ~ ~ execute @e[type=Item,score_rWool_min=1,r=1] ~ ~ ~ execute @e[type=Item,score_ink_min=1,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:\\\"minecraft:snowball\\\",Count:1b},Motion:[0.0,0.5,0.0]}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] ink 1 {Item:{id:\\\"minecraft:dye\\\",Count:1b,Damage:0s}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] rWool 1 {Item:{id:\\\"minecraft:wool\\\",Count:1b,Damage:14s}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] wWool 1 {Item:{id:\\\"minecraft:wool\\\",Count:1b,Damage:0s}}"}},{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]}]}]}]}