Skip to content

Scoreboard Data Spell

JasperLorelai edited this page May 19, 2024 · 2 revisions

Source Code

spell-class: ".targeted.ScoreboardDataSpell"

Important

Since 4.0 Beta 13 you can use PlaceholderAPI and its Scoreboard Objectives expansion in combination with our %papi placeholder to reference the objective score directly instead of storing it in a variable first.

Example: %papi:objective_score_{<objective>}%

Value Supported
entity true
location false
entity_from_location false

Description:

Stores the objective's score for the entity inside the passed variable.

Configuration:

Since 4.0 Beta 13 these options support dynamic values through string expressions.

Option Description
variable-name Name of the variable to store the score to.
objective-name Objective to store in the variable.
Clone this wiki locally