Minor Docs update (#1214)

This commit is contained in:
Crec0 authored and GitHub committed 2022-01-08 20:41:54 +01:00
1 parent caafaa2039
commit eed64f224e
2 files changed
+11 -5

No files matched your search

+10 -4
View File
@@ -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.
+1 -1
View File
@@ -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;