Skip to content

Commit

Permalink
Merge pull request #946 from BedrockCommands/wiki
Browse files Browse the repository at this point in the history
Update selectors.md
  • Loading branch information
QuazChick authored Nov 30, 2024
2 parents f5de03a + 13be3e6 commit ff1a58c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/commands/selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,14 @@ Enchant the held item with Sharpness for all players within one block of (0, 100

### Volume

Limits the selection of targets to those inside of a cuboid volume. There are three arguments, each determining the size of the box along their respective axes. If at least one argument is defined, any remaining arguments left undefined are assumed to be 0. This selects entities by their feet.

The general formula for calculating the volume between two positions can be viewed as: `dx = x2 - x1; dy = y2 - y1; dz = z2 - z1`.
Limits the selection of targets to those within or intersecting a specified cuboid volume (bounding box). There are three arguments, each determining the size of the box along their respective axes. If at least one argument is defined, any remaining arguments left undefined are assumed to be 0. This selects entities by their hitbox.

The general formula for calculating the volume between two positions can be viewed as:
```
dx = x2 - x1
dy = y2 - y1
dz = z2 - z1
```

- `dx=<value>`, `dy=<value>`, and `dz=<value>`—Selects entities inside the given bounding box.

Expand Down

0 comments on commit ff1a58c

Please sign in to comment.