Vintage Story Mod DB · Vintage Story mod
ItemStats, Setbonus, Items Create Inventory - Barebones Framework
What it is [[Designed for as a barebones framework for modders to flesh out!]] Item Traits is a code + assets mod for Vintage Story 1.22+ whose real job is to be a modder’s starter kit in disguise: a small, complete, runnable example of three patterns
Quick answer
Which ItemStats, Setbonus, Items Create Inventory - Barebones Framework release should I use?
ItemStats, Setbonus, Items Create Inventory - Barebones Framework 0.1.0 targets 1.22.0. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is ItemStats, Setbonus, Items Create Inventory - Barebones Framework required on the client, server, or both?
It must be installed on the client. Installation on the dedicated server is optional.
This release supports both sides, but the source does not require it on the server.
What else does ItemStats, Setbonus, Items Create Inventory - Barebones Framework 0.1.0 need?
0.1.0. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add ItemStats, Setbonus, Items Create Inventory - Barebones Framework without breaking your instance.
Built for ItemStats, Setbonus, Items Create Inventory - Barebones Framework 0.1.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.1.0. It targets 1.22.0; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
It must be installed on the client. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.1.0. It opens that exact file at the source.
About this project
What does ItemStats, Setbonus, Items Create Inventory - Barebones Framework add?
What it is
[[Designed for as a barebones framework for modders to flesh out!]]
Item Traits is a code + assets mod for Vintage Story 1.22+ whose real job is to be a modder’s starter kit in disguise: a small, complete, runnable example of three patterns people building content mods want over and over—
- Item → stat — Wire wearables (or, with the same idea, any item) to real Entity.Stats / health math on the server, on named layers, in a way other mods can coexist with.
- Item → extra inventory — Show how to hang a persistent, player-scoped inventory (here: 3 slots “on” a waist item) off WatchedAttributes, how to use an InventoryBasePlayer, how to open/close/sync with the engine, and how to put a slot grid in a GuiDialog. Access your inventory with (Ctrl + Shift + B)
- Item set → set bonus — Show how to scan a loadout each tick, combine conditions (e.g. four clothing pieces + sword in hand), and apply a global pay-off—here Survival FreeMove (flight), not a fake client buff.
The Dragoon set, the sword, the self bleed, the belt lock, the panel, the hotkey are not “the end product” in the business sense; they are the reference implementation—working game content you can play today and gut, rename, and replace tomorrow. The mod is designed for modders to flesh out on their own: add your own items, your own stat numbers, your own 5-slot pack on a quiver, your own “full set = night vision + speed” or whatever, using this repo as the map, not a locked theme park.
Framework honesty: It is not a full generic “attribute engine for every block in the game” productized in one mod—that would be a different (and much larger) mod. It is a barebones framework in the sense the Kill Streak example uses: a tight, readable, server-first set of hooks and files you can read top-to-bottom and copy the shape of.
Where the truth lives (for your fork): Server ItemTraitsServerSystem = stats, set logic, set bonus, belt persistence, bleed. Client ItemTraitsClientGuiSystem = UI + client inventory mirror + hotkey. Data in ItemTraitsConstants + DragoonBeltInventory + patches/recipes. Reality for multiplayer: same as any code mod—everyone loads the mod; your forked item codes and set rules stay server-authoritative if you follow the same split.
What it is not: A locked “only Dragoon forever” product; a second universe simulator; a client-only fake stat mod; or a promise to maintain balance for your new items—that’s your job when you flesh it out.
What it is: You modify the item stats, set bonuses, and inventory allotments you want. This is just the framework for you to manipulate creatively.
The vision is modder-utility with a live demo, not a single static fantasy.
- To modders: “Here is all three recipes—stats, item-bound inventory, set bonus—in one repo, playing in Survival, with angry, readable code. Take the patterns; paint over the Dragoon names.”
- The shipped Dragoon content = proof of concept + playable test harness: if it feels good in a real world, your variant will probably not fight the engine as badly as if you started from zero.
- Intent behind “Dragoon” specifically: A themenail (blackguard look, cursed blade, “earn the sky”) that makes the set bonus emotionally obvious in a screenshot—you can swap the flavor to “void monks,” “dwarven forge,” or “scifi jetpack set” and keep the same three pillars.
In one sentence: The vision = a modder-facing toolkit, demonstrated end-to-end through one fleshed-out set, not “a lore DLC” first.
Modders
|
Piece |
What it teaches you to flesh out |
|
ItemTraitsConstants.cs |
Centralize item codes, WatchedAttributes tree keys, StatLayer names, belt inv class name and slot count, numeric policy, sword tick damage if you keep a “cost” hook. Replace wholesale for your set. |
|
ItemTraitsServerSystem.cs |
Server tick: read character, apply/remove per-piece stat layers, set WatchedAttributes for UI, save belt from DragoonBeltInventory to entity, set bonus branch (e.g. FreeMove), optional damage (bleed) as a second “example hook.” This is the spine for “when all these codes are worn/held, do X.” |
|
DragoonBeltInventory.cs |
Minimal InventoryBasePlayer + From/ToTreeAttributes + HasAnyItems for gating. Template for “N slots on an item.” |
|
ItemTraitsClientGuiSystem.cs |
Client-only: Create/cache the client inv, sync from WatchedAttributes tree, OpenInventory + packet, GuiDialog, RegisterHotKey with correct (alt, ctrl, shift) order, E-screen detection. Template for “panel + hotkey for my item inventory.” |
|
GuiDialogDragoonBelt.cs |
Richtext + AddItemSlotGrid. Template for “honest text + slots beside vanilla.” |
|
EntityHealthBonus.cs |
Isolated +max HP that can be cleared by key; template for “one stat the generic stat layer list doesn’t cover the way you want.” |
|
assets/ (patches, recipes, lang) |
How to add your item variants, crafts, and strings. Swap domain itemtraits to yours if you fork as a new mod. |
How to “flesh out on your own” in practice: Fork or duplicate, change codes in constants, add new InventoryBase classes if you want two different “pocket” items, duplicate or generalize the set scan in ItemTraitsServerSystem into EvaluateMySetRule() and call it from the same tick, and re-skin assets. The Dragoon content is the wiring diagram; your content is the ink.
Composability: Named stat layers and unique tree keys; document your fork’s keys for other mod authors.
Flavor
License / use
Free to use, copy, modify, and redistribute this mod and derived works for any purpose (including commercial packs), provided you credit the original author (Squidbat) in your readme, ModDB page, or in-repo credits so others can find the upstream author for questions, debugging, or merge requests. Provide link to my profile. Same caveat as above regarding formal licenses if you need one.
(((One known bug!! When you have your Dragoon Belt on and its inventory open, you put something in the inventory, try to take off the Dragoon Belt (it wont come off), it will spawn a second Dragoon belt on your cursor sometimes.)))
Github Link: https://github.com/19HarryHaller27/-Item-Stats-Setbonus-Items-Create-Inventory
Project description from Vintage Story Mod DB.
Pick your setup
ItemStats, Setbonus, Items Create Inventory - Barebones Framework releases for each Vintage Story version.
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
ItemStats, Setbonus, Items Create Inventory - Barebones Framework versions and loaders
0.1.0
ItemTraits.zip
25 Apr 2026
Looking for an older file? The official Vintage Story Mod DB project page is in Resources.