Me and my friends are making a class based minigame and we are wondering how we could make usable items (such as spawn eggs, snowballs, etc) with infinite uses.
One of the classes is going to use an infinite custom spawn egg. I want to know any way I could make the spawn egg regenerate itself, so it could be used infinitely. I also want to know if there's a way to not make it regenerate itself if someone switches off the class.
I have created cooldown timers but that's usually only effective for throwing items on the ground. You could give them an item that "replenishes" what they have. When you detect it give them all the appropriate items
Not sure what plugins etc you have already but I would do what the above said. Maybe a condition that if they run out it triggers an event to give them more of the item. Could also just make a shop that sells the item for free.. but it would be more fun if it was automatic