Cooldown

fun Cooldown(cooldown: Int? = null, group: Key? = null): ItemBehaviorFactory<Cooldown>

Creates a factory for Cooldown behaviors using the given values, if not specified otherwise in the item's config.

Parameters

cooldown

The cooldown, in ticks. Used when cooldown is not specified in the item's config, or null to require the presence of a config entry.

group

The cooldown group. Falls back to the item's id if not specified. Used when `cooldown_group is not specified in the item's config.