I'd like to create a quest where a user can activate a command block that will spawn one ocelot, but limit it so that each player can activate said command only once.
I've got the command to spawn one ocelot, which is:
/summon ocelot ~ ~1 ~ {PersistenceRequired:1}
but I don't know how to limit it so that each player can only do it only once. I found the solution to something similar, but I don't know how to integrate that into spawning animals rather than giving items.
TL;DR: How would I use a command block to allow each player to summon an ocelot only once?
tag
players that have spawned an animal, and then use that tag to prevent them from doing the same in the future. Note that this can be bypassed by ops./give
with/summon
? Just… do it. Just replace it. I don't understand the problem./summon
a player. The player argument is no longer included in the/summon
command, but it needs to be included in order for it to only allow one command per player. Unless I'm looking at it wrong.