ItemSerializeSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".command.ItemSerializeSpell"

Description:

Spell serialises the handheld item into different supported ItemStack object formats and saves it in YAML format as a magic item in ./plugins/MagicSpells/items/ (MagicSpells does not load these items, you have to move them to a spell file or general.yml just like any other Magic Items).

Configuration:

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

Option Description Type Default
serializer-key Can be external::spigot. Since 4.0 Beta 14 it can also be external::vanilla. String "external::spigot"
indentation This is the indentation the ItemStack YAML object will generate. Integer 4

Example:

item-serialise:
    spell-class: ".command.ItemSerializeSpell"
    always-granted: true
    incantations: ["/serialise","/serialize"]
    indentation: 2
    str-cast-self: "Item serialised."