Added missing EntityValue documentation (#1318)

This commit is contained in:
carseatheadrest authored and GitHub committed 2022-02-16 00:04:36 +01:00
1 parent 53f456320c
commit 4da992dd22
2 files changed
+60 -4

No files matched your search

+30 -2
View File
@@ -3437,6 +3437,10 @@ List of entities riding the entity.
Entity that `e` rides. Entity that `e` rides.
### `query(e, 'unmountable')`
Boolean, true if the entity cannot be mounted.
### `(deprecated) query(e, 'tags')` ### `(deprecated) query(e, 'tags')`
Deprecated by `query(e, 'scoreboard_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. 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')` ### `query(e, 'silent')`
Boolean, true if the entity is 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. 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')` ### `query(e, 'dimension')`
Name of the dimension the entity is in. Name of the dimension the entity is in.
@@ -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). 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. Sets the corresponding component of the motion vector.
@@ -3922,6 +3938,10 @@ Dismounts riding entity.
Mounts the entity to the `other`. Mounts the entity to the `other`.
### `modify(e, 'unmountable', boolean)`
Denies or allows an entity to be mounted.
### `modify(e, 'drop_passengers')` ### `modify(e, 'drop_passengers')`
Shakes off all 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, `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. it clears all effects.
### `modify(e, 'health', float)`
Modifies the health of an entity.
### `modify(e, 'may_fly', boolean)` ### `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. 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. 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, 'hunger', value)`
### `modify(e, 'saturation', value)` ### `modify(e, 'saturation', value)`
### `modify(e, 'exhaustion', value)` ### `modify(e, 'exhaustion', value)`
@@ -4060,7 +4088,7 @@ maybe you will get a double, who knows.
### `modify(e, 'air', ticks)` ### `modify(e, 'air', ticks)`
Modifies entity air Modifies entity air.
### `modify(e, 'add_exhaustion', value)` ### `modify(e, 'add_exhaustion', value)`
+30 -2
View File
@@ -202,6 +202,10 @@ List of entities riding the entity.
Entity that `e` rides. Entity that `e` rides.
### `query(e, 'unmountable')`
Boolean, true if the entity cannot be mounted.
### `(deprecated) query(e, 'tags')` ### `(deprecated) query(e, 'tags')`
Deprecated by `query(e, 'scoreboard_tags')` Deprecated by `query(e, 'scoreboard_tags')`
@@ -234,6 +238,14 @@ Boolean, true if the entity is burning.
Number of remaining ticks of being on fire. 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')` ### `query(e, 'silent')`
Boolean, true if the entity is silent. Boolean, true if the entity is silent.
@@ -250,6 +262,10 @@ Boolean, true if the entity is invulnerable.
Boolean, true if the entity is immune to fire. 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')` ### `query(e, 'dimension')`
Name of the dimension the entity is in. Name of the dimension the entity is in.
@@ -636,7 +652,7 @@ Moves the entity by a vector from its current location.
Sets the motion vector (where and how much entity is moving). 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. Sets the corresponding component of the motion vector.
@@ -687,6 +703,10 @@ Dismounts riding entity.
Mounts the entity to the `other`. Mounts the entity to the `other`.
### `modify(e, 'unmountable', boolean)`
Denies or allows an entity to be mounted.
### `modify(e, 'drop_passengers')` ### `modify(e, 'drop_passengers')`
Shakes off all passengers. Shakes off all passengers.
@@ -722,6 +742,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, `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. it clears all effects.
### `modify(e, 'health', float)`
Modifies the health of an entity.
### `modify(e, 'may_fly', boolean)` ### `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. Allows or denies the player the ability to fly. If the player is flying and the ability is removed, the player will stop flying.
@@ -803,6 +827,10 @@ Toggles invulnerability for the entity.
Will set entity on fire for `ticks` ticks. Set to 0 to extinguish. 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, 'hunger', value)`
### `modify(e, 'saturation', value)` ### `modify(e, 'saturation', value)`
### `modify(e, 'exhaustion', value)` ### `modify(e, 'exhaustion', value)`
@@ -825,7 +853,7 @@ maybe you will get a double, who knows.
### `modify(e, 'air', ticks)` ### `modify(e, 'air', ticks)`
Modifies entity air Modifies entity air.
### `modify(e, 'add_exhaustion', value)` ### `modify(e, 'add_exhaustion', value)`