Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanations for selector permissions and relative coordinates #140

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions modules/basics-give/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
| Command | Permission |
|----------------------------------|-------------------------------------|
| `/give <item> [amount]` | basics.give |
| `/give <snbt> [amount]` | basics.give.snbt |
| `/give @receivers <item> [amount]` | basics.give.others |
| `/give @receivers <snbt> [amount]` | basics.give.others basics.give.snbt |
| Command | Permission |
|----------------------------------|---------------------------------------|
| `/give <item> [amount]` | basics.give |
| `/give <snbt> [amount]` | basics.give.snbt |
| `/give @receivers <item> [amount]` | basics.give.others |
| `/give @receivers <snbt> [amount]` | basics.give.others + basics.give.snbt |

> [!NOTE]
> Using selectors additionally requires permission `basics.selectors`.
15 changes: 14 additions & 1 deletion modules/basics-tp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,17 @@
| `/tp @destination` | basics.tp |
| `/tp <x y z [pitch yaw]>` | basics.tp |
| `/tp @targets @destination` | basics.tp.others |
| `/tp @targets <x y z [pitch yaw]>` | basics.tp.others |
| `/tp @targets <x y z [pitch yaw]>` | basics.tp.others |


> [!TIP]
> Coordinates **relative to the sender** can be used with `~x ~y ~z ~pitch ~yaw`
> Coordinates **relative to the target(s)** can be used with `~~x ~~y ~~z ~~pitch ~~yaw`
>
> Examples:
> - `/tp @e[type=pig] ~ ~ ~5` Teleports all pigs 5 blocks south of **the sender's** position
> - `/tp @e[type=pig] ~~ ~~ ~~1 ` Teleports all pigs 1 block south from **their current** position


> [!NOTE]
> Using selectors additionally requires permission `basics.selectors`.