add 'weather' command

This commit is contained in:
MihailRis 2025-02-28 18:50:35 +03:00
parent 9c4db8fa10
commit 7c32a42cc5

View File

@ -278,6 +278,19 @@ console.add_command(
end
)
console.add_command(
"weather",
"Display current weather preset name",
function (args, kwargs)
local name = gfx.weather.get_current()
if name == "" then
return "unnamed " .. json.tostring(gfx.weather.get_current_data(), true)
else
return name
end
end
)
console.cheats = {
"blocks.fill",
"tp",