# Sandbox Mode

To get started, select **Sandbox** from the creative menu gamemode dropdown.

The Sandbox gamemode disables some of BedWars core features to allow you to create games that would otherwise be difficult to create.

* No beds are spawned in Sandbox mode.
* There is no win condition by default.

You must set each team's spawn in your creative map with the `/setteamspawn {team-name}` command, otherwise a default spawn position will be chosen. You can also use the Team Spawn Creative Gadget to set a team spawn position.

Players are automatically spawned at their team's spawn location on match start and after entity death.

To spawn a late joiner, listen to the [`PlayerAdded`](/scripting/bedwars-scripting/events/playeradded.md) event and assign a team. They will automatically spawn at their team's spawn location.

To declare a winner, use [`MatchService.endMatch()`](/scripting/bedwars-scripting/services/matchservice.md) and pass in the winning team (Passing in no team indicates a draw).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.easy.gg/scripting/sandbox-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
