Merge branch 'main' into volume-renderer

This commit is contained in:
MihailRis 2026-02-13 02:07:20 +03:00
commit c7508d6270
35 changed files with 532 additions and 68 deletions

View file

@ -1,5 +1,6 @@
{
"steps-sound": "steps/carpet",
"place-sound": "blocks/carpet_place",
"break-sound": "blocks/carpet_break"
"break-sound": "blocks/carpet_break",
"sound-absorption": 0.96
}

View file

@ -1,5 +1,6 @@
{
"steps-sound": "steps/glass",
"place-sound": "blocks/glass_place",
"break-sound": "blocks/glass_break"
"break-sound": "blocks/glass_break",
"sound-absorption": 0.3
}

View file

@ -1,5 +1,6 @@
{
"steps-sound": "steps/grass",
"place-sound": "steps/grass",
"break-sound": "steps/grass"
"break-sound": "steps/grass",
"sound-absorption": 0.85
}

View file

@ -2,5 +2,6 @@
"steps-sound": "steps/grass",
"place-sound": "blocks/ground_place",
"break-sound": "blocks/ground_break",
"hit-sound": "blocks/ground_hit"
"hit-sound": "blocks/ground_hit",
"sound-absorption": 0.8
}

View file

@ -2,5 +2,6 @@
"steps-sound": "steps/ground",
"place-sound": "blocks/ground_place",
"break-sound": "blocks/ground_break",
"hit-sound": "blocks/ground_hit"
"hit-sound": "blocks/ground_hit",
"sound-absorption": 0.7
}

View file

@ -1,5 +1,6 @@
{
"steps-sound": "steps/metal",
"place-sound": "blocks/metal_place",
"break-sound": "blocks/metal_break"
"break-sound": "blocks/metal_break",
"sound-absorption": 0.1
}

View file

@ -1,5 +1,6 @@
{
"steps-sound": "steps/sand",
"place-sound": "blocks/ground_place",
"break-sound": "blocks/ground_break"
"break-sound": "blocks/ground_break",
"sound-absorption": 0.8
}

View file

@ -2,5 +2,6 @@
"steps-sound": "steps/stone",
"place-sound": "blocks/stone_place",
"break-sound": "blocks/stone_break",
"hit-sound": "blocks/stone_hit"
"hit-sound": "blocks/stone_hit",
"sound-absorption": 0.3
}

View file

@ -2,5 +2,6 @@
"steps-sound": "steps/wood",
"place-sound": "blocks/wood_place",
"break-sound": "blocks/wood_break",
"hit-sound": "blocks/wood_hit"
"hit-sound": "blocks/wood_hit",
"sound-absorption": 0.5
}

View file

@ -24,6 +24,14 @@ function update_setting(x, id, name, postfix)
)
end
function create_checkbox(id, name, tooltip)
tooltip = tooltip or ''
document.root:add(string.format(
"<checkbox consumer='function(x) app.set_setting(\"%s\", x) end' checked='%s' tooltip='%s'>%s</checkbox>",
id, app.str_setting(id), gui.str(tooltip, "settings"), gui.str(name, "settings")
))
end
local initialized = false
function on_open()
@ -71,4 +79,6 @@ function on_open()
if info then
selectbox.value = info.device_specifier
end
create_checkbox("audio.acoustic-effects", "Acoustic effects", "audio.acoustic-effects.tooltip")
end

View file

@ -17,6 +17,7 @@ console.add_command(
"clear",
"Clears the console",
function()
if not hud then error("command is unavailable in headless mode") return end
local document = Document.new("core:console")
document.log.text = ""
end

View file

@ -17,10 +17,12 @@ devtools.traceback=Traceback (most recent call first)
devtools.output=Output
# Tooltips
audio.acoustic-effects.tooltip=Acoustic effects may not be supported by your system
graphics.gamma.tooltip=Lighting brightness curve
graphics.backlight.tooltip=Backlight to prevent total darkness
graphics.dense-render.tooltip=Enables transparency in blocks like leaves
graphics.soft-lighting.tooltip=Enables blocks soft lighting
graphics.advanced-render.tooltip=Use graphics pipeline supporting advanced effects like shadows, SSAO
# settings
settings.Controls Search Mode=Search by attached button name

View file

@ -38,10 +38,12 @@ error.dependency-version-not-met=Версия зависимости не соо
pack.remove-confirm=Удалить весь поставляемый паком/паками контент из мира (безвозвратно)?
# Подсказки
audio.acoustic-effects.tooltip=Акустические эффекты могут не поддерживаться системой
graphics.gamma.tooltip=Кривая яркости освещения
graphics.backlight.tooltip=Подсветка, предотвращающая полную темноту
graphics.dense-render.tooltip=Включает прозрачность блоков, таких как листья
graphics.soft-lighting.tooltip=Включает мягкое освещение у блоков
graphics.advanced-render.tooltip=Использовать графический конвейер, поддерживающий продвинутые эффекты, такие как тени и SSAO
# Меню
menu.Apply=Применить
@ -111,6 +113,7 @@ settings.Borderless=Безрамочный
settings.Microphone=Микрофон
settings.microphone.None=Нет
settings.Clouds quality=Качество облаков
settings.Acoustic effects=Акустические эффекты
# Управление
chunks.reload=Перезагрузить Чанки