Item Serialize Spell - MomoPewpew/MagicSpells GitHub Wiki
spell-class: ".command.ItemSerializeSpell"
Description:
Spell serialises the handheld item into an ItemStack object 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). Find out more info about ItemStack Serialization here. Magic Items support ItemStack objects in this format:
magic-items:
item:
data:
# ItemStack
# This is the serializer key
type: external::spigot
Configuration:
| Option | Description | Variable Type | Default Value |
|---|---|---|---|
serializer-key |
Best leave this on the default value if you don't know what it is. | String | "external::spigot" |
indentation |
This is the indentation the ItemStack YAML object will be generated with. | Integer | 4 |
Example:
item-serialise:
spell-class: ".command.ItemSerializeSpell"
always-granted: true
incantations: ["/serialise","/serialize"]
indentation: 2
str-cast-self: "Item serialised."