Skip to content

Commit 2691a57

Browse files
ThePython10110gitbook-bot
authored andcommitted
GITBOOK-32: No subject
1 parent 3014f7f commit 2691a57

File tree

6 files changed

+170
-86
lines changed

6 files changed

+170
-86
lines changed

SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
* [/bc](commands/bc.md)
77
* [/clear](commands/clear.md)
88
* [/clearspawnpoint](commands/clearspawnpoint.md)
9+
* [/enchant](commands/enchant.md)
910
* [/execute](commands/execute.md)
11+
* [/forceenchant](commands/forceenchant.md)
1012
* [/gamemode](commands/gamemode.md)
1113
* [/gamerule](commands/gamerule.md)
1214
* [/give](commands/give.md)
1315
* [/kill](commands/kill.md)
1416
* [/me](commands/me.md)
1517
* [/msg](commands/msg.md)
1618
* [/old](commands/old.md)
19+
* [/remove](commands/remove.md)
1720
* [/say](commands/say.md)
1821
* [/summon](commands/summon.md)
1922
* [/scoreboard](commands/scoreboard.md)

commands/README.md

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,45 @@ description: The complete list of Better Commands
44

55
# Commands
66

7-
| Command | Description |
8-
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
9-
| `/? [<command>\|privs]` | Alias for the built-in `/help` command |
10-
| [`/ability <player> <priv> [true\|false]`](ability.md) | Gets and sets player privs |
11-
| [`/bc <command>`](bc.md) | Runs any Better Command |
12-
| [`/clear [targets] [item] [maxCount]`](clear.md) | Clears items from player inventory. Can also detect and query the amount of specified items. |
13-
| [`/changesetting`](gamerule.md) | Alias for `/gamerule` |
14-
| [`/clearspawnpoint [targets]`](clearspawnpoint.md) | Clears players' respawn points |
15-
| [`/execute align\|anchored\|as\|at\|facing\|positioned\|rotated\|run ...`](execute.md) | Runs a Better Command after changing the context) |
16-
| [`/gamemode <gamemode> [player]`](gamemode.md) | Sets a player's gamemode |
17-
| [`/gamerule <setting> [value]`](gamerule.md) | Sets or queries a setting |
18-
| [`/give <player> <item> [count] [wear]`](give.md) | Gives items to players |
19-
| [`/giveme ...`](give.md) | Alias for `/give @s ...` |
20-
| [`/kill [entity]`](kill.md) | Kills entities (or self if `<player>` left out) |
21-
| [`/killme`](kill.md) | Equivalent to `/kill @s` |
22-
| [`/me <message>`](me.md) | Sends a message about yourself; can target selectors if you have the `server` privilege |
23-
| [`/msg <target> <message>`](msg.md) | Sends a private message; can include target selectors if you have the `server` privilege |
24-
| [`/old <command>`](old.md) | Runs any command overridden by a Better Command |
25-
| [`/say <message>`](say.md) | Sends a message to all connected players; can include target selectors if you have the `server` privilege |
26-
| [`/spawnpoint [targets]`](spawnpoint.md) | Sets players' respawn points |
27-
| [`/summon <entity> [pos] [rot]`](summon.md) | Summons an entity |
28-
| [`/scoreboard objectives\|players ...`](scoreboard.md) | Manipulates the scoreboard |
29-
| [`/setblock <pos> <node> [keep\|replace]`](setblock.md) | Places a node |
30-
| [`/setnode`](setblock.md) | Alias for `/setblock` |
31-
| [`/team add\|empty\|join\|leave\|list\|modify\|remove ...`](team.md) | Manipulates teams. |
32-
| [`/teammsg <message>`](teammsg.md) | Sends a message to the executor's team |
33-
| [`/teleport ...`](teleport.md) | Sets entities' position and rotation (too many argument combinations). |
34-
| [`/tell`](msg.md) | Alias for `/msg` |
35-
| [/tm](teammsg.md) | Alias for `/teammsg` |
36-
| [`/trigger <objective> [add\|set <value>]`](trigger.md) | Allows players to set their own scores in controlled ways. |
37-
| [`/tp`](teleport.md) | Alias for `/teleport` |
38-
| [`/w`](msg.md) | Alias for `/msg` |
7+
| Command | Description |
8+
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
9+
| `/? [<command>\|privs]` | Alias for the built-in `/help` command |
10+
| [`/ability <player> <priv> [true\|false]`](ability.md) | Gets and sets player privs |
11+
| [`/bc <command>`](bc.md) | Runs any Better Command |
12+
| [`/clear [targets] [item] [maxCount]`](clear.md) | Clears items from player inventory. Can also detect and query the amount of specified items. |
13+
| [`/changesetting`](gamerule.md) | Alias for `/gamerule` |
14+
| [`/clearspawnpoint [targets]`](clearspawnpoint.md) | Clears players' respawn points |
15+
| [`/enchant <targets> <enchantment> [level]`](enchant.md) | Adds an enchantment to a player's selected item, subject to the same restrictions as an anvil (MCL only). |
16+
| [`/execute align\|anchored\|as\|at\|facing\|positioned\|rotated\|run ...`](execute.md) | Runs a Better Command after changing the context) |
17+
| `/forceenchant <targets> <enchantment> [level]` | Adds an enchantment to a player's selected item, regardless of whether it would normally be possible (MCL only). |
18+
| [`/gamemode <gamemode> [player]`](gamemode.md) | Sets a player's gamemode |
19+
| [`/gamerule <setting> [value]`](gamerule.md) | Sets or queries a setting |
20+
| [`/give <player> <item> [count] [wear]`](give.md) | Gives items to players |
21+
| [`/giveme ...`](give.md) | Alias for `/give @s ...` |
22+
| [`/kill [entity]`](kill.md) | Kills entities (or self if `[entity]` left out) |
23+
| [`/killme`](kill.md) | Equivalent to `/kill @s` |
24+
| [`/me <message>`](me.md) | Sends a message about yourself; can target selectors if you have the `server` privilege |
25+
| [`/msg <target> <message>`](msg.md) | Sends a private message; can include target selectors if you have the `server` privilege |
26+
| [`/old <command>`](old.md) | Runs any command overridden by a Better Command |
27+
| [`/remove [entity]`](remove.md) | Removes entities (or self if `[entity]` left out |
28+
| [`/say <message>`](say.md) | Sends a message to all connected players; can include target selectors if you have the `server` privilege |
29+
| [`/spawnpoint [targets]`](spawnpoint.md) | Sets players' respawn points |
30+
| [`/summon <entity> [pos] [rot]`](summon.md) | Summons an entity |
31+
| [`/scoreboard objectives\|players ...`](scoreboard.md) | Manipulates the scoreboard |
32+
| [`/setblock <pos> <node> [keep\|replace]`](setblock.md) | Places a node |
33+
| [`/setnode`](setblock.md) | Alias for `/setblock` |
34+
| [`/team add\|empty\|join\|leave\|list\|modify\|remove ...`](team.md) | Manipulates teams. |
35+
| [`/teammsg <message>`](teammsg.md) | Sends a message to the executor's team |
36+
| [`/teleport ...`](teleport.md) | Sets entities' position and rotation (too many argument combinations). |
37+
| [`/tell`](msg.md) | Alias for `/msg` |
38+
| [/tm](teammsg.md) | Alias for `/teammsg` |
39+
| [`/trigger <objective> [add\|set <value>]`](trigger.md) | Allows players to set their own scores in controlled ways. |
40+
| [`/tp`](teleport.md) | Alias for `/teleport` |
41+
| [`/w`](msg.md) | Alias for `/msg` |
3942

4043
## History
4144

42-
| Version | Action |
43-
| ------- | -------------------------------------------------------------- |
44-
| v1.0 | Added a whole bunch of commands that I don't want to list here |
45-
| v2.0 | Added `/gamemode` |
45+
| Version | Action |
46+
| ------- | ------------------------------------------------------------------------------------------------------------------ |
47+
| v1.0 | Added a whole bunch of commands that I don't want to list here |
48+
| v2.0 | <p>Added <code>/gamemode</code><br>Command outputs are now shown to other players and errors are shown in red.</p> |

commands/enchant.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
description: >-
3+
Adds an enchantment to a player's selected item, subject to the same
4+
restrictions as an anvil (MCL only).
5+
---
6+
7+
# /enchant
8+
9+
## Syntax
10+
11+
`enchant <targets> <enchantment> [level]`
12+
13+
## Arguments
14+
15+
`<targets>` Selector
16+
17+
Specifies the target(s).
18+
19+
`<enchantment>` String
20+
21+
Specifies the enchantment to be added to the item held in the target's main hand.
22+
23+
`[level]` Number
24+
25+
Specifies the enchantment level. Should not be greater than the maximum level for the specified enchantment. If not specified, defaults to 1.
26+
27+
Must be a positive integer.
28+
29+
## Examples
30+
31+
* To give the Infinity enchantment to all players holding a bow:
32+
33+
`/enchant @a infinity`
34+
* To enchant the nearest player's held sword with Sharpness 5:
35+
36+
`/enchant @p sharpness 5`
37+
38+
## History
39+
40+
| Version | Action |
41+
| ------- | ---------------- |
42+
| v2.0 | Added `/enchant` |

0 commit comments

Comments
 (0)