博德之门3v12026年10月12日 更新

Modded Item Randomizer (MIR) (By SerpentineShel)

MIR — Modded Item Randomizer github.com/Shiney1965/BG3-Modded-Item-Randomizer NEW IN v1.1.1 — loot sources - A new Loot Source Settings tab. Every kind of container has its own section — chests, corpses, barrels and crates, vases / urns / jars / amphorae, wardrobes, and bookshelves — each with its own on/off switch, including a new Spawn in chests switch. - Vases, urns, jars and amphorae are their own loot source, separate from barrels and crates, and off by default. - Tick what you want. Barrel

**MIR — Modded Item Randomizer

github.com/Shiney1965/BG3-Modded-Item-Randomizer

NEW IN v1.1.1 — loot sources

**

  • A new Loot Source Settings tab. Every kind of container has its own section — chests, corpses, barrels and crates, vases / urns / jars / amphorae, wardrobes, and bookshelves — each with its own on/off switch, including a new Spawn in chests switch.
  • Vases, urns, jars and amphorae are their own loot source, separate from barrels and crates, and off by default.
  • Tick what you want. Barrels and vases each offer rings, potions, arrows, alchemy ingredients, or everything. Wardrobes offer cosmetic clothes, clothing and armour with stats, or everything. Nothing ticked means nothing — there is no hidden "anything goes" fallback.
  • Spawn chance and rolls per loot source. Tick Use its own chance and rolls on any source to give it a different rate — for example corpses at 10% while chests stay at 25%. Sources you leave unticked use the General tab's chance and rolls.
  • A chance or roll count of 0 no longer finishes containers for good. Anything passed over at 0 rolls once you raise it.
  • Upgrading from v1.0.1? Vases start switched off, and wardrobes with all three boxes unticked now give nothing. Your other settings carry over. The CHANGELOG lists every change that affects an existing save.

**

Takes all of your modded equipment and seeds it into the world's loot, according to your specifications. This mod gives you clear, detailed controls in MCM over where modded items are placed — in treasure chests, on corpses, in wardrobes, in bookshelves, in barrels and in vases, each chosen separately — at a rate you control. Wardrobes give you clothing, bookshelves give you scrolls, barrels give you potions and arrows, and you can have the mod give you more kinds of item in each container if you want. The mod is strictly additive: it never removes, replaces, moves or reprices anything.

MIR hooks the moment loot appears: open a chest, a wardrobe or a bookshelf, or loot a corpse, for the first time, and MIR rolls. On a hit, one item from your modded pool is waiting in the loot panel on that first open. The game's own loot is untouched.

Why another random equipment mod? I have used other equipment randomization mods and wanted one more suited to my personal preference. Your preferences may vary, so  this mod is not necessarily better than others — only different.

The major difference: this mod is strictly for adding modded items to the game through gameplay, according to your preferences.

No sidecar to run. MIR applies itself at runtime; a single pak file is all that is needed. It auto-indexes all your modded items and adds them as you loot.

Designed for fine-tuning, transparency and ease of use. You can exclude specific items and mods, and every control in MCM is detailed and, I hope, easy to understand. (If not, let me know.)**

**

How to use — please read

MIR REQUIRES MOD CONFIGURATION MENU (MCM). IF MCM IS NOT IN YOUR LOAD ORDER, MIR DISABLES ITSELF AND ADDS NOTHING TO THE GAME. It tells you so with a small in-game window and in its log. Load MCM above MIR.

