mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
add 'weather' command
This commit is contained in:
parent
9c4db8fa10
commit
7c32a42cc5
1 changed files with 13 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue