mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-08 08:15:38 +02:00
commit
da4987fd52
1 changed files with 3 additions and 3 deletions
|
@ -247,7 +247,7 @@ export const actionsList = [
|
||||||
name: '!smeltItem',
|
name: '!smeltItem',
|
||||||
description: 'Smelt the given item the given number of times.',
|
description: 'Smelt the given item the given number of times.',
|
||||||
params: {
|
params: {
|
||||||
'item_name': { type: 'string', description: 'The name of the input item to smelt.' },
|
'item_name': { type: 'ItemName', description: 'The name of the input item to smelt.' },
|
||||||
'num': { type: 'int', description: 'The number of times to smelt the item.', domain: [1, Number.MAX_SAFE_INTEGER] }
|
'num': { type: 'int', description: 'The number of times to smelt the item.', domain: [1, Number.MAX_SAFE_INTEGER] }
|
||||||
},
|
},
|
||||||
perform: async function (agent, item_name, num) {
|
perform: async function (agent, item_name, num) {
|
||||||
|
@ -274,7 +274,7 @@ export const actionsList = [
|
||||||
{
|
{
|
||||||
name: '!placeHere',
|
name: '!placeHere',
|
||||||
description: 'Place a given block in the current location. Do NOT use to build structures, only use for single blocks/torches.',
|
description: 'Place a given block in the current location. Do NOT use to build structures, only use for single blocks/torches.',
|
||||||
params: {type: 'string', description: 'The block type to place.'},
|
params: {'type': { type: 'BlockName', description: 'The block type to place.' }},
|
||||||
perform: wrapExecution(async (agent, type) => {
|
perform: wrapExecution(async (agent, type) => {
|
||||||
let pos = agent.bot.entity.position;
|
let pos = agent.bot.entity.position;
|
||||||
await skills.placeBlock(agent.bot, type, pos.x, pos.y, pos.z);
|
await skills.placeBlock(agent.bot, type, pos.x, pos.y, pos.z);
|
||||||
|
@ -283,7 +283,7 @@ export const actionsList = [
|
||||||
{
|
{
|
||||||
name: '!attack',
|
name: '!attack',
|
||||||
description: 'Attack and kill the nearest entity of a given type.',
|
description: 'Attack and kill the nearest entity of a given type.',
|
||||||
params: {'type': 'string', description: 'The type of entity to attack.'},
|
params: {'type': { type: 'string', description: 'The type of entity to attack.'}},
|
||||||
perform: wrapExecution(async (agent, type) => {
|
perform: wrapExecution(async (agent, type) => {
|
||||||
await skills.attackNearest(agent.bot, type, true);
|
await skills.attackNearest(agent.bot, type, true);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue