MobDef
A custom mob: a vanilla entity's look, or a display model. It has no AI; scripts spawn it with entities.spawn and move it with teleport and follow. Refused on a server that draws no creator mobs.
Fields
mobDef.attributes: { [string]: number }?attribute values by attribute key; a bare key such as "movement_speed" is the vanilla minecraft: attribute
mobDef.baby: boolean?the young form of a look that has one; default false
mobDef.health: number?health, above 0; omitted, it can't be hurt
mobDef.hitbox: MobHitbox?the box a click lands on, centred on x and z and rising from the mob's feet; with look, default the vanilla entity's own box; with model, default none, and the mob can't be clicked
mobDef.look: string?the minecraft: entity type it looks like; give exactly one of look and model
mobDef.model: string?a model key (see content.model) drawn on its own
mobDef.name: string?MiniMessage name shown above it; entities.spawn may override it; default none
mobDef.offset: Vector?shifts the model from the mob's position, in blocks; default none; a model only
mobDef.persistent: boolean?whether it is saved with the chunk and comes back when the chunk loads again; default true; entities.spawn takes only mobs declared persistent = false
mobDef.scale: number?draws the model this many times its size; default 1; a model only