> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/services/mountservice.md).

# MountService

Example usage:

```lua
-- Give all entities Dodo Birds when the match starts
Events.MatchStart(function(event)
    for i, player in ipairs(PlayerService.getPlayers()) do
        MountService.spawnMount(MountType.DODO_BIRD, player)
    end
end)
```

### Functions

#### spawnMount(mountType: [MountType](/scripting/bedwars-scripting/types/mounttype.md), player: [Player](/scripting/bedwars-scripting/objects/player.md)): void

Spawns a mount of the given type for the specified player and mounts the player.

BedWars mounts available for use are contained in the [MountType](/scripting/bedwars-scripting/types/mounttype.md) list.
