chomens-bot-js/commands/entity.js

25 lines
1.3 KiB
JavaScript
Raw Normal View History

2022-08-14 05:51:45 -04:00
/* eslint-disable max-len */
module.exports = {
name: 'entity',
alias: [],
description: 'Summon any entity!',
usage: '[specific] <player>',
trusted: 0,
2022-11-16 06:09:37 -05:00
execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash) {
2022-10-18 20:59:58 -04:00
// eslint-disable-next-line no-unused-vars
const mcData = require('minecraft-data')(bot.version);
2022-10-14 04:46:41 -04:00
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);
2022-11-07 08:08:29 -05:00
// bot.tellraw('@a', [{text: 'Entity ', color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at everyone...', color: 'white'}]);
2022-11-07 07:26:38 -05:00
// } else if (args[1] === 'specific' && args[2]) {
2022-10-14 04:46:41 -04:00
// bot.core.run('minecraft:execute unless entity @s[name= run ] run execute as @a at ' + args[2] + ' run summon minecraft:' + entity.name);
2022-11-07 08:08:29 -05:00
// bot.tellraw('@a', [{text: `Entity `, color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at ', color: 'white'}, {text: `${args[2]}`, color: 'aqua'}]);
2022-10-14 04:46:41 -04:00
// }
2022-08-14 05:51:45 -04:00
},
};