added view_distance to API

This commit is contained in:
gnembon committed 2020-06-02 18:44:23 -03:00
1 parent 681d6ec9ee
commit a7cd2c49cc
5 files changed
+14 -1

No files matched your search

+3
View File
@@ -3350,6 +3350,9 @@ Returns current dimension that the script runs in.
Evaluates the expression `expr` with different dimension execution context. `smth` can be an entity,
world-localized block, so not `block('stone')`, or a string representing a dimension like:
`'nether'`, `'the_nether'`, `'end'` or `'overworld'`, etc.
### `view_distance()`
Returns the view distance of the server.
### `schedule(delay, function, args...)`