Remember - If you are using Realms, you must enable Command Blocks in your Realms Game World Options. The default setting is command blocks disabled.
Give Command Block
/give IGN command_block
(IGN = in game name)
Make Scoreboard Objective totalKillCount - tracks all mob and player kills
/scoreboard objectives add Kills totalKillCount
Display Mob and player Kills Objective in Sidebar
/scoreboard objectives setdisplay sidebar Kills
Add all players to scoreboard Objective Kills
/scoreboard players add @a Kills 0
Remove Kills from scoreboard for a reset
/scoreboard objectives remove Kills
Create Teams
/scoreboard teams add blue
/scoreboard teams add red
Random Team Assignment
Team Blue
/scoreboard teams join blue @r[team=,c=3]
Team Red
/scoreboard teams join red @r[team=,c=3]
value "3" will put three players on the team
Color the Names in the Sidebar blue or red to Display Teams
/scoreboard teams option blue color blue
/scoreboard teams option red color red
Clear Teams for Reset
/scoreboard teams remove red
/scoreboard teams remove blue
OPTIONAL COMMANDS FOR FURTHER CUSTOMIZATION
Set World Spawn
If you want zero zero to be spawn, you can set it with this command. If you are using command blocks instead of chat commands, the command blocks will need to be in the same chunk as spawn so they continue to operate even when players are not around.
/setworldspawn X Y Z (use any coordinate)
/setworldspawn 0.0 0.0 0.0
World Border Set and Add and Subtract value
/worldborder center X Z -Use the coordinates for the center of your map or spawnpoint. You don't need the Y coordinate.
/worldborder set 2000
/worldborder add 500
/worldborder add -500
Spread Players
/spreadplayers X Y <value for how far apart the players will be> <value for how far players will be from center> <true or false (true for teams) @a
/spreadplayers 0.0 0.0 100 700 true @a
Health Regen Off
/gamerule naturalRegeneration false
Health Regen On
/gamerule naturalRegeneration true
DUMMY SCOREBOARD FOR RACE TO COLLECT SOMETHING OTHER THAN MOB KILLS
Gold ingots is used for an example. You can swap out gold_ingots to track a different item.
Dummy scoreboards need a circuit of at least four command blocks because it is not a standard/default scoreboard.
Add Gold Ingot Objective to Scoreboard
/scoreboard objectives add gold_ingots dummy
Add all Players to Gold Ingot Scoreboard
/scoreboard players add @a gold_ingots 0
Scan Inventory for gold ingots and display score in sidebar:
Need 4 Command Blocks in a Circuit for Continuous Scanning
This is not as daunting as it looks. You can set up a mob kill map with the first four commands. The rest of the commands can improve or customize your mob kill map.
If you need any help setting up your own mob kill map let me know.
Mineclash MOB Hunt Map Tutorial
Remember - If you are using Realms, you must enable Command Blocks in your Realms Game World Options. The default setting is command blocks disabled.
Give Command Block
/give IGN command_block
(IGN = in game name)
Make Scoreboard Objective totalKillCount - tracks all mob and player kills
/scoreboard objectives add Kills totalKillCount
Display Mob and player Kills Objective in Sidebar
/scoreboard objectives setdisplay sidebar Kills
Add all players to scoreboard Objective Kills
/scoreboard players add @a Kills 0
Remove Kills from scoreboard for a reset
/scoreboard objectives remove Kills
Create Teams
/scoreboard teams add blue
/scoreboard teams add red
Random Team Assignment
Team Blue
/scoreboard teams join blue @r[team=,c=3]
Team Red
/scoreboard teams join red @r[team=,c=3]
value "3" will put three players on the team
Color the Names in the Sidebar blue or red to Display Teams
/scoreboard teams option blue color blue
/scoreboard teams option red color red
Clear Teams for Reset
/scoreboard teams remove red
/scoreboard teams remove blue
OPTIONAL COMMANDS FOR FURTHER CUSTOMIZATION
Set World Spawn
If you want zero zero to be spawn, you can set it with this command. If you are using command blocks instead of chat commands, the command blocks will need to be in the same chunk as spawn so they continue to operate even when players are not around.
/setworldspawn X Y Z (use any coordinate)
/setworldspawn 0.0 0.0 0.0
World Border Set and Add and Subtract value
/worldborder center X Z -Use the coordinates for the center of your map or spawnpoint. You don't need the Y coordinate.
/worldborder set 2000
/worldborder add 500
/worldborder add -500
Spread Players
/spreadplayers X Y <value for how far apart the players will be> <value for how far players will be from center> <true or false (true for teams) @a
/spreadplayers 0.0 0.0 100 700 true @a
Health Regen Off
/gamerule naturalRegeneration false
Health Regen On
/gamerule naturalRegeneration true
DUMMY SCOREBOARD FOR RACE TO COLLECT SOMETHING OTHER THAN MOB KILLS
Gold ingots is used for an example. You can swap out gold_ingots to track a different item.
Dummy scoreboards need a circuit of at least four command blocks because it is not a standard/default scoreboard.
Add Gold Ingot Objective to Scoreboard
/scoreboard objectives add gold_ingots dummy
Add all Players to Gold Ingot Scoreboard
/scoreboard players add @a gold_ingots 0
Scan Inventory for gold ingots and display score in sidebar:
Need 4 Command Blocks in a Circuit for Continuous Scanning
/testfor @a[r=1000] {Inventory:[{id:"minecraft:gold_ingot"}]}
/stats entity @a set AffectedItems @p gold_ingots
/execute @a ~ ~ ~ clear @a minecraft:gold_ingot 0 0
/scoreboard objectives setdisplay sidebar gold_ingots
Mute Command Block Output in Chat
/gamerule commandBlockOutput false
This is not as daunting as it looks. You can set up a mob kill map with the first four commands. The rest of the commands can improve or customize your mob kill map.
If you need any help setting up your own mob kill map let me know.
Here's me playing the map a little.