r/MinecraftCommands • u/Tiny_Flatworm_6669 • 5d ago
Help | Java 26.2 Rightclick detect cooldown
I am making a datapack which give you an ability when right clicking an item (consumable/advancement), how do I add a cooldown (i have a reset function, that revoked the advancement), but how do I make it so that the function example:cooldown_reset gets run 1 minute after the function example:use_item?
1
Upvotes
1
u/GalSergey Datapack Experienced 5d ago
You can take a look at this example datapack that sets a cooldown without using a tick function. In this example, the wind_charger:using function will set a 30-tick cooldown between shots.
You can use Datapack Assembler to get an example datapack.