Added missing EntityValue documentation (#1318)
This commit is contained in:
1 parent
53f456320c
commit
4da992dd22
2 files changed
+68
-12
No files matched your search
+34
-6
@@ -3437,6 +3437,10 @@ List of entities riding the entity.
|
||||
|
||||
Entity that `e` rides.
|
||||
|
||||
### `query(e, 'unmountable')`
|
||||
|
||||
Boolean, true if the entity cannot be mounted.
|
||||
|
||||
### `(deprecated) query(e, 'tags')`
|
||||
|
||||
Deprecated by `query(e, 'scoreboard_tags')`
|
||||
@@ -3469,6 +3473,14 @@ Boolean, true if the entity is burning.
|
||||
|
||||
Number of remaining ticks of being on fire.
|
||||
|
||||
### `query(e, 'is_freezing')`
|
||||
|
||||
Boolean, true if the entity is freezing.
|
||||
|
||||
### `query(e, 'frost')`
|
||||
|
||||
Number of remaining ticks of being frozen.
|
||||
|
||||
### `query(e, 'silent')`
|
||||
|
||||
Boolean, true if the entity is silent.
|
||||
@@ -3485,6 +3497,10 @@ Boolean, true if the entity is invulnerable.
|
||||
|
||||
Boolean, true if the entity is immune to fire.
|
||||
|
||||
### `query(e, 'immune_to_frost')`
|
||||
|
||||
Boolean, true if the entity is immune to frost.
|
||||
|
||||
### `query(e, 'dimension')`
|
||||
|
||||
Name of the dimension the entity is in.
|
||||
@@ -3677,10 +3693,10 @@ Retrieves player hunger related information. For non-players, returns `null`.
|
||||
|
||||
Gets the absorption of the player (yellow hearts, e.g. when having a golden apple.)
|
||||
|
||||
### `query(e,'xp')`
|
||||
### `query(e,'xp_level')`
|
||||
### `query(e,'xp_progress')`
|
||||
### `query(e,'score')`
|
||||
### `query(e, 'xp')`
|
||||
### `query(e, 'xp_level')`
|
||||
### `query(e, 'xp_progress')`
|
||||
### `query(e, 'score')`
|
||||
|
||||
Numbers related to player's xp. `xp` is the overall xp player has, `xp_level` is the levels seen in the hotbar,
|
||||
`xp_progress` is a float between 0 and 1 indicating the percentage of the xp bar filled, and `score` is the number displayed upon death
|
||||
@@ -3871,7 +3887,7 @@ Moves the entity by a vector from its current location.
|
||||
|
||||
Sets the motion vector (where and how much entity is moving).
|
||||
|
||||
### `modify(e, 'motion_z', x), modify(e, 'motion_y', y), modify(e, 'motion_z', z)`
|
||||
### `modify(e, 'motion_x', x), modify(e, 'motion_y', y), modify(e, 'motion_z', z)`
|
||||
|
||||
Sets the corresponding component of the motion vector.
|
||||
|
||||
@@ -3922,6 +3938,10 @@ Dismounts riding entity.
|
||||
|
||||
Mounts the entity to the `other`.
|
||||
|
||||
### `modify(e, 'unmountable', boolean)`
|
||||
|
||||
Denies or allows an entity to be mounted.
|
||||
|
||||
### `modify(e, 'drop_passengers')`
|
||||
|
||||
Shakes off all passengers.
|
||||
@@ -3957,6 +3977,10 @@ Applies status effect to the living entity. Takes several optional parameters, w
|
||||
`true` and `false`. If no duration is specified, or if it's null or 0, the effect is removed. If name is not specified,
|
||||
it clears all effects.
|
||||
|
||||
### `modify(e, 'health', float)`
|
||||
|
||||
Modifies the health of an entity.
|
||||
|
||||
### `modify(e, 'may_fly', boolean)`
|
||||
|
||||
Allows or denies the player the ability to fly. If the player is flying and the ability is removed, the player will stop flying.
|
||||
@@ -4038,6 +4062,10 @@ Toggles invulnerability for the entity.
|
||||
|
||||
Will set entity on fire for `ticks` ticks. Set to 0 to extinguish.
|
||||
|
||||
### `modify(e, 'frost', ticks)`
|
||||
|
||||
Will give entity frost for `ticks` ticks. Set to 0 to unfreeze.
|
||||
|
||||
### `modify(e, 'hunger', value)`
|
||||
### `modify(e, 'saturation', value)`
|
||||
### `modify(e, 'exhaustion', value)`
|
||||
@@ -4060,7 +4088,7 @@ maybe you will get a double, who knows.
|
||||
|
||||
### `modify(e, 'air', ticks)`
|
||||
|
||||
Modifies entity air
|
||||
Modifies entity air.
|
||||
|
||||
### `modify(e, 'add_exhaustion', value)`
|
||||
|
||||
|
||||
Reference in new issue
Block a user