Minor Docs update (#1214)
This commit is contained in:
1 parent
caafaa2039
commit
eed64f224e
2 files changed
+11
-5
No files matched your search
@@ -202,13 +202,19 @@ List of entities riding the entity.
|
|||||||
|
|
||||||
Entity that `e` rides.
|
Entity that `e` rides.
|
||||||
|
|
||||||
### `query(e, 'scoreboard_tags')` and
|
### `(deprecated) query(e, 'tags')`
|
||||||
### `query(e, 'tags')`(deprecated)
|
|
||||||
|
Deprecated by `query(e, 'scoreboard_tags')`
|
||||||
|
|
||||||
|
### `query(e, 'scoreboard_tags')`
|
||||||
|
|
||||||
List of entity's scoreboard tags.
|
List of entity's scoreboard tags.
|
||||||
|
|
||||||
### `query(e, 'has_scoreboard_tag',tag)` and
|
### `(deprecated) query(e, 'has_tag',tag)`
|
||||||
### `query(e, 'has_tag',tag)`(deprecated)
|
|
||||||
|
Deprecated by `query(e, 'has_scoreboard_tag',tag)`
|
||||||
|
|
||||||
|
### `query(e, 'has_scoreboard_tag',tag)`
|
||||||
|
|
||||||
Boolean, true if the entity is marked with a `tag` scoreboad tag.
|
Boolean, true if the entity is marked with a `tag` scoreboad tag.
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ Or an example to find if a player has specific enchantment on a held axe (either
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
global_get_enchantment(p, ench) -> (
|
global_get_enchantment(p, ench) -> (
|
||||||
$ for(['main','offhand'],
|
$ for(['mainhand','offhand'],
|
||||||
$ holds = query(p, 'holds', _);
|
$ holds = query(p, 'holds', _);
|
||||||
$ if( holds,
|
$ if( holds,
|
||||||
$ [what, count, nbt] = holds;
|
$ [what, count, nbt] = holds;
|
||||||
|
|||||||
Reference in new issue
Block a user