Advertisement
Curcuit_Blocks

Protective Mob Heads | 1 Command

Aug 22nd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.12 KB | None | 0 0
  1. /summon FallingSand ~ ~1 ~ {Block:"redstone_block",Time:3,Passengers:[{id:"FallingSand",Block:"activator_rail",Time:3,Passengers:[{id:"MinecartCommandBlock",Command:/gamerule commandBlockOutput false},{id:"MinecartCommandBlock",Command:/scoreboard objectives add PackTimer dummy},{id:"MinecartCommandBlock",Command:/scoreboard objectives add MobHeadMHP dummy},{id:"MinecartCommandBlock",Command:/scoreboard teams add MobHeadFriend},{id:"MinecartCommandBlock",Command:/scoreboard teams option MobHeadFriend friendlyfire false},{id:"MinecartCommandBlock",Command:/fill ~3 ~-2 ~-1 ~7 ~4 ~1 minecraft:stained_glass 0 hollow},{id:"MinecartCommandBlock",Command:/fill ~3 ~-2 ~-1 ~7 ~-2 ~1 stone 6 hollow},{id:"MinecartCommandBlock",Command:/fill ~3 ~4 ~-1 ~7 ~4 ~1 stone 6 hollow},{id:MinecartCommandBlock,Command:setblock ~2 ~2 ~ wall_sign 4 0 {Text1:"{\\\"text\\\":\\\"Click here\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"say Bye Bye!!\\\"},\\\"bold\\\":true}",Text2:"{\\\"text\\\":\\\"to remove\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}",Text3:"{\\\"text\\\":\\\"the machine!\\\",\\\"color\\\":\\\"red\\\",\\\"bold\\\":true}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/fill ~ ~-4 ~-1 ~5 ~2 ~1 air\\\"}}"}},{id:"MinecartCommandBlock",Command:/summon FallingSand ~4 ~-1 ~ {Block:repeating_command_block,Data:1,TileEntityData:{auto:1b,Command:/scoreboard players add MobHeadProt PackTimer 1},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/scoreboard players test MobHeadProt PackTimer 20},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:9,TileEntityData:{Command:/scoreboard players set MobHeadProt PackTimer 0},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:repeating_command_block,Data:9,TileEntityData:{auto:1b,Command:/scoreboard players set @a MobHeadMHP 0},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:5,TileEntityData:{Command:/scoreboard players set @a MobHeadMHP 1 {Inventory:[{id:minecraft:skull,Damage:0s,Slot:103b}]}},Time:1,DropItem:0}]}]}]}]}},{id:"MinecartCommandBlock",Command:/summon FallingSand ~5 ~-1 ~ {Block:chain_command_block,Data:5,TileEntityData:{Command:/execute @a[score_MobHeadMHP_min=0,score_MobHeadMHP=0] ~ ~ ~ scoreboard teams leave MobHeadFriend @e[type=!Player,team=MobHeadFriend]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/scoreboard teams join MobHeadFriend @a},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/scoreboard players set @a MobHeadMHP 4 {Inventory:[{id:minecraft:skull,Damage:4s,Slot:103b}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/scoreboard players set @a MobHeadMHP 3 {Inventory:[{id:minecraft:skull,Damage:2s,Slot:103b}]}},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:0,TileEntityData:{Command:/scoreboard players set @a MobHeadMHP 2 {Inventory:[{id:minecraft:skull,Damage:1s,Slot:103b}]}},Time:1,DropItem:0}]}]}]}]}},{id:"MinecartCommandBlock",Command:/summon FallingSand ~6 ~-1 ~ {Block:chain_command_block,Data:1,TileEntityData:{Command:/execute @a[score_MobHeadMHP_min=1,score_MobHeadMHP=2] ~ ~ ~ scoreboard teams join MobHeadFriend @e[type=Skeleton,team=!MobHeadFriend]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/execute @a[score_MobHeadMHP_min=3,score_MobHeadMHP=3] ~ ~ ~ scoreboard teams join MobHeadFriend @e[type=Zombie,team=!MobHeadFriend]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:chain_command_block,Data:1,TileEntityData:{Command:/execute @a[score_MobHeadMHP_min=4,score_MobHeadMHP=4] ~ ~ ~ scoreboard teams join MobHeadFriend @e[type=Creeper,team=!MobHeadFriend]},Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:stone,Data:6,Time:1,DropItem:0,Passengers:[{id:"FallingSand",Block:stone,Data:6,Time:1,DropItem:0}]}]}]}]}},{id:"MinecartCommandBlock",Command:kill @e[r=2,type=MinecartCommandBlock]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement