# Commands

| Command                                                                                                                                              | Description                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `/? [<command>\|privs]`                                                                                                                              | Alias for the built-in `/help` command                                                                           |
| [`/ability <player> <privilege> [<value>]`](https://thepython10110.gitbook.io/better-commands/commands/ability)                                      | Gets and sets player privileges.                                                                                 |
| [`/bc <command>`](https://thepython10110.gitbook.io/better-commands/commands/bc)                                                                     | Runs any Better Command (to deal with the problem of overriding commands)                                        |
| [`/clear [<targets>] [<item>] [<maxCount>]`](https://thepython10110.gitbook.io/better-commands/commands/clear)                                       | Clears items from player inventory. Can also detect and query the amount of specified items.                     |
| [`/changesetting`](https://thepython10110.gitbook.io/better-commands/commands/gamerule)                                                              | Alias for `/gamerule`                                                                                            |
| [`/clearspawnpoint [<targets>]`](https://thepython10110.gitbook.io/better-commands/commands/clearspawnpoint)                                         | Clears respawn points set with /spawnpoint                                                                       |
| [`/damage <targets> <amount> [<damageType] [by <entity>]`](https://thepython10110.gitbook.io/better-commands/commands/damage)                        | Applies a set amount of damage to the specified entities.                                                        |
| [`/enchant <targets> <enchantment> [<level>]`](https://thepython10110.gitbook.io/better-commands/commands/enchant)                                   | Adds an enchantment to a player's selected item, subject to the same restrictions as an anvil (MCL only).        |
| [`/execute align\|as\|at\|facing\|positioned\|rotated\|run ...`](https://thepython10110.gitbook.io/better-commands/commands/execute)                 | Runs a Better Command after changing the context)                                                                |
| [`/forceenchant <targets> <enchantment> [<level>]`](https://thepython10110.gitbook.io/better-commands/commands/forceenchant)                         | Adds an enchantment to a player's selected item, regardless of whether it would normally be possible (MCL only). |
| [`/gamemode <gamemode> [<targets>]`](https://thepython10110.gitbook.io/better-commands/commands/gamemode)                                            | Sets a player's gamemode                                                                                         |
| [`/gamerule <setting> [<value>]`](https://thepython10110.gitbook.io/better-commands/commands/gamerule)                                               | Sets or queries a setting                                                                                        |
| [`/give <targets> <item>`](https://thepython10110.gitbook.io/better-commands/commands/give)                                                          | Gives items to players                                                                                           |
| [`/giveme`](https://thepython10110.gitbook.io/better-commands/commands/give)                                                                         | Alias for `/give @s`                                                                                             |
| [`/kill [<targets>]`](https://thepython10110.gitbook.io/better-commands/commands/kill)                                                               | Kills entities (or self if `<targets>` left out)                                                                 |
| [`/killme`](https://thepython10110.gitbook.io/better-commands/commands/kill)                                                                         | Alias for`/kill @s`                                                                                              |
| [`/me <action>`](https://thepython10110.gitbook.io/better-commands/commands/me)                                                                      | Sends a message about yourself; can include target  selectors if you have the `server` privilege                 |
| [`/msg <targets> <message>`](https://thepython10110.gitbook.io/better-commands/commands/msg)                                                         | Sends a private message; can include target selectors if you have the `server` privilege                         |
| [`/old <command>`](https://thepython10110.gitbook.io/better-commands/commands/old)                                                                   | Runs any command overridden by a Better Command                                                                  |
| [`/playsound <sound> (<targets>\|<pos>) [<volume>] [<pitch>] [<maxDistance>]`](https://thepython10110.gitbook.io/better-commands/commands/playsound) | Plays a sound                                                                                                    |
| [`/remove [<targets>]`](https://thepython10110.gitbook.io/better-commands/commands/remove)                                                           | Removes entities (or self if `<entity>` left out)                                                                |
| [`/ride <target> <action> <vehicle>`](https://thepython10110.gitbook.io/better-commands/commands/ride)                                               | Attaches entities to other entities.                                                                             |
| [`/say <message>`](https://thepython10110.gitbook.io/better-commands/commands/say)                                                                   | Sends a message to all connected players; can include target selectors if you have the `server` privilege        |
| [`/scoreboard objectives\|players ...`](https://thepython10110.gitbook.io/better-commands/commands/scoreboard)                                       | Manipulates the scoreboard                                                                                       |
| [`/setblock <pos> <node> [keep\|replace]`](https://thepython10110.gitbook.io/better-commands/commands/setblock)                                      | Places a node                                                                                                    |
| [`/setnode`](https://thepython10110.gitbook.io/better-commands/commands/setblock)                                                                    | Alias for `/setblock`                                                                                            |
| [`/spawnpoint [<targets>]`](https://thepython10110.gitbook.io/better-commands/commands/spawnpoint)                                                   | Sets players' respawn points                                                                                     |
| [`/stop`](https://thepython10110.gitbook.io/better-commands/commands/stop)                                                                           | Stops the server.                                                                                                |
| [`/summon <entity> [<pos>] [<rot>]`](https://thepython10110.gitbook.io/better-commands/commands/summon)                                              | Summons an entity                                                                                                |
| [`/team add\|empty\|join\|leave\|list\|modify\|remove ...`](https://thepython10110.gitbook.io/better-commands/commands/team)                         | Manipulates teams.                                                                                               |
| [`/teammsg <message>`](https://thepython10110.gitbook.io/better-commands/commands/teammsg)                                                           | Sends a message to the executor's team                                                                           |
| [`/teleport ...`](https://thepython10110.gitbook.io/better-commands/commands/teleport)                                                               | Sets entities' position and rotation (too many argument combinations).                                           |
| [`/tell`](https://thepython10110.gitbook.io/better-commands/commands/msg)                                                                            | Alias for `/msg`                                                                                                 |
| [`/tm`](https://thepython10110.gitbook.io/better-commands/commands/teammsg)                                                                          | Alias for `/teammsg`                                                                                             |
| [`/toggledownfall`](https://thepython10110.gitbook.io/better-commands/commands/toggledownfall)                                                       | Toggles rain                                                                                                     |
| [`/trigger <objective> [add\|set <value>]`](https://thepython10110.gitbook.io/better-commands/commands/trigger)                                      | Allows players to set their own scores in controlled ways.                                                       |
| [`/tp`](https://thepython10110.gitbook.io/better-commands/commands/teleport)                                                                         | Alias for `/teleport`                                                                                            |
| [`/w`](https://thepython10110.gitbook.io/better-commands/commands/msg)                                                                               | Alias for `/msg`                                                                                                 |
| [`/weather <weather> [<duration>]`](https://thepython10110.gitbook.io/better-commands/commands/weather)                                              | Sets or queries the weather.                                                                                     |

## History

| Version | Action                                                                                                                                                                                                                                                                                                                                                                             |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| v1.0    | Added every command that wasn't added later.                                                                                                                                                                                                                                                                                                                                       |
| v2.0    | <p>Added <code>/gamemode</code>, <code>/enchant</code>, <code>/forceenchant</code>, <code>/teammsg</code>, <code>/spawnpoint</code>, <code>/clearspawnpoint</code>, <code>/clear</code>, <code>/gamerule</code>, <code>/changesetting</code>, <code>/remove</code>, and <code>/damage</code></p><p>Command outputs are now shown to other players and errors are shown in red.</p> |
| v3.0    | Added `/ride`, `/stop`, `/toggledownfall`, and `/weather`                                                                                                                                                                                                                                                                                                                          |
|         |                                                                                                                                                                                                                                                                                                                                                                                    |


---

# 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://thepython10110.gitbook.io/better-commands/commands.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.
