Options for Dimension.getEntities.
Interface in @minecraft/server
Options for Dimension.getEntities.
import type { EntityFilterOptions } from '@minecraft/server';Properties
Section titled “Properties”optional
type?: string;Only entities of this type, as minecraft:zombie.
excludeTypes
Section titled “excludeTypes”optional
excludeTypes?: string[];Leave out entities of these types.
optional
name?: string;Only entities with this name tag.
location
Section titled “location”optional
location?: Vector3;Measure distances from here; entities come nearest first.
Types
maxDistance
Section titled “maxDistance”optional
maxDistance?: number;With location: no farther than this.
minDistance
Section titled “minDistance”optional
minDistance?: number;With location: no nearer than this.
closest
Section titled “closest”optional
closest?: number;With location: only this many of the nearest.
farthest
Section titled “farthest”optional
farthest?: number;With location: only this many of the farthest.
optional
tags?: string[];Only entities with every one of these tags.
excludeTags
Section titled “excludeTags”optional
excludeTags?: string[];Leave out entities with any of these tags.