**

  • Leave the defaults for a session and just play. One roll at 25% averages one spawn per four containers MIR actually rolls on — and a good share of what you open (barrels and vases while they are off, owned containers, carried bags, camp chests) is never rolled at all. You are not meant to notice a firehose.
  • Open MCM (INSERT, or from the ESC menu) and find MIR: five tabs — General, Loot Source Settings, Pool, Rarity, Exclusion lists — plus the custom MIR Browser tab, where you tune category shares and exclude mods or items.
  • Every category row on the MIR Browser shows ON, LIMITED or OFF and says why. Weight 0 is the only way to switch a category off there; a category that can only appear in one loot source is switched off on that source's settings.
  • Want barrels, crates or vases too? On the Loot Source Settings tab, tick Spawn in barrels, crates and other clutter or Spawn in vases, urns, jars and amphorae. Each gives only what you tick — rings, potions, arrows, alchemy ingredients or everything — and the consumable boxes admit the game's own potions, arrows and ingredients there on their own, and only there.
  • Want a different rate for one kind of container? Every loot source has Use its own chance and rolls. Tick it and that source's own two sliders appear.

**

Features

**

  • Modded loot where you actually find loot — treasure chests, strongboxes, coffers, sarcophagi and the like, and every corpse you loot for the first time. Pre-placed bodies count; no combat required.
  • Wardrobes give clothing. Their own loot source, on by default, filled with cosmetic clothes and stat-bearing armour rather than greatswords — or everything, if you tick that. With nothing ticked a wardrobe gives nothing. Your camp wardrobe is never touched.
  • Bookshelves give scrolls. Bookcases, book rows, stacks and piles, scroll shelves and desks are their own type, on by default, holding scrolls — vanilla and modded — with an option to add everything else.
  • Barrels and crates give what you tick. Off by default. Barrels, crates and every other container that is not a chest, vase, wardrobe or bookshelf can give rings, potions, arrows, alchemy ingredients, or everything. The consumable boxes admit vanilla and modded consumables there, and those items never leak into chests.
  • Vases, urns, jars and amphorae are their own loot source, off by default, with the same boxes. One detail worth knowing: a vase you walked past while vases were switched off is not lost. MIR stamps it as "skipped because vases were off", which is a retryable mark, so it becomes eligible the first time you open it after turning vases on. The same goes for barrels.
  • A two-stage roll you can tune. How often (chance and rolls, set once or per loot source) is separate from what (a 0–100 slider per category). The MIR Browser shows each category's live percentage per container type.
  • Equipment never drops twice in the same save — a per-save ledger takes it out of the pool for good. Consumables (potions, arrows, ingredients, scrolls) are exempt and can repeat.
  • Exclusion browser. Every mod contributing items, sorted by count; drill into a mod and tick out a whole mod or a single item. Applies immediately, persists per MCM profile.
  • Items a mod already places in the world stay out of the pool by default, so MIR never hands you a duplicate of an authored drop. You can let individual items back in.
  • Known utility mods are fenced out by default — photo-mode rings, cheat spawners, framework libraries.
  • NPC and companion gear is PERMANENTLY excluded — there is no toggle. Starting-gear upgrades, NPC redesigns and evolutions, companion looks mods, join-the-party companion mods. That gear belongs to its character; finding Astarion's bespoke coat in a goblin's footlocker before you meet him is not a feature. Ask and more mods can be added to the list.
  • An optional rarity window limits which rarities can spawn by your character level and by Act.
  • Nothing is written into your save by MIR's settings. They live in MCM's per-profile store. Safe to install or remove mid-playthrough.

**

Requirements

**

  • Baldur's Gate 3 — developed and tested on Patch 8.
  • BG3 Script Extender (version 29+). Required — MIR is entirely Script Extender Lua.
  • Mod Configuration Menu (BG3MCM) — a hard requirement, enforced at runtime. Developed and tested against v1.40.1. Load it above MIR. If MCM is not in your load order, MIR builds no pool, rolls on nothing and injects nothing, and says so in game and in its log (!mir_status reads mcm=MISSING - MIR DORMANT).
  • A mod manager (BG3 Mod Manager recommended) — MIR must be active in your load order.
  • Windows only (Script Extender is Windows-only). MCM's configuration window is driven with mouse and keyboard.

**

Install / uninstall

