Minecraft Maps / Redstone Device

Capture the Flag in One Command!

  • 2,418 views, 4 today
  • 48 downloads, 0 today
  • 2
  • 0
  • 2
ThePigott3's Avatar ThePigott3
Level 29 : Expert Engineer
12
Edit: Make sure you are in 1.9! The command blocks use new features to the game and can only be used in version 1.9.

I'm back! Lately I have been working on my own version of "Capture the Flag," and now I have enough done to show everyone! Just paste the command into a command block, power the command block, and place the given eggs. On creation of the command you get a red flag egg, a blue flag egg, and a spawn egg. Use the respective egg wherever you want the components of the game. To play, first choose a team, then try to steal the opponents flag and add it to your flagpole. Right click at your base to add or remove flags. Currently the gameplay is not all done. Improvements will be made and added as I go along, but right now it is still a cool concept. Thanks for visiting and leave a diamond and comment with suggestions!


To Play:
Download attached save to see example setup.

Copy and paste following command to add to your world. Make sure you set it in a loaded chunk out of the way of buildings:
Command - Click to reveal
/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:"/give @pm=1] minecraft:spawn_egg 1 0 {display:{Name:\"RedFlag\"},EntityTag:{id:\"Squid\"}}"},{id:MinecartCommandBlock,Command:"/give @p[m=1] minecraft:spawn_egg 1 0 {display:{Name:\"BlueFlag\"},EntityTag:{id:\"Squid\"}}"},{id:MinecartCommandBlock,Command:"/give @p[m=1] minecraft:spawn_egg 1 0 {display:{Name:\"MakeSpawn\"},EntityTag:{id:\"Squid\"}}"},{id:MinecartCommandBlock,Command:"/summon ArmorStand ~ ~ ~ {CustomName:time}"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add Points dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add Score dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives setdisplay sidebar Score"},{id:MinecartCommandBlock,Command:"/scoreboard teams add Red"},{id:MinecartCommandBlock,Command:"/scoreboard teams add Blue"},{id:MinecartCommandBlock,Command:"/scoreboard teams option Red color dark_red"},{id:MinecartCommandBlock,Command:"/scoreboard teams option Blue color dark_blue"},{id:MinecartCommandBlock,Command:"/scoreboard players set Red Score 0"},{id:MinecartCommandBlock,Command:"/scoreboard players set Blue Score 0"},{id:MinecartCommandBlock,Command:"/scoreboard teams join Red Red"},{id:MinecartCommandBlock,Command:"/scoreboard teams join Blue Blue"},{id:MinecartCommandBlock,Command:"/scoreboard teams option Red seeFriendlyInvisibles false"},{id:MinecartCommandBlock,Command:"/scoreboard teams option Blue seeFriendlyInvisibles false"},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Squid,name=RedFlag] ~ ~ ~ /kill @e[name=RedFlag]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Squid,name=RedFlag] ~ ~ ~ /scoreboard teams join Red @e[name=RedBase]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Squid,name=RedFlag] ~ ~ ~ /summon ArmorStand ~ ~ ~ {NoBasePlate:1,ShowArms:1,Invisible:1,NoGravity:1,CustomName:\\\"RedBase\\\",CustomNameVisible:1,ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:14}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=RedFlag] ~ ~ ~ /setblock ~ ~1 ~ fence"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=RedFlag] ~ ~ ~ /setblock ~ ~ ~ fence"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=BlueFlag] ~ ~ ~ /kill @e[name=BlueFlag]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Squid,name=BlueFlag] ~ ~ ~ /scoreboard teams join Blue @e[name=BlueBase]"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=Squid,name=BlueFlag] ~ ~ ~ /summon ArmorStand ~ ~ ~ {NoBasePlate:1,ShowArms:1,Invisible:1,NoGravity:1,CustomName:\\\"BlueBase\\\",CustomNameVisible:1,ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:11}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Squid,name=BlueFlag] ~ ~ ~ /setblock ~ ~1 ~ fence"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Squid,name=BlueFlag] ~ ~ ~ /setblock ~ ~ ~ fence"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /kill @e[name=MakeSpawn]"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /spawnpoint @a ~ ~ ~-1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~-2 ~-1 ~2 ~-1 ~-1 ~2 stained_hardened_clay 14"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~2 ~-1 ~2 ~1 ~-1 ~2 stained_hardened_clay 11"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /setblock ~ ~2 ~2 minecraft:wall_sign 0 replace {Text1:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"Stand on a color\\\\\\\"}\\\",Text2:\\\"{\\\\\\\"text\\\\\\\":\\\\\\\"to join a team!\\\\\\\"}\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~2 ~4 ~2 ~-2 ~4 ~-2 minecraft:end_portal"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~3 ~ ~3 ~1 ~5 ~-3 minecraft:stained_hardened_clay 11 replace stonebrick"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~-1 ~ ~3 ~-3 ~5 ~-3 minecraft:stained_hardened_clay 14 replace stonebrick"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[name=MakeSpawn] ~ ~ ~ /fill ~3 ~-1 ~3 ~-3 ~5 ~-3 minecraft:stonebrick 0 hollow"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @e[type=ArmorStand] remove BlueOnRed"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=RedOnBlue] ~ ~ ~ /entitydata @e[name=BlueBase] {ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:11}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[tag=BlueOnRed] ~ ~ ~ /entitydata @e[name=BlueBase] {HandItems:[{},{}],ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:11}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/scoreboard players add @e[tag=BlueOnRed] Points 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/entitydata @e[tag=BlueOnRed] {HandItems:[{},{}],ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:14}]}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @e[type=ArmorStand,name=RedBase] add BlueOnRed {HandItems:[{id:\\\"minecraft:wool\\\",Count:1b,Damage:11s},{}],ArmorItems:[{},{},{},{id:\\\"minecraft:wool\\\",Count:1b,Damage:14s}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players tag @e[type=ArmorStand] remove RedOnBlue"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[tag=BlueOnRed] ~ ~ ~ /entitydata @e[name=RedBase] {ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:14}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[tag=RedOnBlue] ~ ~ ~ /entitydata @e[name=RedBase] {HandItems:[{},{}],ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:14}]}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @e[tag=RedOnBlue] Points 1"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/entitydata @e[tag=RedOnBlue] {HandItems:[{},{}],ArmorItems:[{},{},{},{id:minecraft:wool,Count:1,Damage:11}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players tag @e[type=ArmorStand,name=BlueBase] add RedOnBlue {HandItems:[{id:\\\"minecraft:wool\\\",Count:1b,Damage:14s},{}],ArmorItems:[{},{},{},{id:\\\"minecraft:wool\\\",Count:1b,Damage:11s}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players operation Blue Score = @e[name=BlueBase] Points"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/scoreboard players operation Red Score = @e[name=RedBase] Points"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 14 /tp @p @e[name=RedBase]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 11 /tp @p @e[name=BlueBase]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 14 /scoreboard teams join Red @p"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stained_hardened_clay 11 /scoreboard teams join Blue @p"}},{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]}]}]}]}
Progress60% complete
Tags

Create an account or sign in to comment.

1
12/17/2015 6:33 pm
Level 1 : New Miner
crazydog0
crazydog0's Avatar
i dint work
1
12/17/2015 8:03 pm
Level 29 : Expert Engineer
ThePigott3
ThePigott3's Avatar
Were you in the snapshots?  I forgot to mention this only works in 1.9.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome