Fix: typos in first half of ..\docs\scarpet\api (#275)
* Fix: typos in Auxiliary.md * Fix: typos in BlockIterations.md * Fix: typos in BlocksAndWorldAccess.md * Fix: typos in Entities.md * Fix: more typos in Entities.md * If you pause at ... while saying this sentence it makes sense. Most ppl think there is only one kind of air in mc. * redstone ticking * Update docs/scarpet/api/BlocksAndWorldAccess.md Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
This commit is contained in:
1 parent
955eb361f4
commit
72ed5020c6
4 files changed
+181
-171
No files matched your search
@@ -7,7 +7,7 @@ These functions help scan larger areas of blocks without using generic loop func
|
||||
Evaluates expression over area of blocks defined by its center `center = (cx, cy, cz)`, expanded in all directions
|
||||
by `range = (dx, dy, dz)` blocks, or optionally in negative with `range` coords, and `upper_range` coords in
|
||||
positive values.
|
||||
`center` can be defined either as a three coordinates, list of three coords, or block value.
|
||||
`center` can be defined either as three coordinates, a list of three coords, or a block value.
|
||||
`range` and `lower_range` can have the same representations, just if its a block, it computes the distance to the center
|
||||
as range instead of taking the values as is.
|
||||
`expr` receives `_x, _y, _z` as coords of current analyzed block and `_`, which represents the block itself.
|
||||
@@ -20,7 +20,7 @@ return value. `break` return value has no effect.
|
||||
|
||||
### `volume(x1, y1, z1, x2, y2, z2, expr)`
|
||||
|
||||
Evaluates expression for each block in the area, the same as the `scan`function, but using two opposite corners of
|
||||
Evaluates expression for each block in the area, the same as the `scan` function, but using two opposite corners of
|
||||
the rectangular cuboid. Any corners can be specified, its like you would do with `/fill` command.
|
||||
|
||||
For return value and handling `break` and `continue` statements, see `scan` function above.
|
||||
@@ -36,7 +36,7 @@ for(neighbours(x,y,z),air(_)) => 4 // number of air blocks around a block
|
||||
### `rect(cx, cy, cz, dx?, dy?, dz?, px?, py?, pz?)`
|
||||
|
||||
returns an iterator, just like `range` function that iterates over rectangular cubarea of blocks. If only center
|
||||
point is specified, it iterates over 27 blocks. If `d` arguments are specified, expands selection of respective
|
||||
point is specified, it iterates over 27 blocks. If `d` arguments are specified, expands selection by the respective
|
||||
number of blocks in each direction. If `p` arguments are specified, it uses `d` for negative offset, and `p` for positive.
|
||||
|
||||
### `diamond(cx, cy, cz, radius?, height?)`
|
||||
|
||||
Reference in new issue
Block a user