World Data
World data methods allow Lua programs to query information about the current Minecraft world, including biomes, dimensions, time, weather, and celestial information.
Methods
Section titled “Methods”| Method |
|---|
getBiomeAt(x : number, y : number, z : number) : string |
getDimension() : string |
getMoonInfo() : table |
getTimeInfo() : table |
getWeather() : table |
getWorldInfo() : table |
getBiomeAt
Section titled “getBiomeAt”Returns the biome at a specific world coordinate.
Requires: x : number, y : number, z : number
Returns: Biome name as a string.
Example
Section titled “Example”local biome = gpu.getBiomeAt(0, 64, 0)
print(biome)getDimension
Section titled “getDimension”Returns the current Minecraft dimension.
Returns: Dimension identifier string.
Example
Section titled “Example”local dimension = gpu.getDimension()
print(dimension)getMoonInfo
Section titled “getMoonInfo”Returns information about the current moon state.
Returns: Table containing moon-related information.
Example
Section titled “Example”local moon = gpu.getMoonInfo()
print(moon)getTimeInfo
Section titled “getTimeInfo”Returns current world time information.
Returns: Table containing world time data.
Example
Section titled “Example”local time = gpu.getTimeInfo()
print(time)getWeather
Section titled “getWeather”Returns current weather information.
Returns: Weather information table.
Example
Section titled “Example”local weather = gpu.getWeather()
print(weather)getWorldInfo
Section titled “getWorldInfo”Returns general information about the current world.
Returns: World information table.
Example
Section titled “Example”local info = gpu.getWorldInfo()
print(info)