-
Notifications
You must be signed in to change notification settings - Fork 0
Stale Attribute Purging and Scale
| Bug Fix | Issue | Release |
|---|---|---|
| Giant Scale Bug | Stale attribute modifier accumulation | 1.8.11 |
| Base Scale Offset |
ADD_VALUE attribute modifier base offset math |
1.8.10 |
In Minecraft 26.2, entity scale uses vanilla minecraft:scale. When applying an ADD_VALUE attribute modifier for scale, the modifier value
If
To prevent duplicate attribute modifiers from stacking over world reloads or breeding updates, GeneticsEngine purges legacy genetics_ modifiers before applying new ones:
public static void applyGeneticsModifiers(LivingEntity entity) {
AttributeInstance scaleInstance = entity.getAttribute(Attributes.SCALE);
if (scaleInstance != null) {
// Purge legacy/duplicate modifiers by identifier
scaleInstance.getModifiers().stream()
.filter(mod -> mod.id().getPath().startsWith("genetics_"))
.toList()
.forEach(scaleInstance::removeModifier);
}
}
Dasik Library | Social AI & Infrastructure Engine
Developed with โค๏ธ by Dasik (Rifaditya) | Licensed under LGPL-3.0
๐ Documentation reflects active repository source code state.
- Hive Mind Social System
- Social Scheduler & Events
- Animal Genetics Engine
- Genetics API & Pedigree
- Genetics Loot Modifiers
- Leader Follower & Flocking
- Dynamic GameRules Manager
- GameRule Codec & Serialization
- Client GameRule & GUI Helpers
- Dynamic Enchantments & Vision
- Stochastic & Math Utilities
- Stale Attribute Purging & Scale
- ModVersionGuard & Startup Safety
- Developer Setup & Building
- Architecture & Package Layout
- Mixin Reference & Hooks
- Behavior Profiles & Conditions
- Consumer Mods Integration Guide