MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
20 stars 8 forks source link

commands? #98

Closed NotApolloz closed 7 months ago

NotApolloz commented 8 months ago

So the github wiki does not explain this that well and thats probably why im confused, Im trying to make an actual boss system with the epic fight mod compatability and Im trying to make a drop system with probilities. Im storing this all in a function in my datapack, and I wanna fire this function when the npc dies. I also wanna make a system where the boss heals after it kills someone or they go away from them but im still trying to figure that out.

My main question is about this ..... image

how do commands fire because they are not working for me with and without excute as player, even that I dont understand? does the npc have the amount of authority as the owner or what?

I just dont understand this system entirely please help!

MarkusBordihn commented 8 months ago

Thanks for the feedback.

So basically you have different kind of event action type and the buttons from the dialog where you could use these command.

The "execute as player" will use the player permissions and will execute the command as the player. Without the "execute as player" the NPC will use the owner permissions (which could be higher or lower than the player permissions) and will execute the command as a kind of command block.

If your command / function is working with a command block, it should work with the NPC as well.