12

Using the scoreboard 1.8

Enjoy reading!

  • 3,248
    Views, 18 today
  • 10 Comments
  • 5 Favorites
  • Flag / Report

Get Embed Code

Forum:
HTML:
Link:
avatar
Headaxe
Level 31 : Artisan Zombie
This blog is part of my new tutorial collection, which shows you interesting stuff and basics about redstone, the scoreboard, command blocks and much more!


The scoreboard gives you options, you never had before.
If you are reading this blog, I guess you don't make use of it, cause it's too complicated for you.
But that's no problem.
Using the scoreboard can be easier than you might think.

/scoreboard objectives
/scoreboard objectives list
Using this command allows you to see a detailed list of all objectives you added to the world.
/scoreboard objectives list

/scoreboard objectives add/remove
This command allows you to add objectives or to remove them.
When you are creating an objective, you'll have to add a criteriaType.
You can choose between 5 different types.
You can only remove objectives that already exist. The internal name is always the name used in operations and more, while the display name only appears on lists and more.
Objective types
dummy: If somebody has an objective value/score with a criteria type named dummy, he won't be able to change the value by hand. The only way to change the value then, is to use a /scoreboard players command.
health: This type reflects your hearts. If you have 10 hearts, the score is 20.
totalKillCount: You get 1 point for killing any player, mob or animal.
playerKillCount: You get 1 point for killing any player.
deathCount: You get 1 point for each respawn.
achievement.(internal achievement name): Checks if you have earned a cercaint achievement
stat.(internal stat name): Tests for several actions like walking, being hit, falling and much more
stat.craftItem.(Item ID): Tests for crafting a cercaint item or block
stat.useItem.(Item ID): Tests for using an item (placing blocks, throwing eggs...)
stat.breakItem.(Item ID): Tests for breaking an Item (Mining with tools)
stat.mineBlock.(Block ID): Tests for amount of one type of blocks mined
stat.killedEntity.(Mob ID): Tests for amount of one type of mobs killed by the player
stat.entityKilledBy.(Mob ID): Tests how often the player was killed by one type of entities
stat.teamkill.(team color): Checks how many team members with a cercaint team color were killed by the player
stat.killedByTeam.(team color): Checks how often the player was killed by team members with a cercaint team color
You can add a custom name for your brand new objective too.
/scoreboard objectives add (internal objective name) (objective type) [display objective name]
/scoreboard objectives remove (internal objective name)

/scoreboard objectives setdisplay
People want to see their score, money, values or other people's hearts.
If you want to add this function, you can choose between three different display slots.
Remember that you can only put existing objectives into a setdisplay mode.
Display Slots
sidebar: Your score will be displayed at the right side of the screen.
Scores of players who aren't online get displayed too, so you can use this as a highscore list.
sidebar.team.(team color): The sidebar is only visible to players that are member of a team with a cercaint team color
belowname: If you are in a distance of 20 blocks to an other player, you will be able to see his score below the player name.
list: Press tab and the score will be displayed next to the name of a player.
If you don't add a name after the display slot, the slot will get cleared.
/scoreboard objectives setdisplay (display slot) [internal objective name]


/scoreboard players
/scoreboard players add/remove/set
This is the most essential command for interacting with player scores.
By using it you are able to modify a players score.
You can even add scores to nonexistent players, so they just exist for counting or multiplying scores etc.
Player names that are not supposed to appear in the sidebar or other listings, have to start with a ''#''.
/scoreboard players remove (player) (internal objective name) (amount)
/scoreboard players add (player) (internal objective name) (amount)
/scoreboard players set (player) (internal objective name) (amount)
/scoreboard players set #(player) (internal objective name) (amount)

/scoreboard players reset
By using this command, you can reset all scores a player reached or reset one objective score a player reached.
''*'' is a new 1.8 selector which targets everyone tracked by the scoreboard.
Using it will reset everyone's score, even if they are not online, which is helpful when your sidebar is spammed with
player scores that are not even online and you don't want that.
/scoreboard players reset (player) [internal objective name]
/scoreboard players reset *


/scoreboard players list
Use this command to see the scores of different players or to see all players tracked by the scoreboard.
Without using a name, you can list all players tracked by the scoreboard.
By adding a name you can see all scores somebody has.
''*'' is a new 1.8 selector which targets everyone tracked by the scoreboard.
By using it as a player in this command you get every score of everyone tracked.
/scoreboard players list [player]
/scoreboard players list *

/scoreboard players test
Tests if a player has a score in a cercaint objective that's between a minimum score and an optional maximum score.
The command is much easier to use than the old /testfor way of testing.
/scoreboard players test (player) (internal objective name) (min player score) [max player score]

/scoreboard players operation
That command is actually working like a calculator and helps you adding scores to each other, multiplying scores and much more.
The player you are calculating with, doesn't even has to be online, so you can use ''ghost'' players aswell.
Operation types
+= Adds the source player's source score to the target player's target score
-= Removes the source player's source score from the target player's target score
*= Multiplies the source player's source score with the target player's target score
/= Divides the target player's target score through the source player's source score
/scoreboard players operation (target player) (internal target objective name) (operation type)
(source player) (internal source objective name)

The command is the most complicated part of the scoreboard, so I will explain you it a bit further.
The target player is always the player who's score will get changed in the end.
The target objective is the objective that is going to be affected by the operation.
The operation type defines how source player and target player interact in the operation.
The source player is the player who's score is added, removed etc. from/to/with the target player's score.
The source objective selects the objective that the source player is adding/removing etc. from/to/with the target player.
SethBling's coolness: 100 | Minecraft's redstone: 50
/scoreboard players operation SethBling coolness += Minecraft redstone
In this example Minecraft's 50 redstone would be added to SethBling's 100 coolness, which would mean that SethBling's coolness score is now 150.


