ItemDefinition
interface ItemDefinitionon_login { player -> val shark = Assets.Item.shark player.message("${shark.displayName ?: shark.name}: ${shark.examine ?: "no examine text"}") if (shark.stackable) player.message("Sharks stack.") shark.spawn(player.tile4, amount = 2, owner = player)}val name: Stringval id: Intval asset: AssetdisplayName
Section titled “displayName”val displayName: String?stackable
Section titled “stackable”val stackable: Booleanexamine
Section titled “examine”val examine: String?wearSlot
Section titled “wearSlot”val wearSlot: EquipmentSlot?options
Section titled “options”fun options(menu: ItemMenu): List<String?>