You are viewing a potentially older version of this package. View all versions.
cjayride-BossLootChests-1.0.10 icon

BossLootChests

Boss loot goes into unbreakable chests at the death spot instead of dumping on the ground. Chests vanish in smoke when emptied.

Date uploaded a day ago
Version 1.0.10
Download link cjayride-BossLootChests-1.0.10.zip
Downloads 104
Dependency string cjayride-BossLootChests-1.0.10

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2350

README

Boss Loot Chests

When a boss dies, its loot is placed in black-metal chests at its feet instead of dumping on the ground.

That stops auto-pickup and crowded melee from grabbing coins and unique drops before anyone sees what dropped.

Install on server and all clients.

What it does

  • Intercepts boss loot before it becomes a world item drop.
  • Fills piece_chest_blackmetal chests (config: ChestPrefab). Spawns more chests if one is full.
  • Chests cannot be broken or hammered away.
  • An emptied chest deletes itself and plays a smoke puff.
  • Works with EpicLoot: magic items go into the chests too.
  • Drop That and Epic Loot roll first, so magic weapons keep their rolls in the chest.
  • One-per-player drops count only players within PerPlayerRange of the boss when it dies. Drops with an amount range (such as Coins 200–300) give that amount for each of those players.
  • Adds that were within AddRadius of the boss while it was alive still drop into the boss chest after it dies, for as long as you take to finish them. Creatures that show up after the boss is dead stay on the ground. An add nobody is fighting is forgotten after AddIdleSeconds. Nearby adds that die within AddSeconds of the chest appearing also go in. This works in multiplayer, whichever player's game handles the add.

Config (cjayride.bosslootchests.cfg)

Setting Default
Enabled true Master switch
ChestPrefab piece_chest_blackmetal World container prefab
RemoveSmoke true Smoke when an empty chest vanishes
AddRadius 180 Meters around a boss in combat. Add drops in that range go into the boss chest.
AddSeconds 60 Seconds after the boss chest appears that nearby add drops still go into it.
AddIdleSeconds 1200 After the boss dies, an add that nobody is fighting is forgotten after this many seconds. Fighting it resets the timer.
PerPlayerAmounts true One-per-player boss drops count nearby players. Amount ranges are given per player.
PerPlayerRange 400 Meters from the boss. Only players this close when it dies count for one-per-player drops.
BountyLootInChest false Epic Loot bounty targets use boss chests too.

Changelog

See CHANGELOG.md.

CHANGELOG

Changelog

1.0.10

  • Fix: When Path of Valheiman drops essence/jewel immediately after boss death, and ragdoll normal loot comes shortly afterward, both now go into the same chest when there is free space (~3/32 slots). Only a second chest spawns on actual overflow (>32 slots total). This prevents two chests from spawning unnecessarily when room exists in the first chest.

1.0.9

  • Creatures that were within 180 meters of the boss while it was alive still drop into the boss chest after the boss is dead, for as long as you take to finish them. Creatures that show up after the boss is dead stay on the ground. AddIdleSeconds (20 minutes) forgets a remembered add that nobody is fighting. Fighting it resets that timer.

1.0.8

  • One-per-player boss drops count only living players within PerPlayerRange (400 meters by default) of the boss when it dies. Before, every player online counted, so a solo kill paid out for the whole server.
  • This covers drops with an amount range, such as Coins 200–300 each, and single items such as trophies.

1.0.7

  • Fix: Epic Loot boss items were stored twice. Each weapon, shield, tool, and other magic item showed up as two copies with the same stats. Coins and other stacks were not doubled. Each rolled item now goes into the chest once.

1.0.6

  • Fix: coins, trophies, and other normal boss drops go into the chest again. 1.0.4 stopped catching them, so they fell on the ground.
  • Fix: one-per-player boss drops with an amount range now give that amount for each player online. Eikthyr Coins 200–300 with 3 players gives 600–900. Eikthyr eitr shards 5 with 3 players gives 15. Before, Valheim gave a flat 1 per player, and the shard row gave 5 total. PerPlayerAmounts, on by default.
  • Fix: add loot reaches the boss chest even when a different player's game handles the add's death. Adds count when they die within AddRadius of a boss in combat, of the boss's body, or of a boss chest that appeared within the last AddSeconds (now 60). AddRadius is now 600 meters.
  • Weapons keep their Drop That and Epic Loot magic rolls before they go into the chest.

1.0.5

  • Epic Loot bounty targets are no longer forced into boss chests by default (BountyLootInChest = false). Set it true to restore the old behavior.

1.0.4

  • Boss loot is captured from the drop that actually spawns, so Drop That can roll the configured amounts first. The Elder coin line (400–500 per player) was being replaced by vanilla's one-coin-per-player because this mod skipped Drop That's roll.
  • Adds that die within 80 meters of an alerted boss, and for 8 seconds after the boss dies, have their drops stored and placed in the boss chest. Another chest spawns beside it when one fills up.

1.0.3

  • Fix: empty-chest smoke uses the chest piece’s vanilla destroy effect (no more “no smoke prefabs found” on clients).

1.0.2

  • Fix: boss chests vanishing instantly on spawn (watcher no longer runs empty-check before loot is added).

1.0.1

  • Fix: boss chests empty after logout/login now smoke-delete again (BossChestWatcher re-hooks inventory on load).

1.0.0

  • Boss loot goes straight into world chests at the death spot. Nothing is spawned as a ground drop, so auto-pickup cannot grab it.
  • Extra chests spawn if one chest is not enough.
  • Chests are indestructible (hammer and damage do nothing).
  • A chest deletes itself when the last item is taken, with a smoke puff (RemoveSmoke, on by default).
  • EpicLoot magic-item rolls are stored in the same chests when EpicLoot is installed.
  • Install on the server and all clients.