mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add weather.list command (#526)
This commit is contained in:
parent
20703e2b94
commit
ac20676b3a
2 changed files with 17 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue