MarkusBordihn / BOs-Easy-NPC

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

[Feature Request] Button able to run multiple commands? #227

Closed shiyanon closed 4 months ago

shiyanon commented 5 months ago

Just wondering if there was a way for one button to run multiple commands.

I'm currently trying to use EasyNPCs with FTB Quests where the NPC would 'give' the player quests by force completing it's dependency quest. I don't know how to explain it as it's a little bit confusing.

But it'd be nice if there was a way for a button to run more than one command so I could write _'/ftbquests changeprogress @p complete 66AD1EC0086095DE' then after _'/ftbquests changeprogress @p reset 44481AD274AB9641'

Not sure if it's already a thing I can do by linking two commands together so it counts as one since I'm new to playing around with mods. But if its not, could be a nice feature.

SomehowSurviving commented 4 months ago

A solution I use for this is having the NPC either have multiple dialog lines that run separate commands or have the NPC command place a redstone torch that lights off a command block chain that then removes its own torch.

MarkusBordihn commented 4 months ago

The newest beta version allows adding multiple commands for the buttons and action events. ;) See: https://ko-fi.com/post/Easy-NPC-New-action-system-L4L8103REH