mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-09-10 03:53:07 +02:00
snuck in consume command
This commit is contained in:
parent
a467bdf357
commit
4d23a0b0a2
1 changed files with 9 additions and 0 deletions
|
@ -148,6 +148,15 @@ export const actionsList = [
|
|||
await skills.giveToPlayer(agent.bot, item_name, player_name, num);
|
||||
})
|
||||
},
|
||||
{
|
||||
name: '!consume',
|
||||
description: 'Eat/drink the given item.',
|
||||
params: {'item_name': { type: 'ItemName', description: 'The name of the item to consume.' }},
|
||||
perform: wrapExecution(async (agent, item_name) => {
|
||||
await agent.bot.consume(item_name);
|
||||
skills.log(agent.bot, `Consumed ${item_name}.`);
|
||||
})
|
||||
},
|
||||
{
|
||||
name: '!equip',
|
||||
description: 'Equip the given item.',
|
||||
|
|
Loading…
Add table
Reference in a new issue