Merge branch 'master' into 1.16

This commit is contained in:
gnembon committed 2020-06-29 12:26:14 -03:00
commit 51313d496e
5 files changed
+44 -5

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ Queries in-game statistics for certain values. Categories include:
* `picked_up`: items picked up
* `dropped`: items dropped
* `killed`: mobs killed
* `killed_by`: blocks mined
* `killed_by`: mobs killed by
* `custom`: various random stats
For the options of `entry`, consult your statistics page, or give it a guess.
+12 -2
View File
@@ -128,6 +128,10 @@ query(e,'type') => villager
Returns a valid string to be used in commands to address an entity. Its UUID for all entities except
player, where its their name.
## `query(e, 'persistence')`
Returns if a mob has a persistence tag or not. Returns `null` for non-mob entities.
<pre>
run('/kill ' + e~'command_name');
</pre>
@@ -411,9 +415,15 @@ Sets the corresponding component of the motion vector.
Adds a vector to the motion vector. Most realistic way to apply a force to an entity.
### `modify(e, 'custom_name'), modify(e, 'custom_name', name)`
### `modify(e, 'custom_name')`, `modify(e, 'custom_name', name)`, `modify(e, 'custom_name', name, visible)`
Sets the custom name of the entity.
Sets the custom name of the entity. Without arguments - clears current custom name. Optional visible affects
if the custom name is always visible, even through blocks.
### `modify(e, 'persistence', bool?)`
Sets the entity persistence tag to `true` (default) or `false`. Only affects mobs. Persistent mobs
don't despawn and don't count towards the mobcap.
### `modify(e, 'age', number)`