/scoreboard teams
/scoreboard teams list
Use it to list all teams you created without adding a team name or check which players are in a cercaint team.
/scoreboard teams list [internal team name]

/scoreboard teams add/remove
Create or remove teams.
When you are creating a team you can type the system name first and then add a display name.
/scoreboard teams add (internal team name) [display team name]
/scoreboard teams remove (internal team name)

/scoreboard teams join/leave
You can join/leave a team, you created or let other people join/leave the team. If you use the command without a player, you will get selected as the person to join/leave the team.
/scoreboard teams join (internal team name) [player]
/scoreboard teams leave [player]

/scoreboard teams option
Use this command to customize a team.
There are several things you can change in a team, that affect it's appeareance or  the interaction between the players within a team.
Options
color: Select a display color for your team. The nametags of players will change their color to the team color you selected. Choose between "black", "dark_blue", "dark_green", "dark_aqua", "dark_red", "dark_purple", "gold", "gray", "dark_gray", "blue", "green", "aqua", "red", "light_purple", "yellow", and "white".
friendlyfire: Tells if players in one team can attack each other. The option does not effect lava, potions, tnt, or other indirect attack sources. Choose between ''true and ''false''.
seeFriendlyInvisibles: Allows you to see a transparent player model of your team members, while they are invisible. Choose between ''true'' and ''false''.
nametagVisibility: Affects which people are able too see you team's nametag.
Choose between:
''never'': No one see's your nametag
''hideForOtherTeams'': Other teams can't see your nametag
''hideForOwnTeam'': Your own team can't see your nametag.
''always'': Everyone can see your nametag.
/scoreboard teams option (internal tam name) (option) (value)


Player selection
If you want to interact with command blocks, you can add some scoreboard based arguments.
As you know, you can use @p @a and @r to select different players.
You can add special arguments to this players-selections.
In 1.8 you are able to select all entities using @e.
@a[score_money=100,score_money_min=100]
Will select all people who have a minimum score of 100 and a maximum score of 100.
@r[team=red]
Will select a random player, who is member of team red
@p[team=]
Will select the nearest player, who is member of no team.

Read the wiki article about Command Blocks, if you want to find out all about arguments.



~THE END~



I am from germany, so my english might be very bad.


But I hope this blog was helpful for you anyway.


If you want to read more nice tutorials:




Tags:Tutorial, How To, Scoreboard, Commands, Cheats, Command Blocks, Score, Display, Players, Minecraft, Objectives, Teams, PVP
Credit:Headaxe

More Blogs by HeadaxeView All

Posted 2013-03-04 07:23:45
by Headaxe
Posted 2013-05-29 09:44:01
by Headaxe

Smaller Improvements and Fixes : 02/24/2014 5:34:40 am2/24/14

+Edited some command descriptions
+Fixed some grammar
+Fixed /teams option mistakes --> ''(option)'' and ''(player)'' switched
                                                         --> description of teams option nametagVisibility was false

Layout Fix : 02/19/2014 12:42:52 pm2/19/14

+Fixed all removed spoiler titles, colors and much more problems that occured in the new PMC text version.

Up-To-Date Update : 02/18/2014 10:17:03 pm2/18/14

+adding the 1.8 features one after another and giving the whole blog a new look

Reboot : 02/18/2014 9:34:22 pm2/18/14

+Fixed the formatting errors after a PMC update
+''Examples'' are now general command instructions
+Edited a few text parts

Optical Update : 06/22/2013 5:03:09 am6/22/13

+Fixed some grammar
+Edited the Highlight color of some things
+Changed the font size of the Headers

Smaller Improvements : 06/21/2013 12:07:53 pm6/21/13

+Fixed the bad spelling of scoreboard...ON THE COVER!
+Fixed some grammar
+Added some details about the new tutorial collection.

Comments :

Join us to post comments.

1 - 10 of 10

GalePlay
Level 11
Journeyman Engineer
March 11, 2014, 5:16 am

Hi,
I'm doing some stuff with the scoreboard objective "stat.mineBlock.stained_glass" but I don't know how to set the color of the stained glass. Do you know how I can do this? Would be nice :)

Headaxe
Level 30
Artisan Zombie
March 11, 2014, 7:25 am

I'm sorry, but it is not possible to specify the damage value in this case.

GooDGrounD
Level 3
Apprentice Engineer
March 4, 2014, 6:17 am

Omg Thnx Diamond For You!

DragonhuntIII
Level 15
Journeyman Dragonborn
March 4, 2014, 5:55 am

Looks good

Slimeball18904
Level 10
Journeyman Dragon
July 14, 2013, 9:51 am

Thx for helping me make my pvp map!

Headaxe
Level 30
Artisan Zombie
July 14, 2013, 11:39 am

No problem ;)

Slimeball18904
Level 10
Journeyman Dragon
July 14, 2013, 12:02 pm

Oh btw, your english wasn't that bad.

iVelocityGaming
Level 26
Expert Pixel Painter
June 21, 2013, 2:58 pm

Nice blog. Keep up the awesome work!

Headaxe
Level 30
Artisan Zombie
June 21, 2013, 3:01 pm

Thanks dude.
I am already working on a new tutorial called ''Advanced Scoreboard''.
So keep an eye on me if you don't want to miss it :D

iVelocityGaming
Level 26
Expert Pixel Painter
June 21, 2013, 3:03 pm

Awesome. Your tutorials are really helpful!

1 - 10 of 10