Custom Minecraft Background Music 图标

Custom Minecraft Background Music

作者:rebot | 分类:数据包

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0
本资源为搬运资源,原资源地址: https://modrinth.com/resourcepack/custom-minecraft-background-music
资源信息

Minecraft 版本: 1.21 1.21.1 24w33a 24w34a 24w35a 24w36a 24w37a 24w38a 24w39a 24w40a 1.21.2-pre1 1.21.2-pre2 1.21.2 1.21.3 24w44a 24w45a 24w46a 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1-snapshot-1 26.1-snapshot-2 26.1-snapshot-3 26.1-snapshot-4 26.1-snapshot-5 26.1-snapshot-6 26.1-snapshot-7 26.1-snapshot-8 26.1-snapshot-9 26.1-snapshot-10 26.1-snapshot-11 26.1-pre-1 26.1-pre-2 26.1-pre-3 26.1-rc-1 26.1-rc-2 26.1-rc-3 26.1 26.1.1-rc-1 26.1.1 26w14a 26.2-snapshot-1 26.1.2-rc-1 26.1.2 26.2-snapshot-2 26.2-snapshot-3 26.2-snapshot-4 26.2-snapshot-5 26.2-snapshot-6 26.2-snapshot-7 26.2-snapshot-8 26.2-pre-1 26.2-pre-2 26.2-pre-3

平台: minecraft

标签: audio simplistic

资源介绍

About

This project is a comprehensive, ready-to-use Resource Pack Template designed to make adding custom background music and subtitles to Minecraft incredibly straightforward. Whether you want to completely replace the vanilla soundtrack or simply expand it with your own favorite tracks, this template provides the exact folder structure and code foundations you need.

It comes pre-configured for various in-game situations, including the main menu, normal gameplay, specific biomes (like forests and plains), different dimensions (the Nether), and even for the boss fight (Ender Dragon).


Folder Structure & Paths

For your custom music to work, all files must be placed in their exact designated locations within the resource pack:

  • Audio Files: All your custom .ogg music files need to go into the assets/minecraft/sounds/music/ directory.
  • sounds.json: This core configuration file is located directly in the assets/minecraft/ directory.
  • Subtitles: The lang folder (which contains the en_us.json file for your text) is also found inside the assets/minecraft/ directory.

How it works

Adding custom music requires specific JSON files to tell Minecraft when to play a track and what to display on the screen. Here is a detailed breakdown of the components included in this template.

The sounds.json File

This file acts as the brain of your audio pack. It links in-game events to your audio files and tells the engine how to handle them.

  • The Event Trigger (e.g., music.menu): This defines the exact situation when the game should play the music. For example, music.menu triggers on the title screen, while music.dragon triggers during the Ender Dragon boss fight.
  • replace: This is a crucial setting that determines how your music interacts with the original game files.
    • Set to false: Your custom tracks will be added to the pool of existing vanilla Minecraft music. The game will randomly choose between the original soundtrack and yours.
    • Set to true: The game will completely ignore the default Minecraft music for this specific event and only play your custom tracks.
  • name: The exact file path to your custom track, starting inside the sounds/ folder. You do not include the file extension here.
  • stream: This should always be set to true for long audio files like background music. It tells the game to stream the audio directly from your hard drive rather than loading the entire song into the RAM, preventing massive performance drops and memory leaks.
  • weight: This determines the probability of a track playing compared to others in the same category. If Track A has a weight of 2 and Track B has a weight of 1, Track A is twice as likely to be chosen by the game.

The en_us.json File (Language & Subtitles)

Located in the lang folder, this file connects your audio tracks to the in-game subtitle system.

When a player has subtitles enabled in their accessibility settings, the game looks at this file to know what text to display in the bottom right corner of the screen. You simply map the exact name of your audio event to the text you want to display, such as the artist and the name of the song.


Important

When modifying this template and adding your own music, you must adhere strictly to Minecraft's engine rules. Failing to follow these constraints will result in the resource pack failing to load or the music not playing at all.

  • File Format Only: Minecraft exclusively reads .ogg audio files. You cannot use .mp3, .wav, or .m4a files. You must convert your music to .ogg before placing it in the folder.
  • Strict Naming Convention: Every single file name and folder name must be strictly lowercase. The game will not recognize files with capital letters.
  • No Spaces: Never use spaces in your file names or folders. Use underscores (_) instead to separate words (for example: my_custom_song.ogg).
  • Valid Characters: Only use lowercase letters (a-z), numbers (0-9), underscores (_), and hyphens (-). Avoid any special characters.
  • JSON Syntax: JSON files are extremely sensitive. A single missing comma, an extra comma at the end of a list, or a missing quotation mark will break the entire file. Always double-check your syntax after editing.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Morphic

价格:0 墨喵币
下载量:0

查看详情
WorldBorder's addon for BlazeandCave's Advancement Pack

价格:0 墨喵币
下载量:0

查看详情
Charcoal Plus

价格:0 墨喵币
下载量:0

查看详情
Amarite Trident

价格:0 墨喵币
下载量:0

查看详情