Started by
DragonOfAsparas
on
Topic category: Advanced modding
Hey, i'm trying to make an item that has a cooldown just like the enderpearl in 1.9. When the item is right clicked it summons lightning (example) and then it has like 10 seconds cooldown before it can used again. Or if someone know the code for the cooldown so i can paste it in the code somehow. Anyone who has a solution?
Thanks
how?
Yes but how
some fun necroposting is happening here, well
now the way for this is just to use "set item in cooldown for X ticks" inside item procedures, it blocks out some actions like right clicking, the other who aren't blocked needs to be put on cooldown manually with nbt tags