mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-15 03:04:55 -05:00
24 lines
1.3 KiB
JavaScript
24 lines
1.3 KiB
JavaScript
/* eslint-disable max-len */
|
|
module.exports = {
|
|
name: 'entity',
|
|
alias: [],
|
|
description: 'Summon any entity!',
|
|
usage: '[specific] <player>',
|
|
trusted: 0,
|
|
execute: function (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
|
// eslint-disable-next-line no-unused-vars
|
|
const mcData = require('minecraft-data')(bot.version)
|
|
|
|
throw new Error('Execute Bypass is patched so this command will be broken for now!')
|
|
// 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);
|
|
// bot.tellraw(selector, [{text: 'Entity ', color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at everyone...', color: 'white'}]);
|
|
// } else if (args[1] === 'specific' && args[2]) {
|
|
// 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'}]);
|
|
// }
|
|
}
|
|
}
|