Skip to content

Level

endstone.level

Dimension

Represents a dimension within a Level.

CUSTOM class-attribute

CUSTOM: Type

NETHER class-attribute

NETHER: Type

OVERWORLD class-attribute

OVERWORLD: Type

THE_END class-attribute

THE_END: Type

level property

level: Level

Gets the level to which this dimension belongs

name property

name: str

Gets the name of this dimension

type property

type: Type

Gets the type of this dimension

Type

Type(value: int)

Represents various dimension types.

CUSTOM class-attribute
CUSTOM: Type
NETHER class-attribute
NETHER: Type
OVERWORLD class-attribute
OVERWORLD: Type
THE_END class-attribute
THE_END: Type
name property
name: str
value property
value: int

Level

actors property

actors: list[Actor]

Get a list of all actors in this level

dimensions property

dimensions: list[Dimension]

Gets a list of all dimensions within this level.

name property

name: str

Gets the unique name of this level

time property writable

time: int

Gets and sets the relative in-game time on the server

get_dimension

get_dimension(name: str) -> Dimension

Gets the dimension with the given name.

Location

Location(
    dimension: Dimension,
    x: float,
    y: float,
    z: float,
    pitch: float = 0.0,
    yaw: float = 0.0,
)

Bases: Position

Represents a 3-dimensional location in a dimension within a level.

pitch property writable

pitch: float

The pitch of this location, measured in degrees.

yaw property writable

yaw: float

The yaw of this location, measured in degrees.

Position

Position(
    dimension: Dimension, x: float, y: float, z: float
)

Bases: Vector

Represents a 3-dimensional position in a dimension within a level.

dimension property writable

dimension: Dimension

The Dimension that contains this position