SilentChaos512 / Silent-Gear

Modular tool/armor mod (formerly part of Silent's Gems)
https://www.curseforge.com/minecraft/mc-mods/silent-gear
MIT License
74 stars 34 forks source link

Datapack issue #664

Closed Sythgirla closed 2 months ago

Sythgirla commented 2 months ago

Versions

Expected Behavior

I was making a datapack to implement more materials into the RobaCraft server, namely for Blue Skies, Aether, Twilight Forest, among others. I had done this before about a year ago for only Neptunium (Aquaculture 2) which worked fine back then.

Actual Behavior

Instead of getting the materials that I wanted, it breaks and does 1 of 3 things:

With my current datapack, 9 materials work as intended, albeit with color problems*, and 6 do not. What's worse is some other materials (such as wood, sticks, wool, and even Tyrian Steel) become unusable in Silent Gear crafting, showing no [SGear Material] when hovering over it nor when holding CRTL.

*Honestly, it's irrelevant currently, but it should still work considering it's in the appropriate folder. I might be able to fix it myself but, as stated, irrelevant currently.

Links/Images

Unloaded SGear Material item: (https://i.imgur.com/e1eo119.png) Working Datapack Material Item: (https://i.imgur.com/sywJ4Lc.png) Working Datapack Material Item 2: (https://i.imgur.com/NpuxpuO.png)

Logs: When /reload or /datapack enable: https://pastebin.com/fm590zCx debug.log, latest.log and Prism Launcher log: https://file.io/oPeHomdZfJFO

Steps to Reproduce the Problem

  1. Code data files
  2. Make datapack with data files
  3. Load up world
  4. /reload or /datapack enable
  5. Problem
SilentChaos512 commented 2 months ago

From the first log file: java.util.concurrent.CompletionException: com.google.gson.JsonParseException: Found multiple op keys in stat modifier object

One of your material JSON files must have an error in the stats somewhere. Unfortunately I can't tell you which one.

Sythgirla commented 2 months ago

Thank you for the quick reaction, I fixed it and it works fine now, thank you for the help!