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

    EntityFilterOptions

    Options for Dimension.getEntities.

    Interface in @minecraft/server

    Options for Dimension.getEntities.

    import type { EntityFilterOptions } from '@minecraft/server';

    optional

    type?: string;

    Only entities of this type, as minecraft:zombie.

    optional

    excludeTypes?: string[];

    Leave out entities of these types.

    optional

    name?: string;

    Only entities with this name tag.

    optional

    location?: Vector3;

    Measure distances from here; entities come nearest first.

    Types

    optional

    maxDistance?: number;

    With location: no farther than this.

    optional

    minDistance?: number;

    With location: no nearer than this.

    optional

    closest?: number;

    With location: only this many of the nearest.

    optional

    farthest?: number;

    With location: only this many of the farthest.

    optional

    tags?: string[];

    Only entities with every one of these tags.

    optional

    excludeTags?: string[];

    Leave out entities with any of these tags.

    Entity.matches, Dimension.getEntities, Dimension.getPlayers