Topic category: Help with modding (Java Edition)
Alright, let's get straight to the point: I am trying to make an item that when right clicked on a block spawns a mob. And that part is the easy part.
What I'm struggling to figure out how to do is how to make it so that once I spawn one mob, I can't spawn more. And once the spawned mob dies, I can spawn a new one.
Basically, I'm trying to make a spawn egg that only can spawn one mob at a time.
Is that even possible? I figured I'd have to use global variables (probably player_persistent)
Any and all help is appreciated, though the news of "it's impossible" would be quite disappointing.
Thank you :)