Easy NPC

Easy NPC

2M Downloads

Action issues

RubenLime opened this issue ยท 2 comments

commented

I was trying to mess with some actions with my main NPC to have effects and sounds for dialogue options and distance actions. Since I'm using the mod on a 1.20.1 server I use @p for the target of many commands I run but for some reason when I interact with the npc, it gives someone much further away the effects and sounds. I'm not sure what's causing this nor how to fix it I don't have it set to execute as player because it wouldn't do anything at all with the box checked.

commented

Thanks for the report, if possible you should use / try @initiator instead of @p to get the correct target for your actions.
I will check if I could improve the @p handling by providing additional information to the command system, which should fix ~ ~ ~ as well.

commented

I provided an update which is passing the NPC location or player location (execute as player) to the command, which should solve most of the issues.

As already mentioned if possible, you should use @initiator instead of @p because I have no control over @p.
But let me know if this is now working as expected. Thanks.