Easy NPC

Easy NPC

2M Downloads

All NPCs are deleted when the command /easy_npc delete @e[x=X,y=X,z=X] execute [HELP]

Twentardo opened this issue · 2 comments

commented

Hello,

I was just creating a new NPC would disappear and appear in another area, but when I wanted to delete him (using the command with the specific coordenates), I accidentally deleted all my NPCs.

I don't know if it was my mistake, but there is some way to recover my NPCs? Maybe with a command or looking in the mod files?

Thanks for reading! I will be waiting with my Minecraft world open just in case.

Regards!

commented

Unfortunately, there is no built-in automatic backup or recovery function for NPCs in the current version. NPCs are stored within the chunk data, so if you have a world backup, they should still exist in that backup.

However, in your current world, I’m afraid there’s no way to recover them. 😞

The reason all NPCs were deleted is due to how the position argument (e.g., [x=X,y=X,z=X]) works. This argument must be used alongside additional filters like distance, volume, or limit. Without these filters, the position argument is ignored, and all NPCs are selected instead.

I understand how frustrating this situation is, and I will work on implementing an automatic backup system for NPCs in future updates to prevent issues like this.
Unfortunately, I’m unable to assist with recovery in your current world. I’m very sorry for the inconvenience!

commented

Oh, I understand :(

But asides the mod, I tried copying the region (mca) folder, and the new NPCs I generated for the test were there, do you know some way to recover the region folder of 1 hour (or so) ago?

EDIT: I just saw that the NPCs that were not into charged chunks still there, idk if that helps :P

Thanks!