Skip to content

WorldChange

Defined in: src/events/WorldChange.ts:5

The event received when a player changes worlds.

destination: string

Defined in: src/events/WorldChange.ts:25

The world the player is now in. It will be a Minecraft namespaced registry key, for example:

  • minecraft:overworld - The overworld
  • minecraft:the_nether - The Nether
  • minecraft:the_end - The End

event: string

Defined in: src/events/BaseEvent.ts:5

BaseEvent.event


id: number

Defined in: src/events/BaseEvent.ts:4

BaseEvent.id


ok: boolean

Defined in: src/packets/Data.ts:2

BaseEvent.ok


origin: string

Defined in: src/events/WorldChange.ts:16

The world the player has moved from. It will be a Minecraft namespaced registry key, for example:

  • minecraft:overworld - The overworld
  • minecraft:the_nether - The Nether
  • minecraft:the_end - The End

time: Date

Defined in: src/events/BaseEvent.ts:6

BaseEvent.time


type: string

Defined in: src/packets/Data.ts:3

BaseEvent.type


user: User

Defined in: src/events/WorldChange.ts:7

The in-game player who changed worlds.