Installed several add-ons, each with its own menu that opens through emotes? Star’s Centralized Menu helps creators bring those options together in one system: the player selects an option, and the add-on receives an event and can, for example, open a more detailed menu for them. The menu itself needs to be connected to another pack — this is a tool for its creator.
The add-on does not require experimental settings to be enabled. To work, it must be added to the world along with the pack whose menu you are connecting; other players in that world also need to install Star’s Centralized Menu.

Version 1.0: menus by name and emote 🎮
In version 1.0, the creator adds Star’s Centralized Menu as a dependency in the array of the dependencies file manifest.json of their behavior pack. To do this, add the following snippet to the array:
{
"uuid": "38fab1b9-c2b0-4111-a25d-4bad5f1b5a9f",
"version": [1, 0, 0]
}
Then, in JavaScript, the menu name and the UUID of the emote associated with it are set. The name appears in the menu and must not contain spaces. You can register several menus, each with its own name.
const menu_name = "Your-Addon-Name";
const menu_persona_id = "your-emote-uuid";
const dim = world.getDimension("overworld");
dim.runCommandAsync(`scriptevent "star-menu:${menu_name}" ${menu_persona_id}`);
When a player selects a menu, a Script Event is triggered. Its ID is always equal to star-menu:trigger, the message contains the registered menu name, and event.sourceEntity indicates the player. The event can be filtered by ID and name, then the desired action can be performed. For example:
system.afterEvents.scriptEventReceive.subscribe((e) => {
if(e.id != "star-menu:trigger" || e.message != "your-menu-name") return;
// your code goes here
});
Minecraft Bedrock 1.21.60 or later is required for version 1.0.
Version 2.0: menu options with names and icons 🧩
In version 2.0, the dependency in manifest.json is the same, but the version number changes:
{
"uuid": "38fab1b9-c2b0-4111-a25d-4bad5f1b5a9f",
"version": [2, 0, 0]
}
Now the creator registers each menu option using an object menu_details. Its name and UUID are required and cannot be null or undefined. The icon is set using a path in icon_path; if it isn’t needed, the value can be null or undefined. You can also leave the emotion UUID for triggering the option empty; the welcome wave emotion will be assigned by default. Each option must have its own UUID.
const menu_details = {
display_name: "Your Items Name",
icon_path: "textures/your_menu_icon",
uuid: "uuid-of-your-menu-item",
trigger_persona_id: "4c8ae710-df2e-47cd-814d-cc7bf21a3d67"
}
world.afterEvents.worldLoad.subscribe(() => {
const dim = world.getDimension("overworld");
dim.runCommand(`scriptevent "star-menu:register" ${JSON.stringify(menu_details)}`);
});

After an option is selected, the event with ID star-menu:triggeris sent again. Now event.message contains the UUID of the selected option, and event.sourceEntity is the player who selected it. The creator can filter the event and trigger the desired action:
system.afterEvents.scriptEventReceive.subscribe((e) => {
if(e.id != "star-menu:trigger" || e.message != "uuid-of-your-menu-item") return;
// your code goes here
});
If an option is no longer needed, it can be removed during gameplay. To do this, send the event star-menu:unregister and pass the option UUID as the message. The command can be run in a dimension or on any entity:
const dim = world.getDimension("overworld");
dim.runCommand(`scriptevent "star-menu:unregister" ${uuid-of-your-menu-item}`);
Version 2.0 is designed for Minecraft Bedrock 1.21.90 and later. If something isn’t working as expected, check the content log: this version writes warnings there when errors occur.