Hi, I'm in the middle of making a quest where a random quest NPC will despawn and start a detective mission to respawn them.
The problem I have at the moment is that the NPC is unloaded when the command block that has '/npc despawn 3' triggers, so when the command block triggers initially, unless someone is loading the chunks, the NPC will still be there for whoever shows up next. (cmd blocks are in spawn chunks)
My current workaround is to permanently have the command block set to 'repeat' + 'redstone' but I'd rather not have a command block perma repeat until someone completes the quest and respawns them. I've tried detecting when the NPC despawns so I can shut the block off but it wasn't reliable.
Just wanted to ask if there was any workaround for NPCs in unloaded chunks to be despawned?