promotional bannermobile promotional banner

KubeJS Main Menu and Music Customizer

Client-side KubeJS plugin for customizing Main Menu and Soundtrack of your game.

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 .ogg tracks into kubejs/m_menu/sounds/ with zero manual sounds.json setup, 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 inside kubejs/m_menu/menu_description.json.
    • Bundled JSON Schema (menu_description.schema.json) — open menu_description.json in 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, and reload_menu.
    • Safe Fallback: A typo in menu_description.json will 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 in latest.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-free GL_CLAMP_TO_EDGE filtering, plus static single-image (cover / stretch / contain) and vanilla modes.
    • Enable "apply_to_other_menus": true to 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 (default 1024×1024)
    • /kjs picture made 2048 (custom square resolution from 512 to 4096)
    • 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.json editing required! M-Menu registers an automatic virtual resource pack that scans kubejs/m_menu/sounds/ and streams every .ogg track 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 / sin equal-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 toggle MMenu.play_and_minecraft_and_m_menu_kjs_plugin (true mixes vanilla & custom music; false plays 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 press F5 / click a reload_menu button on the Title Screen — to reload menu_description.json, PNG textures, KubeJS music settings, and newly dropped .ogg files in milliseconds without triggering a full shader/model reload!

KubeJS Main Menu and Music Customizer Team

profile avatar
  • 3
    Followers
  • 9
    Projects
  • 4.6K
    Downloads

Just a dude makes Minecraft's mods and modpacks, or at least tries to.

More from moojifijiView all