**

  • Drop MIR.pak into %LocalAppData%\Larian Studios\Baldur's Gate 3\Mods, activate it in BG3MM, put Mod Configuration Menu above MIR, save the load order, launch.
  • Verify: the Script Extender console prints a MIR v1.1.1 ... loaded banner; type server then !mir_status and look for catalogBuilt=true and mcm=detected.
  • Uninstall: deactivate and delete the pak. Safe mid-save — MIR only ever added things; already-spawned items are ordinary items from mods you still have, and they simply stay where they are.
  • Mid-playthrough install is fine. MIR only sees containers and corpses you interact with after installing. A chest you emptied last week is unrolled as far as MIR is concerned, so it rolls the next time you open it.

**Full instructions, a settings reference and a console reference are in the README and INSTALL files in the download (Markdown, Word and PDF).

**


**

Configuration — five MCM tabs, plus the MIR Browser

**

  • General — master switch, the spawn chance and rolls every loot source uses unless it has its own, the Nautiloid exclusion, the item-received notification.
  • Loot Source Settings — one section each for chests, corpses, barrels and crates, vases/urns/jars/amphorae, wardrobes and bookshelves: the source's on/off switch, what it may give (barrels and vases: rings / potions / arrows / alchemy ingredients / everything; wardrobes: cosmetic clothes / clothing and armour with stats / everything; bookshelves: scrolls / also all other items), and Use its own chance and rolls, which reveals that source's own two sliders. Nothing ticked means nothing — there is no unrestricted fallback.
  • Pool — include base-game items, cosmetics, modded consumables, base-game consumables, scrolls (one switch for vanilla and modded together; bookshelves, and barrels or vases on everything, get scrolls regardless); the utility fence; the already-placed-in-the-world filter.
  • Rarity — optional, off by default. Limit which rarities can spawn by character level (bands 1–5, 6–10, 11–15, 16–20+) and by Act, choosing a lowest and highest rarity for each; the MOST RESTRICTIVE of the two rules applies. Alchemy ingredients ignore the window (the game gives them no rarity, so they would all vanish under one).
  • Exclusion lists — read-only views of MIR's curated utility and NPC-gear fences filtered to your load order, plus your own per-mod, per-item and allowed-in-anyway lists by UUID.
  • MIR Browser (custom tab) — the only place category shares are edited: 16 categories (weapons, shields, body armour, helmets, gloves, boots, cloaks, rings, amulets, camp clothing, camp shoes, underwear, potions and elixirs, arrows, alchemy ingredients, scrolls), each with a derived ON / LIMITED / OFF status, a live percentage per container type, and a 0–100 weight slider. Plus the searchable, paged exclusion browser.

**Every change applies live — no restart, no reload. Settings persist per MCM profile, globally across saves — never inside a savegame.

**


**

Compatibility

