All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Attributification [Attribute Unification]

Attributification [Attribute Unification]

by UtherHel • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Key Features

  • In-Game Configuration GUI – Edit mappings directly in-game with automatic GUI generation
  • Static & Dynamic Mappings – Static mappings use registry aliasing for simple 1:1 conversions (requires restart), dynamic mappings use runtime conversion with full scaling support (reloadable)
  • Attribute Conversion – Converts source attribute modifiers to target attributes using configurable ratios
  • Unidirectional Mode – Control whether source shows virtual values or redirects directly to target
  • Operation Conversion – Transform ADDITION modifiers to MULTIPLY_BASE/MULTIPLY_TOTAL for proper scaling
  • Fallback Support – Maps to secondary attributes if a primary target mod is missing
  • Full Replacement Mode – Completely replaces specific attributes to prevent "double-dipping" balance issues
  • Real-Time Reload – Dynamic mapping changes apply immediately with relog (no full restart needed)
  • Client-Server Sync – Server config automatically syncs to all connected clients

How It Works

Unlike effects which use boolean checks, attributes store numeric values. Attributification handles this by:

  1. Modifier Conversion: Item modifiers are converted from source to target at application time
  2. Virtual Display: /attribute get commands show virtual values calculated from the target (when unidirectional=false)
  3. Attribute Redirection: Source attribute lookups redirect to target attribute
  4. Operation Transformation: ADDITION modifiers can be converted to MULTIPLY_BASE for percentage-based scaling

Unidirectional Mode

Unidirectional = false (default):

  • Source shows virtual value: source = target × equivalence
  • /attribute get source returns calculated value from target
  • Use for most cases where you want visual consistency

Unidirectional = true:

  • Source does NOT show virtual value
  • Direct redirection without multiplication
  • Use when you want source to show target value directly

Supported Mods (Out-of-the-box)

Note: Pre-configured mappings are included only in the Forge version. Fabric users start with an empty config because most target mods in the default mappings are not available on Fabric. You can add your own mappings for Fabric-compatible mods via the in-game GUI or config file.

Configuration

In-Game GUI

Access the configuration GUI through:

  • Fabric: Mod Menu → Attributification → Config button
  • Forge: Mods list → Attributification → Config button

The GUI provides:

  • Visual Editor – Edit all mappings with a user-friendly interface
  • Attribute Suggestions – Dropdown lists of all registered attributes
  • Real-Time Preview – See changes immediately without restarting
  • Field Tooltips – Hover over fields for detailed explanations
  • List Summaries – Quick overview of each mapping in the list

Configuration File

Config location: config/attributification/attributification.toml

The configuration system supports:

  • Static Mappings – Registry aliasing at startup (requires restart, simple 1:1 only)
  • Dynamic Mappings – Runtime attribute conversion (reloadable with relog, supports scaling)
  • Equivalence Ratios – Define exact scaling between different attribute values
  • Operation Conversion – Switch logic between ADDITION and MULTIPLY_BASE/MULTIPLY_TOTAL
  • Unidirectional Mode – Control whether source shows virtual values or redirects directly
  • Full Replacement – Freeze source attribute to prevent double-dipping
  • Fallback Chains – Define multiple target attributes: "primary, fallback1, fallback2"
  • Custom Mappings – Add support for any mod utilizing the standard Minecraft attribute system
  • Automatic Migration – Old configs are automatically converted to the latest format

Migration from Older Versions

When upgrading:

  1. Your old config is automatically converted to the latest format
  2. All your custom mappings are preserved
  3. Old config is backed up with .old extension
  4. No manual action required!
Example 1: Static Mapping (Registry Aliasing)
[[staticMappings]]
sourceAttribute = "spell_power:haste"
targetAttribute = "irons_spellbooks:cast_time_reduction"

What happens:

  • Registry-level aliasing: spell_power:haste becomes an alias for irons_spellbooks:cast_time_reduction
  • Simple 1:1 mapping without conversion options
  • Requires game restart to apply changes
  • Use only when attributes have identical scales (1:1 ratio)
  • For attributes with different scales (e.g., 100:1), use dynamic mappings instead
Example 2: Dynamic Mapping with Operation Conversion
[[dynamicMappings]]
sourceAttribute = "spell_power:earth"
targetAttribute = "gtbcs_geomancy_plus:geo_spell_power, irons_spellbooks:nature_spell_power"
equivalence = 3.0
conversionEquivalence = 20.0
unidirectional = false

