Skip to content

Cast Items

JasperLorelai edited this page Jul 19, 2023 · 7 revisions

Description:

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

Configuration:

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]}

Example:

diamond_sword{name:"&aGod Sword", amount:3, enchants:{ fire_aspect:1, smite:2, sharpness:3 }, lore:[Very, Strong, Sword]}
Clone this wiki locally