Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Entities

    PotionEffectType

    Which potion a potion item holds, as MinecraftPotionEffectTypes names them: Swiftness, LongSwiftness, ...

    2 properties
    On this page

    Class in @minecraft/server

    Which potion a potion item holds, as MinecraftPotionEffectTypes names them: Swiftness, LongSwiftness, …

    import { PotionEffectType } from '@minecraft/server';

    read-only

    readonly id: string;

    read-only optional

    readonly durationTicks?: number;

    How long its effect lasts, in ticks; undefined for an instant potion or none.

    ItemPotionComponent.potionEffectType, Potions.getAllEffectTypes, Potions.getEffectType, Potions.resolve