[Crash]: Modifier is already applied on this attribute #1

Closed
opened 2025-03-15 02:03:47 +00:00 by Disketaa · 4 comments
Disketaa commented 2025-03-15 02:03:47 +00:00 (Migrated from github.com)

Version information

default-components-1.0.0-alpha.5+1.21

Reproduction Steps

  1. Create armor attribute modifier components
  2. Wear armor
  3. Reload datapack
    (repeat the process a few times, do not unequip armor)

Crash Report file

https://mclo.gs/YaHfsJj

Additional information

It happening on the second or the third time.

Here an example of my file:

{
  "add": {
    "max_damage": 160,
    "minecraft:attribute_modifiers": {
      "modifiers": [
        {
          "type": "minecraft:generic.armor",
          "id": "minecraft:generic.armor",
          "amount": 2,
          "operation": "add_value",
          "slot": "feet"
        }
      ]
    }
  }
}

When I reloaded datapack with that armor on me Minecraft got crush

### Version information default-components-1.0.0-alpha.5+1.21 ### Reproduction Steps 1. Create armor attribute modifier components 2. Wear armor 3. Reload datapack (repeat the process a few times, do not unequip armor) ### Crash Report file https://mclo.gs/YaHfsJj ### Additional information It happening on the second or the third time. Here an example of my file: ``` { "add": { "max_damage": 160, "minecraft:attribute_modifiers": { "modifiers": [ { "type": "minecraft:generic.armor", "id": "minecraft:generic.armor", "amount": 2, "operation": "add_value", "slot": "feet" } ] } } } ``` When I reloaded datapack with that armor on me Minecraft got crush
Awakened-Redstone commented 2025-03-15 03:54:20 +00:00 (Migrated from github.com)

I am not being able to reproduce the issue
Are you able to reproduce it with a minimal mod setup?
If it is a mod compatibility issue
You can try doing a binary search


A binary search can be used to quickly find a specific mod causing trouble, which can be especially useful when logs don't give a conclusive answer to your issue.

Start by removing or disabling half of your mods, then test if the problem still occurs. If it does, remove half of the remaining mods and test again. If it doesn't, add back half of the mods you just removed.

Keep in mind you don't have to stick strictly to halves each time, and may have to enable some library mods like Fabric API out of order.

By repeating this on an increasingly smaller set of mods, you'll find the problematic mod within a few iterations.

I am not being able to reproduce the issue Are you able to reproduce it with a minimal mod setup? If it is a mod compatibility issue You can try doing a [binary search](https://en.wikipedia.org/wiki/Binary_search_algorithm) --- A binary search can be used to quickly find a specific mod causing trouble, which can be especially useful when logs don't give a conclusive answer to your issue. Start by removing or disabling half of your mods, then test if the problem still occurs. If it does, remove half of the remaining mods and test again. If it doesn't, add back half of the mods you just removed. Keep in mind you don't have to stick strictly to halves each time, and may have to enable some library mods like Fabric API out of order. By repeating this on an increasingly smaller set of mods, you'll find the problematic mod within a few iterations.
Disketaa commented 2025-03-15 21:29:54 +00:00 (Migrated from github.com)

Found the mod that crushes MC.

Armor Chroma for Fabric

Found the mod that crushes MC. **Armor Chroma for Fabric**
Awakened-Redstone commented 2025-03-15 21:35:43 +00:00 (Migrated from github.com)

This seem to be an issue on their side that was fixed on the 1.21.4 version
https://github.com/A5b84/armor-chroma-fabric/issues/33

This seem to be an issue on their side that was fixed on the 1.21.4 version https://github.com/A5b84/armor-chroma-fabric/issues/33
Disketaa commented 2025-03-15 23:15:52 +00:00 (Migrated from github.com)

Yeah, sadly I'm on 1.21.1.
So, should I close the issue?

Yeah, sadly I'm on 1.21.1. So, should I close the issue?
Commenting is not possible because the repository is archived.
No description provided.