Skip to content

Entity Components

Inspired by vanilla’s Data Components, Kanoho’s entity components provide powerful new ways of obtaining data about entities.

Kanoho’s components are stored as NBT tags, and always reside within a kanoho compound tag. For example, check if enderpearls are on cooldown you could use the following command:

execute if data entity @s {kanoho:{cooldowns:["minecraft:ender_pearl"]}} # etc...
LocationTypeDescription
cooldownsstring arrayA list of resource locations representing the current use cooldowns affecting the player.
useditemWhen present, is set to the NBT of the item which was used this tick.
resourcepackstringThe ID of the server resource pack the player is currently using, read more.