#(bloodwolf) Despawn NPCs while unloaded?

22 messages · Page 1 of 1 (latest)

boreal condor
#

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?

cobalt inletBOT
#

(bloodwolf) Despawn NPCs while unloaded?

wise flameBOT
cobalt inletBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

cerulean wind
#

Npcs do despawn when chunks are unloaded

#

@boreal condor

boreal condor
#

Strange even when I use the command I get the notif that they despawned but they’re still there

#

Might just use a chunk loader all g I guess

cerulean wind
boreal condor
#

im in spawn chunks, type despawn, teleport to where the NPCs are and theyre still there

cerulean wind
#

If you enable debug mode in config you can see respawns happens

boreal condor
#

they're spawned but for some reason it says theyre already despawned

[Citizens] Tried to despawn 3{questerMining, PLAYER} while already despawned, DespawnReason.REMOVAL

#

with the chunkloader on:

23.03 02:10:19 [Server] INFO bloodwolf2609 issued server command: /npc despawn 3
23.03 02:10:19 [Server] INFO [Citizens] Preventing further respawns of 3{questerMining, PLAYER} due to DespawnReason.REMOVAL
23.03 02:10:19 [Server] INFO [Citizens] Despawned 3{questerMining, PLAYER} DespawnReason.REMOVAL
23.03 02:10:21 [Server] INFO bloodwolf2609 issued server command: /npc spawn 3
23.03 02:10:21 [Server] INFO [Citizens] Removing respawns of 3{questerMining, PLAYER} due to SpawnReason.COMMAND
23.03 02:10:21 [Server] INFO [Citizens] Spawned 3{questerMining, PLAYER} SpawnReason.COMMAND

boreal condor
#

all g, can close

cerulean wind
boreal condor
#

ye im just gonna use /forceload on the chunks should be fine

cerulean wind
cerulean wind
#

despawning works fine for me

sudden nebulaBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@boreal condor

boreal condor
#

cheers