Jump to content

Recommended Posts

Posted

Is there a way to delete NPCs or Villagers? This is on a server, we tried making an NPC village by copying and pasting two NPC/Villager huts but we accidently copy/pasted in two of the same villager as well, so now we have two extra villagers with the same name as our original villager. Is there a way to delete this villager? We've tried killing him, but his body doesn't disappear and we cant skin his dead body to remove it either. THANKS!

 

 

Posted (edited)

I guess you mean one of the traders, as of now there are no other npcs?

Not only does the body not disappear, the trader will come back from the dead, still remembering that you killed them, still pissed at you and will try to kill you on sight and as you might know traders punch really hard.

why didn't you spawn a completely new trader instead of copy/pasting them? I'm not aware of any way to get rid of a trader for sure, i mean other than using a worldbackup from before copying them.

Edited by Hal13
  • Like 1
Posted

As Hal13 has said: create new trader wagon and spawn new trader with "/entity spawn humanoid-trader-survivalgoods".  You can use any other type of trader (replace "survivalgoods" with another type - see folder "<yourServerFolder>/assets/survival/entities/humanoid" for types). Or better copy some trader configuration from this folder, change configuration, rename it and copy back to configuration folder. (Disclaimer: I haven't tested it yet, but I suppose it should work.)

  • 3 years later...
Posted

I too would like to know how to delete dead villagers.
My issue is a bit different, I suppose, but the issue is the same - a dead body that can't be dealt with and won't go away.

I've actually got a mod called VS Village (and it's extra bits) so I'm unsure if this is something that can be fixed with the (original) game codes or the mod creator needs to help with this.
I've put in my question on the modder's page, in case anyone can help there too. I'm covering all bases, lol!
It seems to be an issue I'm seeing quite a few places - there's no way to get rid of a villager body....and that's a problem.
Can anyone help with this?

I've already looked up some codes that are apparently meant to help, but I'm either not applying them right, (do you have to focus on the body in question, or do you need the individual NPC body code, like in Skyrim, or what?) or they're just plain not working for this particular instance for me.
I found an entry somewhere that listed this page from the Wiki page, just in case this might help anyone else, or it might give you an idea what I've already tried.
https://wiki.vintagestory.at/index.php?title=List_of_server_commands/entity

If anyone can give their perspective in this, that'd be great!
This is a really niggling issue for me.
#firstworldgamerproblems.   :P

Posted (edited)
22 minutes ago, Sasha Densikoff said:

If anyone can give their perspective in this, that'd be great!

You could nuke all entities in a certain range, or, what I prefer to do, be a little more precise and only remove the entity you are looking at.

To do that, look at an entity and execute

/entity remove l[]

If you want to go nuclear and remove all dead entities, execute

/entity remove e[alive=false]

If you want to bomb with a precision strike, you could add a range argument to the command, where x is the range in blocks.

/entity remove e[range=x,alive=false]
Edited by Brady_The
  • Thanks 1
  • 4 weeks later...
Posted
On 1/4/2025 at 6:24 PM, Brady_The said:

You could nuke all entities in a certain range, or, what I prefer to do, be a little more precise and only remove the entity you are looking at.

To do that, look at an entity and execute

/entity remove l[]

If you want to go nuclear and remove all dead entities, execute

/entity remove e[alive=false]

If you want to bomb with a precision strike, you could add a range argument to the command, where x is the range in blocks.

/entity remove e[range=x,alive=false]

best guide so far

  • Like 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.