Skip to content

World Data

World data methods allow Lua programs to query information about the current Minecraft world, including biomes, dimensions, time, weather, and celestial information.

Method
getBiomeAt(x : number, y : number, z : number) : string
getDimension() : string
getMoonInfo() : table
getTimeInfo() : table
getWeather() : table
getWorldInfo() : table

Returns the biome at a specific world coordinate.

Requires: x : number, y : number, z : number

Returns: Biome name as a string.

local biome = gpu.getBiomeAt(0, 64, 0)
print(biome)

Returns the current Minecraft dimension.

Returns: Dimension identifier string.

local dimension = gpu.getDimension()
print(dimension)

Returns information about the current moon state.

Returns: Table containing moon-related information.

local moon = gpu.getMoonInfo()
print(moon)

Returns current world time information.

Returns: Table containing world time data.

local time = gpu.getTimeInfo()
print(time)

Returns current weather information.

Returns: Weather information table.

local weather = gpu.getWeather()
print(weather)

Returns general information about the current world.

Returns: World information table.

local info = gpu.getWorldInfo()
print(info)