The DamagedByEntityCondition class in @minecraft/server.
Class in @minecraft/server
Extends LootItemCondition
import { DamagedByEntityCondition } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”entityType
Section titled “entityType”read-only
readonly entityType: string;