DataSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.DataSpell"

targeting cast argument values:

Value Supported
entity true
location false
entity_from_location false

Description:

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.

Configuration:

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

Example:

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%."