Compatible: equipment/armour/clothing mods of every kind (they are the raw material), mods that alter vendor stock (MIR doesn't touch traders), mods that add containers or corpses.

Also expected to coexist, on code-level analysis rather than a joint playtest: Container Loot Control (Volitio) and Randomized Item Framework (GraphicFade). Do not combine Randomized Item Framework with MIR's "Include base-game items" — that puts both mods on the same items.

NOT compatible — do not run these alongside MIR:

**

  • Randomized Equipment Loot and its family, Fade's Equipment Distribution AIO's randomizer feature, and any other mod that randomizes or re-places loot by rewriting loot data. Two of these together give compounded spawn rates at best and contradictory loot tables at worst. Pick one.

**

Caveats:

**

  • Auto-loot / loot-vacuum mods may bypass MIR. MIR rolls on the engine events fired when a player opens a container or first loots a corpse; a mod that empties containers at a distance may not fire them. First thing to check if you never see spawns.
  • Remote container access (remote camp-chest commands and the like) bypasses MIR entirely. By design.
  • Quest mods: items placed on a specific NPC or in a specific world container are kept out by default and StoryItem/IsKey templates are always excluded, but items a quest mod spawns from its own script can't be detected — exclude such a mod by hand if you want certainty.
  • Multiplayer: every player needs MIR, Script Extender and MCM on the same versions as the host (the game compares mod lists when a player joins, and it cannot download a Nexus mod for you). MIR is server-authoritative: its loot logic runs only on the host, so each container is rolled once and every player sees the same items, and the host manages the settings. Non-host settings changes are refused. Not yet tested in a live multiplayer session; reports welcome.

**

Known limitations

**

  • MCM is mandatory. There is no defaults-only mode. The in-game notice is a Script Extender window, so where Script Extender's UI layer is broken the only notice is the banner in MIR_log.txt.
  • Base-game duplicates are expected if you turn "Include base-game items" on — the game places vanilla items by hand, on level data MIR cannot see, so MIR cannot know one is already waiting for you. That is why the setting defaults to off. Modded items are different: MIR can see when a mod places its own item and keeps those out by default; !mir_placed_mods names the mods that place their own items.
  • The placement filter removes a large share of a cosmetics-heavy pool — almost all clothing mods that ship their whole catalogue in a backpack, which is the filter working as intended. !mir_tables and !mir_placed_mods show your own numbers; switch it off if it takes out more than you want.
  • Late-game rate decline — equipment never repeats, so categories empty as a playthrough goes on. Add more mods or raise the base chance.
  • Reloading re-rolls. No deterministic seed: reload a save from before a container was opened and it rolls again.
  • Container classification is by name. Shields are detected by the offhand slot (a mod's offhand weapon can be labelled a shield); apothecary and tailor desks count as desks; one wine rack is shaped like a scroll shelf. Modded scroll detection is a heuristic.
  • MCM quirks: the read-only exclusion views still render clickable checkboxes (clicking does nothing), and MCM's list widgets may need a tab reopen to show exclusions written from the browser.

**Source code

MIR is open source. Full source (Script Extender Lua, the MCM blueprint, build scripts, docs) is on GitHub:

github.com/Shiney1965/BG3-Modded-Item-Randomizer

**


**

Console commands

Script Extender console, type server first: !mir_status !mir_pool !mir_share !mir_exclude !mir_include !mir_excludes !mir_forceinclude !mir_rarity !mir_chests !mir_clutter !mir_vases !mir_wardrobes !mir_bookshelves !mir_scrolls !mir_consumables !mir_util !mir_placed !mir_enable !mir_chance !mir_rolls !mir_dry !mir_mods !mir_placed_mods !mir_tables !mir_ledger !mir_rebuild !mir_mcm_sync !mir_flush. Full table in the README. Most console changes are session-only and are replaced by the MCM values on any full re-sync — but !mir_share, !mir_exclude, !mir_include and !mir_forceinclude write through MCM and persist.

**


**

Credits

**

  • Author: Serpentine (SerpentineShel)
  • BG3 Script Extender: Norbyte — MIR is built entirely on it
  • Mod Configuration Menu: AtilioA and contributors — the whole configuration surface
  • Larian Studios — for the loot system MIR politely leans on
  • Thanks to the BG3 modding community, and to the authors of the equipment mods that make MIR worth running

**

AI use disclosure

MIR was developed with substantial assistance from an AI coding assistant (Claude, by Anthropic) for code, research and documentation. It contains no AI-generated art, images, audio, or other media — only code and text. All design decisions, testing and the final release were done by the author.

License

MIT — the full text ships with the download as LICENSE. MIR bundles no third-party files; see LICENSE-THIRD-PARTY.md in the download. Reuse the code freely in your own mods; just keep the copyright notice with it.

Reporting issues

Comment on this page or open an issue on GitHub, with your BG3, Script Extender and MCM versions, the relevant part of MIR_log.txt (in your Script Extender folder), and the output of !mir_status and !mir_pool.

TODO: mod page ID / permalink — fill in after the page is created.MIR — Modded Item Randomizer**

来源与文件

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:baldursgate3:24831 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载