LangYueMc / EquipmentStandard

Other
2 stars 1 forks source link

Manually set rarities not working via datapack #9

Open denerka opened 2 months ago

denerka commented 2 months ago

Mod loader

Fabric

Modloader version

0.15.11

Minecraft version

1.20.1

Mod version

1.4.2

Modpack

n/a

latest.log

n/a

Issue description

Hello, I am attempting to manually set equipment rarity thresholds for given items/tags but am running into trouble.

Creating a dedicated file using your template (with comments removed) at the very bottom of the README causes the game to not load with a generic error: image image

Merging the "rarities" section with an equipment template allows the game to load, but does not have any effect. I.e., rarity will still follow the built-in grades regardless of what was set: image

It is configured with a standard datapack structure:

datapackname.zip
├ pack.mcmeta
└ data
   └ equipment_standard
      ├ template
         ├ customrarity.json
         └ ...
      ├ attr_score
         ├ customscore.json
         └ ...

And the example json:

{
  "verifiers": [
    "#equipment_standard:horse_armor"
  ],
  "rarities": [
    {
      "name": "Legendary",
      "score": 1750,
      "prefix": {
        "translate": "item.es.rarity.legendary"
      },
      "formatting": [
        "GOLD"
      ]
    }
  ]
}

Everything else I've adjusted via datapack is working as expected. Please let me know if I might just be missing something. Thank you!