
Vintage Story Mod DB · Vintage Story mod
Attributer
A multi-class patch that makes lets you set attributes per item dynamically. Basically wherever the code says "get parent object attribute" it instead "get object attribute if exists first". Also adds a few new attributes that can be applied to items to modi
Quick answer
Which Attributer release should I use?
Attributer 1.0.5 targets 1.18.0-pre.0, 1.18.0-rc.1, 1.18.0-rc.2. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Attributer required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
No client/server declaration is available from this source.
What else does Attributer 1.0.5 need?
1.0.5. 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 Attributer without breaking your instance.
Built for Attributer 1.0.5. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0.5. It targets 1.18.0-pre.0, 1.18.0-rc.1, 1.18.0-rc.2; 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
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0.5. It opens that exact file at the source.
About this project
What does Attributer add?
A multi-class patch that makes lets you set attributes per item dynamically.
Basically wherever the code says "get parent object attribute" it instead "get object attribute if exists first".
Also adds a few new attributes that can be applied to items to modify their functionality.
Requirements:
- None.
Incompatibilities:
- Other mods which significantly overwrite base item types.
Mods requiring this:
New Attributes:
- maxdurability.
Supported Attributes:
- defaultProtLoss
- protectionModifiers
- protectionTier
- highDamageTierResistant
- flatDamageReduction
- relativeProtection
- statModifiers
- healingeffectiveness
- hungerrate
- rangedWeaponsAcc
- rangedWeaponsSpeed
- walkSpeed
- damage
- attackpower
- attackrange
- miningspeed
- miningtier
- health
- clothescategory
- breakChanceOnImpact
- requiresAnvilTier
- workableTemperature
- Please note, some attributes are enabled by the api by default and do not need this mod.
- Search the official API and official survival mod github repositorys to check.
Attribute Exceptions:
- perTierFlatDamageReductionLoss
- perTierRelativeProtectionLoss
These aren't mirrored as other attributes are, as arrays aren't supported by the API.
Instead, they should be TreeAttributes, with the float values of "0" and "1" placed into them.
This is a workaround until the API updates.
How to use (For developers):
- Set an attribute on an item.
- Example (Set an items attack power):
- itemstack.Attributes.SetFloat("attackpower", 12f);
- itemstack.Attributes.SetFloat("attackpower", 12f);
- Example (Set an items flat damage reduction):
- itemstack.Attributes.GetTreeAttribute("protectionModifiers").SetFloat("flatDamageReduction", 8f);
- itemstack.Attributes.GetTreeAttribute("protectionModifiers").SetFloat("flatDamageReduction", 8f);
- Example (Set an items attack power):
- That's it. It should work if the attribute is supported.
How to use (Standalone):
- Use an command that supports or sets attributes.
- Example (Set the weapon in your hand's attack power.):
- /debug heldstattr attackpower float 1000000
- /debug heldstattr attackpower float 1000000
- Example (Set the weapon in your hand's attack power.):
- That should do it.
Please note you must mirror attributes exactly, including trees, to how the parent item is.
Project description from Vintage Story Mod DB.
Pick your setup
Attributer releases for each Vintage Story version.
Choose the version and loader you play, then open the matching release.
1.18.7
1 loader build1.18.6-rc.2
1 loader build1.18.6-rc.1
1 loader build1.18.6
1 loader build1.18.5
1 loader build1.18.4
1 loader build1.18.3
1 loader build1.18.2-rc.4
1 loader build1.18.2-rc.3
1 loader build1.18.2-rc.2
1 loader build1.18.2-rc.1
1 loader buildShowing the newest 12 of 29 game versions. Older files are in the list below.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Attributer versions and loaders
1.0.5
attributer-1.0.5.zip
1 Aug 2023
1.0.4
attributer-1.0.4.zip
10 Jul 2023
1.0.3
attributer-1.0.3.zip
24 Sept 2022
1.0.2
attributer-1.0.2.zip
23 Sept 2022
1.0.1
attributer-1.0.1.zip
22 Sept 2022
1.0.0
attributer-1.0.0.zip
22 Sept 2022
Looking for an older file? The official Vintage Story Mod DB project page is in Resources.