*music list hoverEvent

This commit is contained in:
ChomeNS 2022-10-19 10:02:57 +07:00
parent 48daabc64e
commit db551dc704

View file

@ -70,7 +70,21 @@ module.exports = {
} else if (color==='yellow') {
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));