Skip to content

Cooldown

Lumii edited this page Nov 1, 2026 · 2 revisions

Overview

Citrine provides a stack-based cooldown system that stores cooldown data directly in an ItemStack's NBT. Unlike vanilla's player-based item cooldowns, this allows individual item stacks to maintain independent cooldowns.

Package: org.carpentry.citrine.api.cooldown

StackCooldownManager

StackCooldownManager provides a static method for setting stack cooldowns.

Setting a cooldown

StackCooldownManager.setCooldown(world, stack, 100);

Sets a cooldown of 100 ticks on the specified item stack.

Clone this wiki locally