Merge docs for 'Carpet Mod 1.4.128 for Minecraft 1.20.3'

This commit is contained in:
github-actions[bot] committed 2023-12-05 21:54:13 +00:00
1 parent 92176312d9
commit ab79e76b51
1 file changed
+2 -2
+2 -2
View File
@@ -3650,7 +3650,7 @@ version indicates the version of the connected carpet client.
### `query(e, 'effect', name?)` ### `query(e, 'effect', name?)`
Without extra arguments, it returns list of effect active on a living entity. Each entry is a triple of short Without extra arguments, it returns list of effect active on a living entity. Each entry is a triple of short
effect name, amplifier, and remaining duration in ticks. With an argument, if the living entity has not that potion active, effect name, amplifier, and remaining duration in ticks (-1 if it has infinity duration). With an argument, if the living entity has not that potion active,
returns `null`, otherwise return a tuple of amplifier and remaining duration. returns `null`, otherwise return a tuple of amplifier and remaining duration.
<pre> <pre>
@@ -3990,7 +3990,7 @@ players, since they are controlled client side.
### `modify(e, 'effect', name?, duration?, amplifier?, show_particles?, show_icon?, ambient?)` ### `modify(e, 'effect', name?, duration?, amplifier?, show_particles?, show_icon?, ambient?)`
Applies status effect to the living entity. Takes several optional parameters, which default to `0`, `true`, Applies status effect to the living entity. Takes several optional parameters, which default to `0`, `true`,
`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 duration is less than 0, it will represent infinity. If name is not specified,
it clears all effects. it clears all effects.
### `modify(e, 'health', float)` ### `modify(e, 'health', float)`