Skip to content

@minecraft/server


@minecraft/server / PotionEffectType

Class: PotionEffectType ​

Defined in: @minecraft/server/index.d.ts:18358

Represents a type of potion effect - like healing or leaping.

Properties ​

durationTicks? ​

readonly optional durationTicks?: number

Defined in: @minecraft/server/index.d.ts:18369

Remarks ​

Duration of the effect when applied to an entity in ticks. Undefined means the effect does not expire.

Throws ​

This property can throw when used.

minecraftcommon.EngineError


id ​

readonly id: string

Defined in: @minecraft/server/index.d.ts:18370