sendGameEvent
Sends a game event to the world.
If an invalid game event is provided, the default event "minecraft:step" will be sent.
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".