1
0
Fork 0
mirror of https://github.com/ChomeNS/chomens-bot-mc.git synced 2025-07-13 21:23:55 -04:00
chomens-bot-js/commands/entity.js

23 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2022-08-14 16:51:45 +07:00
module.exports = {
name: 'entity',
alias: [],
description: 'Summon any entity!',
usage: '[specific] <player>',
trusted: 0,
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
// const mcData = require('minecraft-data')(bot.version)
2022-10-19 07:59:58 +07:00
2022-11-27 14:35:28 +07:00
throw new Error('Execute Bypass is patched so this command will be broken for now!')
2022-10-14 15:46:41 +07:00
// if (!args[0]) return;
// const entity = mcData.entitiesByName[args[0]];
// if (!entity) throw new SyntaxError('Invalid entity');
// if (!args[1]) {
// bot.core.run('minecraft:execute unless entity @s[name= run ] run execute as @a at @r[\'limit\'=10] run summon minecraft:' + entity.name);
2022-11-16 18:41:30 +07:00
// bot.tellraw(selector, [{text: 'Entity ', color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at everyone...', color: 'white'}]);
2022-11-07 19:26:38 +07:00
// } else if (args[1] === 'specific' && args[2]) {
2022-10-14 15:46:41 +07:00
// bot.core.run('minecraft:execute unless entity @s[name= run ] run execute as @a at ' + args[2] + ' run summon minecraft:' + entity.name);
// bot.tellraw(selector, [{text: `Entity `, color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at ', color: 'white'}, {text: args[2], color: 'aqua'}]);
2022-10-14 15:46:41 +07:00
// }
2022-11-27 14:35:28 +07:00
}
}