Mods / Item Rarity

Category: #Crafting #Tweak #Utility
Author: Unreal
Side: Both
Created: Dec 22nd 2024 at 11:21 PM
Last modified: Dec 25th 2024 at 1:47 PM
Downloads: 651
Follow Unfollow 33

Latest file for v1.20.0-rc.6:
itemrarity_1.0.2.zip 1-click install


Item Rarity Mod

This mod introduces an exciting rarity mechanic to items, adding a dynamic twist to the crafting and looting experience. Rarity levels influences key item stats, such as durability, damage, and more. Currently, rarities are applied exclusively to tools when they are crafted or dropped.

Features

Stat Modifications

Rarities affect the default stats of tools, enhancing or altering their performance.

Supported Stats:

  • Durability: All tools benefit from durability adjustments.
  • Mining Speed: Applies to tools capable of mining.
  • Attack Power: Influences the strength of all tools in combat.
  • Piercing Power: Impacts tools that deal piercing damage.

Magical Effects

Bring a touch of magic to your world! Rarity levels can grant special effects to tools, with the first effect now available:

  • Thor: A powerful effect for tools that deal piercing damage. Strikes targets with lightning and sets them ablaze on impact.

Commands

There a several commands available. (For now you have to be an operator to be able to use thoses commands)

  • /rarity set <rarity> : Applies the specified rarity to the item currently held.
  • /rarity reload : Reloads the configuration without needing to restart the game or server, ideal for testing new settings.
  • /rarity test <times> : Perform a test that will generate X rarities based on the times provided. Ideal to test configured rarities. It will also display their relative chance.

Planned Features

  • Support for shields.
  • Support for armor.
  • Introduction of additional effects.
  • Enhanced configuration options to limit rarity application to specific items.

Configuration

Rarity levels can be customized to suit your preferences. Each rarity level has several configurable properties, allowing you to fine-tune its effects and influence on the game. Below is an example of how to configure a rarity:

Example Configuration

"unique": {
  "Name": "Unique",
  "Color": "#EC290E",
  "Rarity": 2.0,
  "DurabilityMultiplier": 2.0,
  "MiningSpeedMultiplier": 1.9,
  "AttackPowerMultiplier": 1.9,
  "PiercingPowerMultiplier": 1.9,
  "Effects": ["Thor"],
  "SupportedItems": ["*"]
}
 

Explanation of Fields

  • Name: The name of the rarity (e.g., "Unique"). This will be displayed in-game (might be overrided by land files).
  • Color: Hexadecimal color code used to represent the rarity.
  • Rarity: The weight or chance of this rarity being applied. Lower values make the rarity rarer.
  • DurabilityMultiplier: Multiplier for the tool's durability.
  • MiningSpeedMultiplier: Multiplier for the tool's mining speed.
  • AttackPowerMultiplier: Multiplier for the tool's attack power.
  • PiercingPowerMultiplier: Multiplier for the tool's piercing power.
  • Effects: A list of special effects applied to tools of this rarity. Example: "Thor".
  • SupportedItems: NOT YET SUPPORTED Specifies which items this rarity can be applied to. Use "*" to apply to all tools or list specific tools (e.g., ["pickaxe", "axe"]).

Adding New Rarities

To add a new rarity, simply follow the same format.

"mynewrarity": {
  "Name": "My Awesome Rarity",
  "Color": "#4A90E2",
  "Rarity": 5.0,
  "DurabilityMultiplier": 1.5,
  "MiningSpeedMultiplier": 1.4,
  "AttackPowerMultiplier": 1.4,
  "PiercingPowerMultiplier": 1.4,
  "Effects": [],
  "SupportedItems": ["*"]
}

This allows full control over how each rarity impacts gameplay, ensuring a tailored experience for your world.


Inspiration

This mod is inspired by the RPG Item Rarity mod.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.0.2 513 Dec 25th 2024 at 1:47 PM Show itemrarity_1.0.2.zip Install now
v1.0.1 58 Dec 25th 2024 at 2:17 AM Show itemrarity_1.0.1.zip Install now
v1.0.0 80 Dec 24th 2024 at 6:19 PM Show itemrarity_1.0.0.zip Install now

18 Comments (oldest first | newest first)

💬 IchigoKursaki, 1 day ago

How would this work? This craftable thing? The more you craft of the tools/weapon the better your % in the get the better gear/tools

Unreal

💬 Chimney, 1 day ago

Unreal Okay, I figured it must be something like that, but I was kind of hoping it wasn't since it would mean I had to fix several items. Oh well, thank you for your response! I am willing to wait for that feature if it means getting armor support, that would be awesome.

💬 UnrealAuthor, 1 day ago

Chimney Yes, this happens because you are still using the default rarity keys (e.g., "common": { Name: "Your rarity name" }). The default rarities are translated, and the mod looks for those keys in the language files. If you want your rarities to have custom names, you'll need to change the rarity keys themselves. However, keep in mind that changing these keys will cause some items to have invalid rarity settings. I’m working on adding a feature to make it easier to modify rarity names and keys. This update is taking a bit of time because I’m also adding support for armor.

💬 Chimney, 1 day ago

I changed the names for all the rarities under the "Name" section, but they still appear as their default names on items (common, uncommon, etc.). The rarity value and the multipliers are all correct. However, strangely, it prints the altered names correctly whenever I'm using config commands like testing the rarity generation.

💬 UnrealAuthor, Dec 29th 2024 at 1:12 PM

Chimney The config file is located at <your vintage story data directory>/ModConfig/itemrarity.json. (By Default it is %appdata%/VintageStoryData)

💬 Chimney, Dec 29th 2024 at 11:27 AM

I see your explanation on how to format custom rarities, but I don't see any config files to edit in order to implement them. Is there something I'm missing?

💬 UnrealAuthor, Dec 26th 2024 at 7:21 PM

Ruyeex You already can set your desired rarity with the /rarity set . You can also generate a test of rarities with /rarity test . I will update the mod description to include commands.
Being able to refresh a rarity could be done but i will make it disabled by default. 

💬 Ruyeex, Dec 26th 2024 at 3:39 PM

Will you include a way to get the rarities you want through commands and a way to refresh your rarity?

💬 Bobosaw, Dec 25th 2024 at 5:09 PM

Unreal

Thanks man!

💬 UnrealAuthor, Dec 25th 2024 at 1:50 PM

Blazha Bobosaw This issue has been resolved in version v1.0.2. Thanks for reporting !

💬 Blazha, Dec 25th 2024 at 10:19 AM

Bobosaw same here. Can't break flint bits, branches and leafs with knife or shovel

💬 Blazha, Dec 25th 2024 at 10:18 AM
💬 Bobosaw, Dec 25th 2024 at 4:32 AM

For some reason when I try to use a tool, like a shovel, to break things like grass, it does not break at all and I must switch to another tool

💬 BraniyaKz, Dec 25th 2024 at 2:40 AM

Guys, for 1.19.8 just use RPG Item Rarity - Reborn with its prerequisite Attributer - Reborn.

💬 warpStory, Dec 25th 2024 at 2:20 AM

Amazing! Totally wanted something like this. Is it compatible with 1.19.8?

💬 UA_Shaman, Dec 24th 2024 at 7:36 PM

Super, cool, divine...a gift for the holidays?
Thanks to the author! Respect! 🤩

💬 BraniyaKz, Dec 24th 2024 at 6:51 PM

Wonderful! 😊

💬 SteAStro88, Dec 24th 2024 at 6:26 PM

Is it compatible with version 1.19.8?

(edit comment delete)