forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
DataSpell
JasperLorelai edited this page May 19, 2024
·
9 revisions
spell-class: ".targeted.DataSpell"
Value | Supported |
---|---|
entity |
true |
location |
false |
entity_from_location |
false |
Fetches a specific data element and places it in a variable. Only players can cast this spell. Since 4.0 Beta 13 non-players can cast it too if the variable is of a "global" type.
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
data-element |
Data elements can be found here DataLivingEntity Or DataEntity. | String | "uuid" |
variable-name |
Which variable to place the data-element in. | String |
variables:
playeruuid:
type: playerstring
permanent: true
data:
spell-class: ".targeted.DataSpell"
target-self: true
variable-name: playeruuid
data-element: uuid
str-cast-self: "Your UUID is %var:playeruuid%."