Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / EffectFields

Interface: EffectFields โ€‹

Defined in: core/values/effect.ts:19

One mob effect instance, typed:

Effect({ id: MobEffect.SLOWNESS, amplifier: 127, duration: -1, showParticles: false }) // 1.20.2+ -> {id:"minecraft:slowness",amplifier:127b,duration:-1,show_particles:0b} // 1.20.1 ->

Properties โ€‹

ambient? โ€‹

optional ambient?: boolean

Defined in: core/values/effect.ts:26

Semi-transparent particles, as from a beacon.


amplifier? โ€‹

optional amplifier?: number

Defined in: core/values/effect.ts:22

Level I is 0.


duration? โ€‹

optional duration?: number

Defined in: core/values/effect.ts:24

Ticks; -1 is infinite.


hiddenEffect? โ€‹

optional hiddenEffect?: EffectFields

Defined in: core/values/effect.ts:34

A lower-amplifier effect of the same type, restored when this one ends.


id โ€‹

id: MobEffect

Defined in: core/values/effect.ts:20


showIcon? โ€‹

optional showIcon?: boolean

Defined in: core/values/effect.ts:32

Whether the effect shows in the GUI. Only settable through NBT, since /effect ties it to particles.


showParticles? โ€‹

optional showParticles?: boolean

Defined in: core/values/effect.ts:27

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.