Skip to content

Other Data Types

JasperLorelai edited this page Jul 26, 2023 · 4 revisions

Block Data:

Block data is a pair of Material and its possible block states. The material part is case insensitive, meaning it could be lowercase. Format:

material[state_1=value_1, state_2=value_2, ...]

Examples:

# without state
block: "stone"
# with state
block: "quartz_stairs[waterlogged=true]"

Attributes:

  • A list of strings representing attribute modifications.
  • Format: <attribute> <value> [operation].
  • Attributes can be any case and are as listed here.
  • Operations can also be any case, are as listed here, and are by default add_number.
  • When defined on Magic Items, you can also add a [slot] after [operation], which by default applies the attribute modifier to all slot types.

Example:

attributes:
    - generic_movement_speed 1 add_number

Reagents:

  • Costs represent a string list of reagents of the spell.
  • Follows format: <type> <data>
  • type can be: health, mana, hunger, experience, levels, variable, durability, or money (if Vault plugin is present).
  • data for all types should be the quantity required (double value, 1 by default), except for variable where it should be the variable name before quantity. (e.g. variable varName 10)
  • You can also require items as costs. Format for that is <item> <quantity>, where item should follow Cast Items format, and quantity is 1 by default.

Projectile types:

One of:

  • arrow
  • dragonfireball
  • egg
  • enderpearl
  • fireball
  • fishhook
  • largefireball
  • lingeringpotion
  • llamaspit
  • shulkerbullet
  • smallfireball
  • snowball
  • spectralarrow
  • splashpotion
  • thrownexpbottle
  • thrownpotion
  • tippedarrow
  • trident
  • witherskull
Clone this wiki locally