promotional bannermobile promotional banner

Surprising Loot

Lets you define "surprise" entity spawns when players open specific loot chests or minecarts via datapacks.

Surprising Loot

Surprising Loot can let you create datapacks to define unexpected encounters to adventurers!
When a player first opens a container tied to a specific loot table, there is a configurable chance to spawn entities nearby, making treasure hunts far more thrilling or insteresting.
Supports both vanilla and modded loot chests, and is compatible with Lootr.

An example datapack is included in
data/surprisingloot/loot_events/example.json:

{
"loot_table": "minecraft:chests/jungle_temple",
"check_range": 3,
"chance": 1,
"spawn_times": 3,
"entity_pool": [
{
"weight": 2,
"entity_type": "minecraft:zombie",
"nbt": "{CustomName:'\"Gift\"',CustomNameVisible:1b,Health:2.0f,Attributes:[{Name:\"generic.max_health\",Base:50.0}]}"
},
{
"weight": 1,
"glowing": true,
"entity_type": "minecraft:bat"
}
]
}

Datapack Field Explanation:

  • loot_table — The loot table ID this event applies to.
  • check_range — Search radius for valid spawn positions (in blocks).
  • chance — Chance for each spawn attempt to actually spawn a mob (0.0 ~ 1.0).
  • spawn_times — Number of spawn attempts to make when the event is triggered.
  • entity_pool — List of possible entities to spawn, with weighted selection.
    • weight — Higher values increase the probability of this entry being chosen.
    • entity_type — Entity ID to spawn.
    • nbt (optional) — NBT data string to customize the entity.
    • glowing (optional) — If true, the entity will spawn with the glowing effect.

Surprising Loot Team

profile avatar
  • 132
    Followers
  • 61
    Projects
  • 20.2M
    Downloads

More from hakujouchoView all

  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 413.8K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 654.5K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 32
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026
  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 413.8K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 654.5K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 32
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026