GetWeatherTypes: Difference between revisions
Jump to navigation
Jump to search
Complete upcoming 0.1.9 documentation: weather, crafting UI, world removal, doors and ladders; preserve release status |
Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits |
||
| Line 1: | Line 1: | ||
= getWeatherTypes = | = getWeatherTypes = | ||
'''Available from 0.1.9 | '''Available from 0.1.9. Use matching updated clients and server.''' | ||
Server Lua. Returns the weather names supported by this running server. | Server Lua. Returns the weather names supported by this running server. | ||
Latest revision as of 13:28, 20 October 2026
getWeatherTypes
Available from 0.1.9. Use matching updated clients and server.
Server Lua. Returns the weather names supported by this running server.
Syntax
local names = getWeatherTypes()
Parameters and returns
No parameters. Returns a fresh 1-based array of 43 canonical strings in the current implementation. Aliases are not duplicate entries. Changing this table does not change the catalog or weather. Use names rather than persisting numeric array positions. Future versions may add entries; query instead of hard-coding the count.
Example
for _, name in ipairs(getWeatherTypes()) do
outputDebugString(name)
end
See Weather catalog for every name and alias, and Weather for server-authoritative usage and rendering limits.