add 'weather' command
This commit is contained in:
parent
9c4db8fa10
commit
7c32a42cc5
@ -278,6 +278,19 @@ console.add_command(
|
|||||||
end
|
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 = {
|
console.cheats = {
|
||||||
"blocks.fill",
|
"blocks.fill",
|
||||||
"tp",
|
"tp",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user