sendGameEvent

abstract fun sendGameEvent(entity: McServerEntity, gameEvent: String)

Sends a game event to the world.

If an invalid game event is provided, the default event "minecraft:step" will be sent.

Minecraft Game Event

Since

Minecraft version 1.19

Parameters

entity

The entity associated with the game event.

gameEvent

The name of the Minecraft game event to send, e.g., "minecraft:step".