Pixelmon Mod - Bug tracker

[9.1.3] NPC Trainers cannot be killed or teleported. not a bug

Ticket description:
NPC Trainers are not able to be killed or teleported. This was also an issue in 9.1.2.
Using the command /kill @e[type=pixelmon:npc_trainer, distance=..5, limit=1] will not kill any NPC Trainers. I have also tried to /tp NPC trainers only for item frames to instead be the first entity of type pixelmon:npc_trainer to be found.

The command /effect clear @e[distance=..5] on an NPC trainer works perfectly well.
Upon adding the type with /effect clear @e[type=pixelmon:npc_trainer,distance=..5], this command also works.

But only the /effect command has worked with npc trainers in my testing.

Upon research it seems that this has been an issue for many users for at least a year, but I was not able to find a bug report on the issue so I am submitting this one now.

Comments

#29444 Posted by Decent60 » 21 Mar 2023 04:48

Greetings,

To kill an NPC, you'll need to use the proper command: /npckill
From the Commands wiki page:
Code: Select all/npckill <world> <type>: Removes all NPCs of the specified type. The type argument can be any of the following:

all: All NPCs.
chatting: Chatting NPCs.
doctor: Doctors.
relearner: Move relearners.
shop: Shopkeepers
trader: Traders
trainer: NPC Trainers.
tutor: Move tutors.
.


For the second one: Each NPC should have a UUID, if you are able to grab that, you can teleport an NPC to a location. Most UUID can be grabbed with the NPC Editor tool in-game.

Ticket details

  • Ticket ID: 20242
  • Project: Pixelmon Mod
  • Status: Not a bug
  • Component: Error
  • Project version: 1.16.5-9.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: Forge 36.2.35
  • What else would be useful to know?: Essential-forge_1-16-5, Music Triggers 5.4,
  • Assigned to: Decent60
  • Reported by: yosheDev (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 20 Mar 2023 18:58
  • Ticket last visited by: Decent60 on 21 Mar 2023 04:48
JOIN THE TEAM