mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 23:57:57 -05:00
*music list hoverEvent
This commit is contained in:
parent
48daabc64e
commit
db551dc704
1 changed files with 15 additions and 1 deletions
|
@ -70,7 +70,21 @@ module.exports = {
|
||||||
} else if (color==='yellow') {
|
} else if (color==='yellow') {
|
||||||
color = 'gold';
|
color = 'gold';
|
||||||
};
|
};
|
||||||
message.push({text: value + ' ', color, clickEvent: {action: 'suggest_command', value: `*music play ${value}`}});
|
message.push({text: value + ' ',
|
||||||
|
color,
|
||||||
|
clickEvent: {
|
||||||
|
action: 'suggest_command',
|
||||||
|
value: `*music play ${value}`,
|
||||||
|
},
|
||||||
|
hoverEvent: {
|
||||||
|
action: 'show_text',
|
||||||
|
contents: [
|
||||||
|
{text: 'Name: ', color: 'white'},
|
||||||
|
{text: value, color: 'gold'},
|
||||||
|
'\n',
|
||||||
|
{text: 'Click here to suggest the command!', color: 'green'},
|
||||||
|
],
|
||||||
|
}});
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(message));
|
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(message));
|
||||||
|
|
Loading…
Reference in a new issue