Radamanto-LootBox icon

LootBox

Configurable reward boxes.

Last updated 2 months ago
Total downloads 11824
Total rating 7 
Categories Mods Utility Mistlands Update Hildir's Request Update World Generation Ashlands Update Bog Witch Update
Dependency string Radamanto-LootBox-1.1.6
Dependants 17 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333

README

LootBox

Open mysterious boxes and receive fully configurable rewards, with adjustable chances, amounts, and item quality.
Perfect for servers looking to create progression systems, treasure events, or custom rewards in Valheim.

Features

  • Fully Configurable
    Define custom drop tables directly in the configuration file, supporting individual chances, quantity ranges, and item quality.

  • Independent Chances System
    Each item has its own independent drop chance.

  • Server-Synced
    All configurations are synchronized via ServerSync, ensuring consistent behavior across all players.

  • Modular Integration
    The mod does not automatically drop from creatures.
    It is designed to work together with other loot systems such as Drop That!

Configuration

  • Automatic creation of folder and template file
    On first initialization, the mod automatically creates the LootBox folder inside BepInEx/config, along with a template configuration file to serve as a starting point. (This is only generated on server and single-player environments; it is not generated on clients.)

  • Definitions via CFG files
    Lootboxes are configured through external .cfg files inside the BepInEx/config/LootBox folder, keeping the setup cleaner and easier to maintain.

  • File naming
    Configuration files use this pattern:
    radamanto.LootBox.<anything>.cfg

  • Multiple files supported
    You can split your lootboxes across multiple different files, and each file can contain multiple lootbox definitions, as long as they are placed inside the LootBox folder and follow the expected naming pattern.

  • One section per lootbox prefab
    Each lootbox must be declared using the prefab name as the section header. Do not configure the same lootbox twice. Example:
    [rd_gold_lootbox_01]

  • Reward line format
    Each line inside the section represents one possible reward, using this format:
    Item=Chance,Amount,Quality

  • Fixed amount or range
    The amount field supports both fixed values and ranges:
    5 = fixed amount
    50-100 = random amount between 50 and 100

  • Examples of valid configurations

    [rd_gold_lootbox_01]
    Coins=100,50-100,1
    Ruby=50,5,1
    SwordSilver=50,1,2
    
    [rd_gold_lootbox_02]
    Iron=100,25-50,1
    SwordBlackmetal=35,1,3
    ShieldBlackmetal=20,1,2
    
    [rd_gold_lootbox_03]
    Resin=100,10-30,1
    FreezeGland=40,3-8,1
    BowHuntsman=25,1,2
    
    
  • Example explanation
    Coins=100,50-100,1 → 100% chance, amount between 50 and 100, quality 1
    Ruby=50,5,1 → 50% chance, fixed amount 5, quality 1
    SwordSilver=50,1,2 → 50% chance, amount 1, quality 2

  • Important
    The section name must match the lootbox prefab exactly.
    The item name must also match the item's internal in-game name exactly.

Translations

  • YML translation file included
    A .yml translation file is included with the plugin.

  • Custom lootbox names per language
    Through this file, the names of the lootboxes can be changed or translated to the desired language.

  • Simple language customization
    You can define custom display names for each lootbox, making it easier to adapt the mod to your server, modpack, or community language.

  • Intended for display names
    This translation file is intended to control how lootbox names are shown to players in-game.

Administration Command

  • Configuration reload
    The lootbox.reload command forces a reload of the .cfg files in BepInEx/config/LootBox.

  • Runtime reapplication
    Valid definitions are reloaded and reapplied without restarting the game or server.

  • Restricted usage
    This command is restricted to administrators.

Global Opening Effects

  • Configurable opening effects
    The mod allows switching between different global visual and sound effects for lootbox opening.

  • Global behavior
    The selected effects are applied globally to all lootboxes.

  • Visual and sound selection
    You can choose which visual effect and which sound effect will be used during box opening through the plugin configuration.

How to Use

To open a Loot Box, simply hold SHIFT and right-click the item in your inventory.
When you do this, the box will be consumed, and its rewards will be placed into your inventory.
If any reward cannot fit in the inventory, the excess will be dropped on the ground.

Installation (manual)

  • Place LootBox.dll inside your BepInEx\plugins\ folder.
