Skip to main content

insert_spawn_conditions

Function insert_spawn_conditions 

Source
pub fn insert_spawn_conditions(
    compound: &mut NbtCompound,
    entries: &[SpawnConditionEntry],
)
Expand description

Serialize a spawn_conditions list into the enclosing compound. Matches vanilla’s [{priority, condition?}, …] shape exactly.