ModularRarity
Dynamic gun rarity — a ModularShoot × RarityCore integration mod (1.21.1 / NeoForge)
ModularRarity bridges ModularShoot's plugin system with RarityCore: when a plugin is installed on a gun, the gun's rarity changes in real time with the plugin's bonus.
How It Works
Gun base rarity and plugin rarity bonuses are both declared via the
modularrarity:raritykey inextra_values.On plugin install/uninstall, the sum of
modularrarity:rarityacross the gun and its plugins is computed, and the rarity-control component is written or removed accordingly.
Requirements
- ModularShoot ≥ 0.1.3
- RarityCore ≥ 1211.14.5
For Developers
Declaring extra_values in a ModularShoot datapack definition is all it takes — no code needed:
{
"name": "lang:example.gun",
"texture": "modularshoot:textures/gun/example.png",
"stats": { ... },
"slots": { ... },
"extra_values": { "modularrarity:rarity": 3 }
}
Not declared = 0
FAQ
Q1: No example items?
A1: They're in ModularShoot — go grab them.
Q2: Do body-snatched vanilla items bound to guns or plugins benefit?
A2: Yes.
License
MIT

