Hello all, I followed a tutorial to create an item mod but for some reason it makes my game crash on startup. Can someone look over the mod here and tell me if I did anything wrong? It's a simple food item and I thought I did everything right but who knows. It's a bit of a silly joke item that is basically meant to be a gnome (one of the teeny tiny people) that you can eat as a food item
Read your log. Code: [22:18:41.173] [Error] Exception caught loading asset: /items/generic/food/gnomefood.consumable, (AssetException) Could not read JSON asset /items/generic/food/gnomefood.consumable This implied the JSON of your item (path listed above) is incorrect Lint your JSON. http://helmet.kafuka.org/sbmods/json/ Code: Superfluous trailing comma at line 25 column 1. Next part: "}" The last value has a trailing comma, which is not allowed in JSON. Remove the comma and lint again. Code: "emitters": ["drinking"]
Oh okay! I didn;t know, all the liens had commas after them so it looked okay to me. I copied parts of the code there from other items so that's how the comma got there. I did what you said and it works now. Thank you!