MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Feature Request] Add an NPC Action: Self Deletion #299

Closed norfaremc closed 4 weeks ago

norfaremc commented 1 month ago

Please implement an action that we can give an NPC to self-delete, without the need for typing in the UUID into a command to delete the NPC.

My idea is to have an NPC preset pop up for a small quest. Once the quest is complete, the NPC deletes itself, but I don't want to have to use a UUID or accidentally delete all of the NPCs on the map with the same preset, interfering with other players completing their own quests with their own NPCs. So a simple "self deletion" action that we can implement into a button click would solve this.

Thanks for all of your hard work!

MarkusBordihn commented 1 month ago

Thanks for the feedback! Is there a specific reason why the command /easy_npc delete @npc-uuid isn't working in this case? The placeholder "@npc-uuid" should automatically be replaced with the NPC's unique UUID.

For reference, you can check out more details here: Action Placeholders.

Since each NPC has a unique UUID and the command doesn’t include a "delete all NPCs" option, it should be safe to use.

norfaremc commented 1 month ago

I wasn't aware of this. This should work! Disregard my feature request then, thank you so much for everything!

MarkusBordihn commented 1 month ago

I wasn't aware of this. This should work! Disregard my feature request then, thank you so much for everything!

I will leave this open in the case it's not working as expected. 👍

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.

github-actions[bot] commented 4 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.