forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
Variables
JasperLorelai edited this page Nov 8, 2020
·
18 revisions
Description: In MagicSpells, you can use variable to store information. Variables are defined by their name and type of information they contain.
| Option | Description | Variable Type | Default Value |
|---|---|---|---|
type |
Defines the information the variable can contain. Valid types: global, player, `` |
String | global |
permanent |
Defines if this variable's value should be saved during reloads/restarts. | Boolean | true |
scoreboard-title |
If not defined, this feature will remain being disabled. The scoreboard feature only works for player type variables. |
String | "" |
scoreboard-positon |
Defines the position of the scoreboard display. Valid positions: sidebar, nameplate, or playerlist. |
String | "" |
exp-bar |
Defines whether to display this variable on the experience bar. This does not modify the real experience. | Boolean | false |
boss-bar |
If anything is defined here, the variable value will be displayed as the progress of a boss bar. This can be a boss bar title (string), or a BossBar configuration section (map). | String or Section | null |
| Option | Description | Variable Type | Default Value |
|---|---|---|---|
title |
Defines the title of the boss bar. | String | "" |
style |
Defines the boss bar style. | String | "solid" |
color |
Defines the boss bar color. | String | "purple" |
namespace-key |
Defines the Namespace Key of this boss bar. If this is unique, this boss bar will display separately. | String | "ms_variable" |
The global variable type