add weather.list command (#526)

This commit is contained in:
ChancellorIkseew
2025-05-05 20:30:50 +03:00
committed by GitHub
parent 20703e2b94
commit ac20676b3a
2 changed files with 17 additions and 3 deletions
+13
View File
@@ -291,6 +291,19 @@ console.add_command(
end
)
console.add_command(
"weather.list",
"Show available weather presets list",
function(args, kwargs)
local filenames = file.list_all_res("presets/weather/")
local presets = " "
for index, filename in pairs(filenames) do
presets = presets .. "\n" .. file.stem(filename)
end
return "available presets:" .. presets
end
)
console.cheats = {
"blocks.fill",
"tp",