Skip to content

ItemDefinition

interface ItemDefinition
Example
on_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: String
val id: Int
val asset: Asset
val displayName: String?
val stackable: Boolean
val examine: String?
val wearSlot: EquipmentSlot?
fun options(menu: ItemMenu): List<String?>