# Настройка конфигурации

Закрываем игру и переходим в папку <mark style="color:blue;">**ambience\_music**</mark>, где видим два объекта: папку <mark style="color:blue;">**music**</mark> и файл <mark style="color:blue;">**ambience.properties**</mark>.

Для последующей работы нам понадобится открыть вышеуказанный файл, для этого рекомендуем скачать блокнот <mark style="color:blue;">**Notepad**</mark><mark style="color:blue;">++</mark>, поддерживающий этот и многие другие разрешения файлов.

После установки программы запускаем с её помощью <mark style="color:blue;">**ambience.properties**</mark> и видим следующее:

<div align="left"><figure><img src="/files/9fBmF7NOyvk6Js3bsgt0" alt=""><figcaption></figcaption></figure></div>

Чтобы настроить проигрывание музыки, можно в данный файл вставить с заменой следующее:

```
# Ambience Config
# You may specify multiple songs for a single event using a comma as a separator
# e.g. event.underground=Song1,Song2,Song3,Song4
# NOTE: Make sure you are not using any song names that contain the exact name of another song name as this will cause conflicts
# This feature is not available in 1.10 versions of the mod, or older.
enabled=true
# === Events - Highest Priority
# Any non covered events will be ignored
# e.g. If you don't want a "high up" song, don't include event.highUp
event.mainMenu=
event.boss=
event.underground=
event.deepUnderground=
event.highUp=
event.village=
event.underwater=
event.minecart=
event.boat=
event.horse=
event.pig=
event.night=
event.rain=
event.dying=
event.fishing=
event.pumpkinHead=
# Note: you MUST have a song attributed to this event to prevent cases where there's 
# no song to play and a song for an event that no longer applies is still playing.
# If you don't have a song here you also risk potential crashes.
event.generic=AutumnVoyage
event.villageNight=
event.credits=
event.horde=
event.nether=
event.end=
event.bossWither=
event.bossDragon=
# You can add songs for custom bosses. If there's a mod that adds a boss with ID
# GolemBoss for example, you can use event.bossGolemBoss=
# === Events End
# === Specific Biomes - High Priority
# Biomes names have spaces replaced with +
#This is NOT all biomes
biome.Sunflower+Plains=
biome.Flower+Forest=
biome.Roofed+Forest=
biome.Deep+Ocean=
# === Specific Biomes End
# === Biome Tags - Medium/Low Priority
# These make use of the forge biome dictionary
# Casing is ignored
# There's primary and secondary tags. All primary tags will get checked before the secondary ones
#
# Medium priority
primarytag.spooky=
primarytag.dead=
primarytag.lush=
primarytag.nether=
primarytag.end=
primarytag.mushroom=
primarytag.magical=
primarytag.ocean=
primarytag.river=
# Low
secondarytag.mesa=
secondarytag.forest=
secondarytag.plains=
secondarytag.mountain=
secondarytag.hills=
secondarytag.swamp=
secondarytag.sandy=
secondarytag.snowy=
secondarytag.wasteland=
secondarytag.beach=
# === Biome Tags End
```

С этим мы и будем работать, изменяя или заменяя нужные нам фрагменты. Перед началом редактирования файла конфигурации стоит сказать о следующем:

1. В модификации предусмотрены приоритеты для каждой категории, их существует четыре вида: <mark style="color:blue;">**Highest**</mark>, <mark style="color:blue;">**High Priority**</mark>, <mark style="color:blue;">**Medium Priority**</mark> и <mark style="color:blue;">Low Priority</mark>. Таким образом, если у Вас выставлен высокий приоритет для ночи и средний для какого-либо биома, то заиграет музыка, выбранная для ночи.
2. Если вы для какого-либо события/тега/биома не желаете использовать свою музыку, оставив стандартную, то в файле просто не упоминайте его название.
3. Чтобы настроить для одного события/тега/биома проигрывание нескольких тем, после знака "=" укажите названия треков через запятую.
4. Событие <mark style="color:blue;">**event.generic**</mark> (Запасная песня) следует настроить, так как без него возможен вылет игры.
5. Не оставляйте упомянутое **событие/тег/биом** без указанной музыки, иначе Вы можете спровоцировать вылет.
6. После окончания трека он будет повторяться снова, пока событие не сменится на иное.
7. Музыка может временами прерываться или зависать. Повлиять на это, к сожалению, никак не получится.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.aegis-mine.ru/modifications/atmosfera/ambience-music/nastroika-konfiguracii.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
