M-Menu (m_menu_kjs_plugin) is a lightweight, 100% client-side KubeJS plugin for Minecraft 1.20.1 (Forge) that gives modpack authors effortless control over:
- Custom Main Menu Layout (
menu_description.json) — responsive anchored buttons, custom textures, logos, splashes, branding, and full localization support. - 3D 6-Face Panoramas & Out-of-World Menu Backgrounds — drop 6 cubemap images (or a single PNG) into
kubejs/m_menu/pictures/and replace the vanilla dirt background across every out-of-world menu (Singleplayer, Multiplayer, Options, Mods, Resource Packs, and more). - In-Game 3D Panorama Capturer — capture seamless, zero-seam 6-face cubemap panoramas right from any world with
/kjs picture made [size]. - Dynamic Ambient Music Engine with Equal-Power Crossfading — drop
.oggtracks intokubejs/m_menu/sounds/with zero manualsounds.jsonsetup, featuring automatic pools for the Main Menu, dimensions, modded dimensions, biomes, boss fights, underwater, and Creative mode. -
1. JSON-Driven Main Menu with IDE Autocomplete & Crash Protection
- Configure buttons, positions, anchors (
top_left,center,bottom_right, etc.), custom button textures, logos, splash texts, and custom branding lines insidekubejs/m_menu/menu_description.json. - Bundled JSON Schema (
menu_description.schema.json) — openmenu_description.jsonin VS Code or IntelliJ for instant autocomplete, validation, and hover documentation. - Full Localization Support — button labels, tooltips, and custom text accept both plain strings (
"Play") and Minecraft translation objects ({ "translate": "menu.singleplayer" }). - Supported Button Actions:
singleplayer,multiplayer,mods,options,language,accessibility,realms,quit,open_url,connect_server, andreload_menu. - Safe Fallback: A typo in
menu_description.jsonwill never crash the game. M-Menu automatically falls back to the vanilla Title Screen, shows an in-game Toast notification, and logs the exact line and column number inlatest.log.
2. 6-Face 3D Panoramas Across All Out-of-World Menus
- Supports true 6-face rotating skybox panoramas (
menu_01_face.png,menu_02_right.png,menu_03_back.png,menu_04_left.png,menu_05_top.png,menu_06_bottom.png) with seam-freeGL_CLAMP_TO_EDGEfiltering, plus static single-image (cover/stretch/contain) and vanilla modes. - Enable
"apply_to_other_menus": trueto seamlessly carry the synchronized rotating background behind Singleplayer, Multiplayer, Options, Language, Resource Packs, and Mods screens with a configurable dark scrim overlay.
3. Built-In Panorama Capture Command
Stand in your favorite spot in-game and run:
/kjs picture made(default1024×1024)/kjs picture made 2048(custom square resolution from512to4096)- Also works with
/kubejs picture made [size].
Automatically hides the HUD, switches to first-person 90° FOV, renders all 6 cube faces cleanly (compatible with Embeddium and Oculus shaders), and saves them ready to use in
kubejs/m_menu/pictures/made_pics/<dd_MM_yyyy_ss_mm_HH>_made/with a clickable folder link in chat.4. Zero-Config Dynamic Music & Equal-Power Crossfade
No resource packs or
sounds.jsonediting required! M-Menu registers an automatic virtual resource pack that scanskubejs/m_menu/sounds/and streams every.oggtrack directly from disk ("stream": true).- Equal-Power Crossfading: When entering a portal, respawning into another dimension, or entering/leaving a world, the incoming track begins immediately while the outgoing track smoothly fades out (
cos/sinequal-power curve — equal perceived loudness at the midpoint with zero volume dip).- Dimension ↔ Dimension & Main Menu → World: 10 seconds (configurable)
- World → Main Menu: 3 seconds (configurable)
- Situational / Biome transitions: 5 seconds (configurable)
- Smart Continuation: If two dimensions resolve to the same music pool (e.g., both falling back to
in_game), the current track keeps playing uninterrupted without restarting. - No-Repeat Shuffle Bag: Tracks inside every pool are shuffled and played without repeats until every track in that pool has played once.
- KubeJS Script Configuration: All music settings live cleanly in
kubejs/client_scripts/m_menu_music_settings.js, including the master toggleMMenu.play_and_minecraft_and_m_menu_kjs_plugin(truemixes vanilla & custom music;falseplays custom plugin tracks only), custom delays, crossfade durations, and modded dimension/biome mappings.
5. Instant Hot-Reload Without
F3+T- Run
/kjs m_menu reload(or/kubejs m_menu reload) in-game — or pressF5/ click areload_menubutton on the Title Screen — to reloadmenu_description.json, PNG textures, KubeJS music settings, and newly dropped.oggfiles in milliseconds without triggering a full shader/model reload!
- Configure buttons, positions, anchors (

