Monster Spawner/BE/Spawn Data

📌 Mirrored from Minecraft Wiki

This article is reproduced from Monster Spawner/BE/Spawn Data on the Minecraft Wiki. Mirrored from revision 3121654. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [NBT Compound / JSON Object] entity: An entity, including the entity id.
    • [NBT Compound / JSON Object] custom_spawn_rules: Optional custom fields to override spawning requirements.
      • [Int] block_light_limit: Can either be a single value, or a compound containing min_inclusive and max_inclusive. Overrides the block light check when spawning the entity.
      • [Int] sky_light_limit: Can either be a single value, or a compound containing min_inclusive and max_inclusive. Overrides the sky light check when spawning the entity.
    • [NBT Compound / JSON Object] equipment: Optional. Determines the equipment the entity will wear.
      • [String] loot_table: Resource location of a loot table to use to generate the equipment
      • [Float][NBT Compound / JSON Object] slot_drop_chances: Optional. When a [Float] determines the drop chances for every slot. When a [NBT Compound / JSON Object], controls the drop chances per slot.
        • [Float] feet: Optional. Drop chance of the boots.
        • [Float] legs: Optional. Drop chance of the leggings.
        • [Float] chest: Optional. Drop chance of the chestplate.
        • [Float] head: Optional. Drop chance of the helmet.
        • [Float] body: Optional. Drop chance of the body armor.
        • [Float] mainhand: Optional. Drop chance of the weapon in the main hand.
        • [Float] offhand: Optional. Drop chance of the weapon in the off hand.

Sources