fullReplacement = false
subtractValue = 0.0
operationConversion = "ADDITION_TO_MULTIPLY_BASE"

What happens:

  • Item with +6 spell_power:earth ADDITION → converted to +0.3 geo_spell_power MULTIPLY_BASE (30% increase)
  • /attribute get spell_power:earth shows virtual value: geo_spell_power × 3.0
  • If GTBC's Geomancy Plus is not installed, falls back to irons_spellbooks:nature_spell_power
  • Unidirectional=false: source shows virtual value calculated from target
  • Changes apply with relog (no restart needed)
Example 3: Full Replacement to Prevent Double-Dipping
[[dynamicMappings]]
sourceAttribute = "obscure_api:critical_hit"
targetAttribute = "attributeslib:crit_chance"
equivalence = 1.0
conversionEquivalence = 0.0
unidirectional = false

fullReplacement = true
subtractValue = 0.0
operationConversion = "DEFAULT"

What happens:

  • Source attribute is "frozen" at base value (modifiers are blocked)
  • Only target attribute works, preventing both from stacking
  • /attribute get obscure_api:critical_hit shows base value only
  • Solves balance issues where both attributes would stack for double effect
Example 4: Visual Change Only
[[dynamicMappings]]
sourceAttribute = "some_mod:visual_attribute"
targetAttribute = "minecraft:generic.attack_damage"
equivalence = 1.0
conversionEquivalence = 0.0
unidirectional = false

fullReplacement = false
subtractValue = 0.0
operationConversion = "DEFAULT"

What happens:

  • Source attribute is renamed to target without value conversion
  • Item with +10 some_mod:visual_attribute shows as +10 minecraft:generic.attack_damage
  • No modifier conversion, only display name changes
  • Useful for cosmetic unification

How to Install Attributification [Attribute Unification] (Mod)

