Roinflam / BattleCorrection

Minecraft 1.12.2Forge Mod
Mozilla Public License 2.0
1 stars 1 forks source link

Preparation speed attribute doesn't seem to work #3

Open CalaMariGold opened 1 year ago

CalaMariGold commented 1 year ago

Preparation speed attribute doesn't seem to work when applied to the player.

I'm using CraftTweaker to apply increase preparation speed to the player for all food/items, however it has no affect. (this script worked for vanilla attributes, so I don't think its the script itself)

val uuid = "84f27e8d-85d7-45f4-9b59-b2f5c19da11d";
val attribute_modifier = AttributeModifier.createModifier("prepspeed", 5.0, 2, uuid);

val attribute = event.player.getAttribute("battlecorrection.preparationSpeed");
attribute.applyModifier(attribute_modifier);
Roinflam commented 1 year ago

Are the added attributes added to the item? If so, please send a screenshot, or can other attributes work normally?

CalaMariGold commented 1 year ago

The attribute is added to the player so that all items can be modified at once. Does it not work like that?

Roinflam commented 11 months ago

This is indeed a problem and I will try to fix it