#Apply cooldown on 1 of item's right-click functionality

17 messages · Page 1 of 1 (latest)

solar ingot
#

I'm trying to increase the cooldown of an OP ability which occurs when crouching and using right-click (Mutant Monster's Ender Hand), but

1. How do I detect if the player is crouching in this event instance?

2. How do I actually apply the right-click-cooldown in the first place? (The ability already has a cooldown, but its only for 1 second, but I figured applying a longer cooldown should overwrite it)

    if (// 1. condition if player is crouching) {
      // 2. apply cooldown of 10 seconds
    }
})```
void pollenBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

tight turtle
#

To check if the player is crouching do event.player.isCrouching() iirc

#

and for cooldown: event.player.addItemCooldown(item, ticks)

solar ingot
#

nice

#

lemme apply it and see how it goes

tight turtle
#

probejs may help you finding these functions if you don't have it already

solar ingot
#

wiat nvm

#

its cause 1.19 and it asks for 1.21

#

it sucks but yeah

solar ingot
tight turtle
solar ingot
#

i did and i still cant get it to work

#

oh well

solar ingot
#

nvm got it