From 9233285f5d4fb650dc6f54bd0bb2d1d570787db8 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 26 Aug 2022 17:31:49 +0700 Subject: [PATCH] fixed *entity specific --- commands/entity.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/entity.js b/commands/entity.js index 49c16ae..7121333 100644 --- a/commands/entity.js +++ b/commands/entity.js @@ -12,10 +12,10 @@ module.exports = { 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.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: 'Entity ', color: 'white'}, {text: `"${entity.displayName}" `, color: 'green'}, {text: 'spawning at everyone...', color: 'white'}])); + bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {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 ' + entity); - bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `Entity `, color: 'white'}, {text: `"${entity.displayName}" `, color: 'green'}, {text: 'spawning at ', color: 'white'}, {text: `${args[2]}`, color: 'aqua'}])); + bot.core.run('minecraft:execute unless entity @s[name= run ] run execute as @a at ' + args[2] + ' run summon minecraft:' + entity.name); + bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `Entity `, color: 'white'}, {text: entity.displayName, color: 'green'}, {text: ' spawning at ', color: 'white'}, {text: `${args[2]}`, color: 'aqua'}])); } }, };