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...Component Reference
Section titled “Component Reference”| Location | Type | Description |
|---|---|---|
cooldowns | string array | A list of resource locations representing the current use cooldowns affecting the player. |
used | item | When present, is set to the NBT of the item which was used this tick. |
resourcepack | string | The ID of the server resource pack the player is currently using, read more. |