Scoring

The score module can be used to give matches a score limit and modify how many points are added to the score for each kill or death. It can also be used to create score boxes that give a player or team a certain amount of points when they enter it.

Score ElementDescriptionValue/ChildrenDefault
Node containing the score settings and score boxes.
Sub-elements
Max score that can be reached before the match ends.StringNo limit
Points that a team will need to lead by to win. This will increase the score limit until a <limit> is reached.NumberNo mercy
Points to give to a team for killing an enemy playerNumber0
Points to deduct from a team for the accidental death of a team memberNumber0
A single score box.Score Box

Examples

<score>
<!-- First team to reach 100 points wins the match -->
<limit>100</limit>
<kills>3</kills> <!-- +3 points for every kill -->
<deaths>2</deaths> <!-- -2 points for accidentally dying -->
</score>
<score>
<!-- The winner is the first team to get a mercy lead of 5 or reach the limit of 10. Initially a score limit of 5 will be shown -->
<mercy>5</mercy>
<limit>10</limit>
</score>

Score Boxes

A score box will give points to a players team when they enter or bring a redeemable item to the score box region. Portals should be setup to remove the player from the immediate vicinity of the score box to prevent multiple scores.

Score Box ElementDescriptionValue/Children
A single score box.Score Box Sub-elements
Score Box Attributes
AttributeDescriptionTypeDefault
Points awarded for entering the box.Number0
Don't notify players when points are scored in this box.true/falsefalse
PropertyRequiredThe location and size of the score box.Region
PropertyFilter who can score in this box.FilterNo Filter
PropertyDynamic conditions under which this score box is applied.Dynamic Filter
Score Box Sub-elements
ElementDescriptionValue/Children
Items that can be redeemed at this score box for points.
PropertyRequiredThe region where this score box is located.Regions
PropertyFilter who can score in this box.Filters

Example

<score>
<!-- Only allow red team to use this score box, and give them two points -->
<box points="2" filter="only-red">
<region><cylinder base="21,8,63" radius="1" height="2"/></region>
</box>
</score>
<score>
<box points="8" filter="cyan" region="cyan-scorebox"/>
</score>

Redeemables

A score box can also award points in exchange for particular items carried by the player when they enter the box. These items are defined inside a <redeemables> score box sub-element as <item> tags. Each item contains a material name and an optional points="..." attribute specifying the number of points awarded for each item.

Example

<score>
<box filter="only-red" region="red-depot">
<redeemables>
<item points="5">diamond</item>
<item points="3">emerald</item>
<item points="1">gold nugget</item>
</redeemables>
</box>
</score>

Time Limit

Give the match a time limit, the result attribute determines how the winning team or player is calculated when the time runs out. Result can be the name of a team, or one of the special values; "tie" for no winner, or "objectives" for the team that has the most objectives completed. The time limit can be specified in minutes, etc., by formatting it as a time period.

NOTE! This tag is not placed inside the score module, instead it is located in the root <map> element.

<time result="objectives">5m</time>
Time Attributes
AttributeDescriptionTypeDefault
Change how the winning team or player is calculated.
Accepts , , , or a Team ID.
Victory Condition|Team IDdefault
Show the remaining time in the chat and boss bar.true/falsetrue
Specify the length of the overtime once the tie is broken.Time Period
Specify a maximum duration that the overtime should last.Time Period

Overtime

Overtime can be used in order to force a single winner in a match. By using the optional overtime="..." attribute in the time element, you can specify a time period. If the score is tied once regulation time ends, the match will extend into overtime. The time will begin to tick down as soon as the tie is broken. It will reset back to the specified time if a tie is reached again or a change in the lead occurs before the time expires.

To limit how long overtime lasts, you can include the max-overtime="..." attribute as well. It, too, accepts a time period as a value. This will count down in the background and force the overtime to count down once surpassing the overtime="..." attribute's value.

Tip: Set the overtime="..." attribute to 1s for sudden death overtime.

Example

<!-- Match will last 12 minutes.
If score is tied when time reaches zero, a one-minute overtime starts. If the tie is broken
and no team makes a comeback within one minute, the leading team will win.
The overtime will last a maximum of 15 minutes -->
<time overtime="1m" max-overtime="15m">12m</time>