pub struct WaveMob {
pub entity: String,
pub count: u32,
pub name: Option<String>,
pub attributes: Option<MobAttributes>,
pub effects: Vec<MobEffect>,
pub equipment: Option<MobEquipment>,
pub drops: Vec<MobDrop>,
}Expand description
One mob stack in a Wave.
Fields§
§entity: StringVanilla entity id, validated against the pinned 1.21.11 registry.
count: u32How many to spawn.
name: Option<String>Optional custom name (shown above the mob).
attributes: Option<MobAttributes>Optional attribute overrides (DSL v0.4), emitted as 1.21.11 attribute components. Enables e.g. a weakened live warden as a survivable stealth threat. Omitted = vanilla defaults.
effects: Vec<MobEffect>Optional permanent, ambient status effects (DSL v0.4).
equipment: Option<MobEquipment>Optional worn/held equipment (DSL v0.6). A helmet is the
sanctioned fix for daylight-burning undead — never
set-time. Item ids validate against the pinned 1.21.11 item registry
(DW0143, the give-item family); every emitted slot carries drop
chance 0 so players can never farm wave gear (no-grind constitution).
drops: Vec<MobDrop>What this mob leaves behind when it dies (DSL v0.9). Only an elite/boss wave may declare it (DW0491)
— an ordinary mob’s kit is never farmable. Empty = drop chance 0 on
every slot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WaveMob
impl<'de> Deserialize<'de> for WaveMob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for WaveMob
impl JsonSchema for WaveMob
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more