mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-22 15:13:45 +02:00
trigger goal to start
This commit is contained in:
parent
385c46bf35
commit
74156d118d
1 changed files with 1 additions and 0 deletions
|
@ -230,6 +230,7 @@ export const actionsList = [
|
|||
},
|
||||
perform: async function (agent, name=null, quantity=1) {
|
||||
await agent.npc.setGoal(name, quantity);
|
||||
agent.bot.emit('idle'); // to trigger the goal
|
||||
return 'Set goal: ' + agent.npc.data.curr_goal.name;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue