Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.7 KB

File metadata and controls

60 lines (34 loc) · 1.7 KB

Latite Scripting Documentation (Exports)


Exports > world/dimension > Dimension

Dimension

Interface

Source: world/dimension.d.ts:1

Methods

exists()

exists(): boolean

Returns true if in a dimension, returns false if not. You will only be able to use the Dimension methods if you are in a world.

Source: world/dimension.d.ts:5

Returns

boolean

getBlock()

getBlock( x: number, y: number, z: number): Block

Gets a block at the specified position. Will return null if no block was found. (If it's air, it will also return a Block)

Source: world/dimension.d.ts:13

Parameters

Parameter Type Description
x number Integer for x coordinate
y number Integer for y coordinate
z number Integer for z coordinate

Returns

Block

getName()

getName(): string

Gets the dimension's name, for example, "Overworld"

Source: world/dimension.d.ts:19

Returns

string