Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2014 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/af4a43be82126542e29e to your computer and use it in GitHub Desktop.
Save anonymous/af4a43be82126542e29e to your computer and use it in GitHub Desktop.
Run these commands to patch Minecraft Bingo mini-game by lorgon111, so that it can be left running unattended in a public server
gamerule logAdminCommands false
say MINECRAFT BINGO PATCH
say ---------------------
say PATCH SCORE
scoreboard teams join Red Red
scoreboard players set Red Score 0
scoreboard teams join Blue Blue
scoreboard players set Blue Score 0
blockdata 82 180 66 { Command: "scoreboard players add Red Score 1" }
blockdata 81 180 67 { Command: "tellraw @a {text:\"Team \",extra:[{text:Red,color:red},\" got an item!\"]}" }
blockdata 87 180 98 { Command: "tellraw @a {text:\"Team \",extra:[{text:Red,color:red},\" got Bingo!\"]}" }
blockdata 87 180 94 { Command: "tellraw @a {text:\"Team \",extra:[{text:Red,color:red},\" got MEGA BINGO!\"]}" }
blockdata 72 180 66 { Command: "scoreboard players add Blue Score 1" }
blockdata 71 180 67 { Command: "tellraw @a {text:\"Team \",extra:[{text:Blue,color:blue},\" got an item!\"]}" }
blockdata 77 180 98 { Command: "tellraw @a {text:\"Team \",extra:[{text:Blue,color:blue},\" got Bingo!\"]}" }
blockdata 77 180 94 { Command: "tellraw @a {text:\"Team \",extra:[{text:Blue,color:blue},\" got MEGA BINGO!\"]}" }
blockdata 138 150 145 { Command: "scoreboard players set Red Score 0" }
setblock 138 150 144 command_block 0 replace { Command: "scoreboard players set Blue Score 0" }
say PATCH RED TEAM PRESSURE PLATE
scoreboard objectives add IsNewRedPlayer dummy
fill 145 148 161 146 150 162 air
fill 145 148 162 145 148 172 wool
fill 145 149 162 145 149 172 command_block
blockdata 145 149 159 { Command: "scoreboard players set @p IsNewRedPlayer 1" }
blockdata 145 148 159 { Command: "fill 145 148 162 145 148 172 redstone_block" }
blockdata 145 149 162 { Command: "fill 145 148 162 145 148 172 wool" }
blockdata 145 149 163 { Command: "clear @p[score_IsNewRedPlayer_min=1]" }
blockdata 145 149 164 { Command: "xp -100L @p[score_IsNewRedPlayer_min=1]" }
blockdata 145 149 165 { Command: "give @p[score_IsNewRedPlayer_min=1] filled_map 64 1 {display:{Name:\"BINGO Card\"},AttributeModifiers:[{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:0,Operation:0,UUIDLeast:2,UUIDMost:2}]}" }
blockdata 145 149 166 { Command: "execute @a[team=!,m=0] ~ ~ ~ gamemode 0 @p[score_IsNewRedPlayer_min=1]" }
blockdata 145 149 167 { Command: "spreadplayers 0 0 2000 200000 true @p[score_IsNewRedPlayer_min=1,m=0]" }
blockdata 145 149 168 { Command: "execute @p[score_IsNewRedPlayer_min=1,m=0] ~ ~ ~ spawnpoint @p[score_IsNewRedPlayer_min=1,m=0]" }
blockdata 145 149 169 { Command: "tp @p[score_IsNewRedPlayer_min=1,m=0] @r[team=Red,m=0]" }
blockdata 145 149 170 { Command: "scoreboard players enable @p[score_IsNewRedPlayer_min=1,m=0] home" }
blockdata 145 149 171 { Command: "scoreboard teams join Red @p[score_IsNewRedPlayer_min=1]" }
blockdata 145 149 172 { Command: "scoreboard players reset @p[score_IsNewRedPlayer_min=1] IsNewRedPlayer" }
say PATCH BLUE TEAM PRESSURE PLATE
scoreboard objectives add IsNewBluePlayer dummy
fill 155 148 161 156 150 162 air
fill 155 148 162 155 148 172 wool
fill 155 149 162 155 149 172 command_block
blockdata 155 149 159 { Command: "scoreboard players set @p IsNewBluePlayer 1" }
blockdata 155 148 159 { Command: "fill 155 148 162 155 148 172 redstone_block" }
blockdata 155 149 162 { Command: "fill 155 148 162 155 148 172 wool" }
blockdata 155 149 163 { Command: "clear @p[score_IsNewBluePlayer_min=1]" }
blockdata 155 149 164 { Command: "xp -100L @p[score_IsNewBluePlayer_min=1]" }
blockdata 155 149 165 { Command: "give @p[score_IsNewBluePlayer_min=1] filled_map 64 1 {display:{Name:\"BINGO Card\"},AttributeModifiers:[{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:0,Operation:0,UUIDLeast:2,UUIDMost:2}]}" }
blockdata 155 149 166 { Command: "execute @a[team=!,m=0] ~ ~ ~ gamemode 0 @p[score_IsNewBluePlayer_min=1]" }
blockdata 155 149 167 { Command: "spreadplayers 0 0 2000 200000 true @p[score_IsNewBluePlayer_min=1,m=0]" }
blockdata 155 149 168 { Command: "execute @p[score_IsNewBluePlayer_min=1,m=0] ~ ~ ~ spawnpoint @p[score_IsNewBluePlayer_min=1,m=0]" }
blockdata 155 149 169 { Command: "tp @p[score_IsNewBluePlayer_min=1,m=0] @r[team=Blue,m=0]" }
blockdata 155 149 170 { Command: "scoreboard players enable @p[score_IsNewBluePlayer_min=1,m=0] home" }
blockdata 155 149 171 { Command: "scoreboard teams join Blue @p[score_IsNewBluePlayer_min=1]" }
blockdata 155 149 172 { Command: "scoreboard players reset @p[score_IsNewBluePlayer_min=1] IsNewBluePlayer" }
say PATCH WHITE TEAM PRESSURE PLATE
scoreboard objectives add IsNewSpectator dummy
fill 149 151 159 151 151 159 air
setblock 150 151 159 wall_sign 2 replace {Text2:SPECTATE}
fill 150 148 161 151 150 162 air
fill 150 148 162 150 148 169 wool
fill 150 149 162 150 149 169 command_block
blockdata 150 149 159 { Command: "scoreboard players set @p IsNewSpectator 1" }
blockdata 150 148 159 { Command: "fill 150 148 162 150 148 169 redstone_block" }
blockdata 150 149 162 { Command: "fill 150 148 162 150 148 169 wool" }
blockdata 150 149 163 { Command: "scoreboard teams leave @p[score_IsNewSpectator_min=1]" }
blockdata 150 149 164 { Command: "clear @p[score_IsNewSpectator_min=1]" }
blockdata 150 149 165 { Command: "xp -100L @p[score_IsNewSpectator_min=1]" }
blockdata 150 149 166 { Command: "execute @a[team=!,m=0] ~ ~ ~ gamemode 3 @p[score_IsNewSpectator_min=1]" }
blockdata 150 149 167 { Command: "tp @p[score_IsNewSpectator_min=1,m=3] @r[team=!,m=0]" }
blockdata 150 149 168 { Command: "scoreboard players enable @p[score_IsNewSpectator_min=1,m=3] home" }
blockdata 150 149 169 { Command: "scoreboard players reset @p[score_IsNewSpectator_min=1] IsNewSpectator" }
say CREATE CLOCK LOOP
fill 150 128 155 150 128 172 wool
fill 150 129 155 150 129 172 command_block
blockdata 150 129 155 { Command: "fill 150 128 155 150 128 172 wool" }
setblock 150 127 149 stone
setblock 150 128 149 unpowered_comparator
setblock 150 128 148 command_block 0 replace { Command: "fill 150 128 155 150 128 172 redstone_block" }
setblock 150 127 152 stone
setblock 150 128 152 unpowered_comparator 2
setblock 150 128 153 command_block 0 replace { Command: "fill 150 128 155 150 128 172 redstone_block" }
setblock 150 128 151 hopper 2
setblock 150 128 150 hopper 3
say RESET DISCONNECTED PLAYERS
scoreboard objectives add ConnectionCheck dummy
scoreboard objectives add Disconnected dummy
blockdata 150 129 156 { Command: "scoreboard players set @a[score_ConnectionCheck_min=1] Disconnected 1" }
blockdata 150 129 157 { Command: "scoreboard players set * ConnectionCheck 1" }
blockdata 150 129 158 { Command: "scoreboard players set @a ConnectionCheck 0" }
blockdata 150 129 159 { Command: "gamemode 2 @a[score_Disconnected_min=1]" }
blockdata 150 129 160 { Command: "tp @a[score_Disconnected_min=1] 150 150 150 0 0" }
blockdata 150 129 161 { Command: "spawnpoint @a[score_Disconnected_min=1] 150 150 150" }
blockdata 150 129 162 { Command: "clear @a[score_Disconnected_min=1]" }
blockdata 150 129 163 { Command: "xp -100L @a[score_Disconnected_min=1]" }
blockdata 150 129 164 { Command: "scoreboard teams leave @a[score_Disconnected_min=1]" }
blockdata 150 129 165 { Command: "scoreboard players reset @a[score_Disconnected_min=1]" }
say TP PLAYERS WHO LOST SPAWNPOINT OR SPAWN INSIDE STAGING AREA
scoreboard objectives add LostSpawnPoint dummy
blockdata 150 129 166 { Command: "scoreboard players set @a[x=0,y=0,z=0,dx=511,dy=260,dz=511,m=0] LostSpawnPoint 1" }
blockdata 150 129 167 { Command: "spreadplayers 0 0 2000 200000 true @a[score_LostSpawnPoint_min=1]" }
blockdata 150 129 168 { Command: "execute @a[score_LostSpawnPoint_min=1] ~ ~ ~ spawnpoint @p[score_LostSpawnPoint_min=1]" }
blockdata 150 129 169 { Command: "tp @a[score_LostSpawnPoint_min=1,team=Red] @r[score_LostSpawnPoint=0,team=Red,m=0]" }
blockdata 150 129 170 { Command: "tp @a[score_LostSpawnPoint_min=1,team=Blue] @r[score_LostSpawnPoint=0,team=Blue,m=0]" }
blockdata 150 129 171 { Command: "scoreboard players reset @a[score_LostSpawnPoint_min=1] LostSpawnPoint" }
say REMOVE RESET BUTTON
setblock 156 150 141 air
setblock 156 151 141 air
setblock 156 150 140 stone
say PATCH GAME START
blockdata 132 150 149 { Command: "spreadplayers 0 0 2000 200000 true @a[team=!]" }
blockdata 134 149 149 { Command: "effect @a[team=!] 2 40 7" }
setblock 138 149 149 command_block 0 replace { Command: "fill 148 128 177 148 128 179 redstone_block" }
fill 148 128 177 148 128 179 wool
fill 148 129 177 148 129 179 command_block
blockdata 148 129 177 { Command: "fill 150 128 177 150 128 182 wool" }
blockdata 148 129 178 { Command: "setblock 150 150 141 wall_sign 3 replace { Text2: \"IN GAME\" }" }
blockdata 148 129 179 { Command: "setblock 141 150 147 wall_sign 5 replace { Text2: \"IN GAME\" }" }
say AUTO RESET WHEN BOTH TEAMS EMPTY
blockdata 150 129 172 { Command: "testfor @a[team=!]" }
setblock 150 128 173 stone
setblock 150 129 173 unpowered_comparator 2
setblock 150 129 174 stone
setblock 150 129 175 redstone_torch 3
setblock 150 128 175 command_block 0 replace { Command: "fill 150 128 177 150 128 182 redstone_block" }
fill 150 128 177 150 128 182 redstone_block
fill 150 129 177 150 129 182 command_block
blockdata 150 129 177 { Command: "fill 148 128 177 148 128 179 wool" }
blockdata 150 129 178 { Command: "setblock 150 150 141 stone_button 3" }
blockdata 150 129 179 { Command: "setblock 141 150 147 stone_button 1" }
blockdata 150 129 180 { Command: "tp @a[m=3] 131 128 141 180 0" }
blockdata 150 129 181 { Command: "gamemode 2 @a[m=3]" }
blockdata 150 129 182 { Command: "setblock 156 150 133 redstone_block" }
say PATCH BINGO CARD REPLENISH
blockdata 144 170 135 { Command: "give @p[team=!,score_HasNoMap_min=6,score_HasNoMap=999] filled_map 64 1 {display:{Name:\"BINGO Card\"},AttributeModifiers:[{AttributeName:generic.knockbackResistance,Name:generic.knockbackResistance,Amount:0,Operation:0,UUIDLeast:2,UUIDMost:2}]}" }
say PATCH BINGO CARD UPDATING
blockdata 133 170 140 { Command: "execute @e[score_DroppedMap_min=1,c=1] ~ ~ ~ scoreboard players set @p[m=0,r=6] IsUpdating 1" }
blockdata 137 170 132 { Command: "setworldspawn 150 150 150" }
setblock 151 170 138 command_block 0 replace { Command: "gamemode 2 @p[score_IsUpdating_min=1]" }
setblock 136 169 135 command_block 0 replace { Command: "gamemode 0 @p[score_IsUpdating_min=1]" }
say PATCH HOME TRIGGER
setblock 140 170 132 command_block 0 replace { Command: "gamemode 2 @a[score_home_min=1]" }
setblock 142 170 132 command_block 0 replace { Command: "spawnpoint @a[score_home_min=1] 150 150 150" }
setblock 141 169 132 command_block 0 replace { Command: "scoreboard teams leave @a[score_home_min=1]" }
say ALWAYS TWO TEAMS GAME
blockdata 138 150 149 { Command: "scoreboard players set @a IsSinglePlayer 0" }
say START CLOCK LOOP
blockdata 150 128 150 { Items: [ { id: stone, Count: 1 } ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment