Delays and restrictions
Parameters:
translation: 'Something cool'This name of the item will be used in the message that the item is on cooldown or forbidden.
handlers:
- HANDLER1
- HANDLER2List of events during which the action performed with the item will be handled. Possible options: CONSUME - When the item is eaten or drunk. BLOCK_BREAK RESURRECT_MAINHAND - When a totem is used on the item in the main hand RESURRECT_OFFHAND - When a totem is used on the item in the off hand BOW_SHOOT - When shooting from a crossbow/bow PROJECTILE_LAUNCH - When launching a projectile (Trident, ender pearl, firework)
WARNING!!!
Using handlers listed below may cause potential issues. The plugin won't be able to determine whether the action was cancelled, which can cause the cooldown to be applied despite the event being cancelled. For cooldowns on items created by third-party plugins, it is recommended to use their internal systems.
WARNING!!!
RIGHT_CLICK_AIR RIGHT_CLICK_BLOCK LEFT_CLICK_AIR LEFT_CLICK_BLOCK
checked-meta:
- SOMEMETA1
- SOMEMETA2By which criteria items will be compared to each other. Possible options: SIMILAR - Fully compares items ignoring amount META - Fully compares item meta MATERIAL - Compares material ITEM_FLAGS - Compares flags DISPLAY_NAME - Compares name LORE - Compares lore ENCHANTMENTS - Compares enchantments ATTRIBUTES - Compares attributes PDC - Compares PersistentDataContainer UNBREAKABLE - Compares item unbreakability POTION_EFFECTS - Compares special potion effects POTION_BASE - Compares vanilla potion effects COLOR - Compares leather armor color (no idea why, but let it be) CUSTOM_MODEL_DATA - Compares custom model data. SKULL - compares skull textures
base64: 'H4sIAAAAAAAA/somecode"Item encoding in base64 format. To obtain it, take the item in your main hand and run the command /combat copy
set-material-cooldown: true/falseWhether a visual cooldown will be set on the material. Note that this cooldown is applied to all items with the material of the item from the config, so it is recommended to use this setting only for vanilla items
Duration of the item cooldown in seconds
Which interactions will be subject to prohibition. Possible options: INTERACTED_ITEM - The item in the hand that is interacted with INTERACTED_BLOCK - The block that is interacted with.
Last updated