forked from TheComputerGeek2/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 3
Cast Items
JasperLorelai edited this page Jul 19, 2023
·
7 revisions
Cast items are basically Magic Items defined in a single string line. Due to limitations, not all properties of an item are supported.
It's best to reference a Magic Item instead.
item: magicItemName
The cast-item format is very simple (JSON stringified): itemType{itemData, itemData,...}
. Here's what can you type in itemData
:
Data | Description | Variable Type | Example |
---|---|---|---|
name |
Display name of the item. | String | stone_sword{name:"God Sword"} |
amount |
Amount of the item. | Integer | stone_sword{amount:2} |
durability |
Durability of the item. | Integer | stone_sword{durability:10} |
customModelData |
Custom model data of the item. | Integer | stone_sword{customModelData:20} |
color |
Hex color of the item. | String | leather_boots{color:#214365} |
potion |
Potion type of the item. | String | potion{potion:mundane} |
title |
Title of the item. | String | written_book{title:"Interesting Book"} |
author |
Author of the item. | String | written_book{author:"God"} |
enchants |
Enchants of the item. | enchantName:enchantLevel |
stone_sword{enchants:{ fire_aspect:1, smite:2, sharpness:3 }} |
lore |
Lore of the item. | string1,string2,... |
stone_sword{lore:["&aVery Strong", "&bStrong", Sword]} |
diamond_sword{name:"&aGod Sword", amount:3, enchants:{ fire_aspect:1, smite:2, sharpness:3 }, lore:[Very, Strong, Sword]}
!!!This is not the official MagicSpells wiki!!!
This wiki was cloned from the official one to document the changes to the plugin that were made specifically for Dwarves vs Zombies 2023 and Lords of Minecraft 2