Prefabs Lootboxes (click to expand)
prefab name
rd_gold_lootbox_01 Golden Box 1
rd_gold_lootbox_02 Golden Box 2
rd_gold_lootbox_03 Golden Box 3
rd_gold_lootbox_04 Golden Box 4
rd_gold_lootbox_05 Golden Box 5
rd_gold_lootbox_06 Golden Box 6
rd_gold_lootbox_07 Golden Box 7
rd_gold_lootbox_08 Golden Box 8
rd_gold_lootbox_09 Golden Box 9
rd_gold_lootbox_10 Golden Box 10
rd_silver_lootbox_01 Silver Box 1
rd_silver_lootbox_02 Silver Box 2
rd_silver_lootbox_03 Silver Box 3
rd_silver_lootbox_04 Silver Box 4
rd_silver_lootbox_05 Silver Box 5
rd_silver_lootbox_06 Silver Box 6
rd_silver_lootbox_07 Silver Box 7
rd_silver_lootbox_08 Silver Box 8
rd_silver_lootbox_09 Silver Box 9
rd_silver_lootbox_10 Silver Box 10
rd_bronze_lootbox_01 Bronze Box 1
rd_bronze_lootbox_02 Bronze Box 2
rd_bronze_lootbox_03 Bronze Box 3
rd_bronze_lootbox_04 Bronze Box 4
rd_bronze_lootbox_05 Bronze Box 5
rd_bronze_lootbox_06 Bronze Box 6
rd_bronze_lootbox_07 Bronze Box 7
rd_bronze_lootbox_08 Bronze Box 8
rd_bronze_lootbox_09 Bronze Box 9
rd_bronze_lootbox_10 Bronze Box 10
rd_pink_lootbox_01 Pink Box 1
rd_pink_lootbox_02 Pink Box 2
rd_pink_lootbox_03 Pink Box 3
rd_pink_lootbox_04 Pink Box 4
rd_pink_lootbox_05 Pink Box 5
rd_pink_lootbox_06 Pink Box 6
rd_pink_lootbox_07 Pink Box 7
rd_pink_lootbox_08 Pink Box 8
rd_pink_lootbox_09 Pink Box 9
rd_pink_lootbox_10 Pink Box 10
rd_blue_lootbox_01 Blue Box 1
rd_blue_lootbox_02 Blue Box 2
rd_blue_lootbox_03 Blue Box 3
rd_blue_lootbox_04 Blue Box 4
rd_blue_lootbox_05 Blue Box 5
rd_blue_lootbox_06 Blue Box 6
rd_blue_lootbox_07 Blue Box 7
rd_blue_lootbox_08 Blue Box 8
rd_blue_lootbox_09 Blue Box 9
rd_blue_lootbox_10 Blue Box 10
rd_red_lootbox_01 Red Box 1
rd_red_lootbox_02 Red Box 2
rd_red_lootbox_03 Red Box 3
rd_red_lootbox_04 Red Box 4
rd_red_lootbox_05 Red Box 5
rd_red_lootbox_06 Red Box 6
rd_red_lootbox_07 Red Box 7
rd_red_lootbox_08 Red Box 8
rd_red_lootbox_09 Red Box 9
rd_red_lootbox_10 Red Box 10
rd_green_lootbox_01 Green Box 1
rd_green_lootbox_02 Green Box 2
rd_green_lootbox_03 Green Box 3
rd_green_lootbox_04 Green Box 4
rd_green_lootbox_05 Green Box 5
rd_green_lootbox_06 Green Box 6
rd_green_lootbox_07 Green Box 7
rd_green_lootbox_08 Green Box 8
rd_green_lootbox_09 Green Box 9
rd_green_lootbox_10 Green Box 10
rd_dark_lootbox_01 Dark Box 1
rd_dark_lootbox_02 Dark Box 2
rd_dark_lootbox_03 Dark Box 3
rd_dark_lootbox_04 Dark Box 4
rd_dark_lootbox_05 Dark Box 5
rd_dark_lootbox_06 Dark Box 6
rd_dark_lootbox_07 Dark Box 7
rd_dark_lootbox_08 Dark Box 8
rd_dark_lootbox_09 Dark Box 9
rd_dark_lootbox_10 Dark Box 10
rd_love_lootbox_01 Love Box 1
rd_love_lootbox_02 Love Box 2
rd_love_lootbox_03 Love Box 3
rd_love_lootbox_04 Love Box 4
rd_love_lootbox_05 Love Box 5
rd_love_lootbox_06 Love Box 6
rd_love_lootbox_07 Love Box 7
rd_love_lootbox_08 Love Box 8
rd_love_lootbox_09 Love Box 9
rd_love_lootbox_10 Love Box 10
rd_red_giftbox_01 Red Gift 1
rd_red_giftbox_02 Red Gift 2
rd_red_giftbox_03 Red Gift 3
rd_red_giftbox_04 Red Gift 4
rd_red_giftbox_05 Red Gift 5
rd_red_giftbox_06 Red Gift 6
rd_red_giftbox_07 Red Gift 7
rd_red_giftbox_08 Red Gift 8
rd_red_giftbox_09 Red Gift 9
rd_red_giftbox_10 Red Gift 10
rd_green_giftbox_01 Green Gift 1
rd_green_giftbox_02 Green Gift 2
rd_green_giftbox_03 Green Gift 3
rd_green_giftbox_04 Green Gift 4
rd_green_giftbox_05 Green Gift 5
rd_green_giftbox_06 Green Gift 6
rd_green_giftbox_07 Green Gift 7
rd_green_giftbox_08 Green Gift 8
rd_green_giftbox_09 Green Gift 9
rd_green_giftbox_10 Green Gift 10
rd_award_lootbox_01 Award Box 1
rd_award_lootbox_02 Award Box 2
rd_award_lootbox_03 Award Box 3
rd_award_lootbox_04 Award Box 4
rd_award_lootbox_05 Award Box 5
rd_award_lootbox_06 Award Box 6
rd_award_lootbox_07 Award Box 7
rd_award_lootbox_08 Award Box 8
rd_award_lootbox_09 Award Box 9
rd_award_lootbox_10 Award Box 10
rd_ocean_lootbox_01 Ocean Box 1
rd_ocean_lootbox_02 Ocean Box 2
rd_ocean_lootbox_03 Ocean Box 3
rd_ocean_lootbox_04 Ocean Box 4
rd_ocean_lootbox_05 Ocean Box 5
rd_ocean_lootbox_06 Ocean Box 6
rd_ocean_lootbox_07 Ocean Box 7
rd_ocean_lootbox_08 Ocean Box 8
rd_ocean_lootbox_09 Ocean Box 9
rd_ocean_lootbox_10 Ocean Box 10
rd_ravenwood_purple_01 Ravenwood Purple Box 1
rd_ravenwood_purple_02 Ravenwood Purple Box 2
rd_ravenwood_purple_03 Ravenwood Purple Box 3
rd_ravenwood_purple_04 Ravenwood Purple Box 4
rd_ravenwood_purple_05 Ravenwood Purple Box 5
rd_ravenwood_purple_06 Ravenwood Purple Box 6
rd_ravenwood_purple_07 Ravenwood Purple Box 7
rd_ravenwood_purple_08 Ravenwood Purple Box 8
rd_ravenwood_purple_09 Ravenwood Purple Box 9
rd_ravenwood_purple_10 Ravenwood Purple Box 10
rd_ravenwood_blue_01 Ravenwood Blue Box 1
rd_ravenwood_blue_02 Ravenwood Blue Box 2
rd_ravenwood_blue_03 Ravenwood Blue Box 3
rd_ravenwood_blue_04 Ravenwood Blue Box 4
rd_ravenwood_blue_05 Ravenwood Blue Box 5
rd_ravenwood_blue_06 Ravenwood Blue Box 6
rd_ravenwood_blue_07 Ravenwood Blue Box 7
rd_ravenwood_blue_08 Ravenwood Blue Box 8
rd_ravenwood_blue_09 Ravenwood Blue Box 9
rd_ravenwood_blue_10 Ravenwood Blue Box 10
rd_ravenwood_red_01 Ravenwood Red Box 1
rd_ravenwood_red_02 Ravenwood Red Box 2
rd_ravenwood_red_03 Ravenwood Red Box 3
rd_ravenwood_red_04 Ravenwood Red Box 4
rd_ravenwood_red_05 Ravenwood Red Box 5
rd_ravenwood_red_06 Ravenwood Red Box 6
rd_ravenwood_red_07 Ravenwood Red Box 7
rd_ravenwood_red_08 Ravenwood Red Box 8
rd_ravenwood_red_09 Ravenwood Red Box 9
rd_ravenwood_red_10 Ravenwood Red Box 10
Donate with PayPal