Attributification [Attribute Unification] by UtherHel is verified for Fabric, Forge, Neoforge across Minecraft versions 1.20.1, 1.21.1 (latest release: 2.0.5, file size: 133 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.21.1) and platform (Fabric, Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
  3. Move the downloaded Attributification [Attribute Unification] file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
7mo ago 1
1.21.1
Neoforge
7mo ago 1
1.20.1
Fabric
7mo ago 1
1.20.1
Forge
7mo ago 1
1.20.1
Fabric
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Fabric
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Fabric
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Fabric
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Fabric
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Forge
8mo ago 1
1.20.1
Forge
9mo ago 1
  • Something Refactored
  • Something Refactored
### Fixed
  • Fixed crash on dedicated servers caused by client-only code (MinecraftClient) in config reload
  • Fixed JSON parsing error during config migration when old config format doesn't match expected structure
### Fixed
  • Fixed crash on dedicated servers caused by client-only code (MinecraftClient) in config reload
  • Fixed JSON parsing error during config migration when old config format doesn't match expected structure
### Fixed
  • Fixed fullReplacement mode not properly freezing source attribute
  • Fixed fullReplacement allowing modifiers to affect source attribute value
  • Fixed getValue() and getBaseValue() not respecting fullReplacement flag
  • Fixed onlyVisualChange mode redirecting getAttribute() when it should only rename
  • Fixed unidirectional mode redirecting hasAttribute() when source should not be considered as target
  • Fixed unidirectional mode applying equivalence multiplication when it should return direct value
  • Fixed all special modes (onlyVisualChange, fullReplacement, unidirectional) not working correctly after 2.0.0 refactoring
### Fixed
  • Fixed fullReplacement mode not properly freezing source attribute
  • Fixed fullReplacement allowing modifiers to affect source attribute value
  • Fixed getValue() and getBaseValue() not respecting fullReplacement flag
  • Fixed onlyVisualChange mode redirecting getAttribute() when it should only rename
  • Fixed unidirectional mode redirecting hasAttribute() when source should not be considered as target
  • Fixed unidirectional mode applying equivalence multiplication when it should return direct value
  • Fixed all special modes (onlyVisualChange, fullReplacement, unidirectional) not working correctly after 2.0.0 refactoring
### Added
  • Added conditional debug logging controlled by config option
  • Added centralized AttributeUtils class for shared caching across mixins
  • Added callback system for cache management on config reload

### Changed
  • Major optimization:** Migrated to direct JSON parsing for config migration (removed deprecated classes)
  • Performance:** Implemented 4-level caching system (global, per-config, per-mixin, per-thread)
  • Performance:** Added bidirectional caching in AttributeUnifier (source→mapping and target→mapping)
  • Performance:** Centralized attribute ID lookups in AttributeUtils with ConcurrentHashMap caching
  • Code quality:** Removed code duplication by centralizing common operations in AttributeUtils
  • Code quality:** Eliminated redundant cache in EntityAttributeInstanceMixin (now uses AttributeUnifier.getMappingByTarget())
  • Code quality:** Improved recursion protection with ThreadLocal guards

### Removed
  • Removed deprecated AttributificationConfig class (migration now uses direct JSON parsing)
  • Removed deprecated AttributeMapping class (migration now uses direct JSON parsing)
### Added
  • Added conditional debug logging controlled by config option
  • Added centralized AttributeUtils class for shared caching across mixins
  • Added callback system for cache management on config reload

### Changed
  • Major optimization:** Migrated to direct JSON parsing for config migration (removed deprecated classes)
  • Performance:** Implemented 4-level caching system (global, per-config, per-mixin, per-thread)
  • Performance:** Added bidirectional caching in AttributeUnifier (source→mapping and target→mapping)
  • Performance:** Centralized attribute ID lookups in AttributeUtils with ConcurrentHashMap caching
  • Code quality:** Removed code duplication by centralizing common operations in AttributeUtils
  • Code quality:** Eliminated redundant cache in EntityAttributeInstanceMixin (now uses AttributeUnifier.getMappingByTarget())
  • Code quality:** Improved recursion protection with ThreadLocal guards

### Removed
  • Removed deprecated AttributificationConfig class (migration now uses direct JSON parsing)
  • Removed deprecated AttributeMapping class (migration now uses direct JSON parsing)
### Fixed
  • Fixed crash on startup: removed incompatible SaveType.SEPARATE that conflicted with @RequiresAction(RELOG)
### Fixed
  • Fixed crash on startup: removed incompatible SaveType.SEPARATE that conflicted with @RequiresAction(RELOG)
### Added
  • Added Fabric support (mod now works on both Fabric and Forge)
  • Added in-game configuration GUI powered by fzzy_config
  • Added automatic migration from old JSON config to new TOML format
  • Added client-server config synchronization
  • Added unidirectional configuration field (replaces old bidirectional with inverted logic)

### Changed
  • Major refactoring:** Migrated to fzzy_config library for configuration management
  • Config format changed from JSON to TOML
  • Config file location: config/attributification/attributification.toml (was attribute_mappings.json)
  • Old JSON config is automatically backed up to attribute_mappings.json.old after migration
  • BREAKING:** Replaced bidirectional field with unidirectional (inverted logic, default: false)
  • Old: bidirectional: true (default) → New: unidirectional: false (default)
  • Old: bidirectional: false → New: unidirectional: true
  • Migration handles this automatically
### Added
  • Added Fabric support (mod now works on both Fabric and Forge)
  • Added in-game configuration GUI powered by fzzy_config
  • Added automatic migration from old JSON config to new TOML format
  • Added client-server config synchronization
  • Added unidirectional configuration field (replaces old bidirectional with inverted logic)

### Changed
  • Major refactoring:** Migrated to fzzy_config library for configuration management
  • Config format changed from JSON to TOML
  • Config file location: config/attributification/attributification.toml (was attribute_mappings.json)
  • Old JSON config is automatically backed up to attribute_mappings.json.old after migration
  • BREAKING:** Replaced bidirectional field with unidirectional (inverted logic, default: false)
  • Old: bidirectional: true (default) → New: unidirectional: false (default)
  • Old: bidirectional: false → New: unidirectional: true
  • Migration handles this automatically
### Removed
  • Removed autoEquivalence mode (equivalence must be specified manually)

### Fixed
  • Fixed potential StackOverflowError caused by registry lookups in mixins
  • Added recursion protection with ThreadLocal flags in all mixins
  • Added WeakHashMap caching for attribute IDs to avoid repeated registry calls

### Changed
  • Config migration automatically removes obsolete autoEquivalence field from old configs
Attributification [Attribute Unification] Icon
Download Attributification [Attribute Unification]
Select game version
Select platform