I'm trying to add an 'transitionablePropsByType' attribute to firewood (similar to what the driedpeat mod does), but because it's in the root of the object, it seems I can't seem to get the path right. '/', and '/-' neither work (but according to the documentation, addMerge shouldn't care?) and they give the error:
"[Error] Exception: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'."
How can I fix this? Also does anyone know what the 'freshHours' attribute does?
[
{
"op": "replace",
"path": "/combustibleProps/burnTemperature",
"value": 600,
"file": "game:itemtypes/resource/firewood.json",
"side": "Server"
},
{
"op": "addMerge",
"path": "/",
"value": {
"transitionablePropsByType": {
"*":
[{
"type": "Cure",
"freshHours": { "avg": 0 },
"transitionHours": { "avg": 120 },
"transitionedStack": { "type": "item", "code": "game:agedfirewood" },
"transitionRatio": 1
}]
}
},
"file": "game:itemtypes/resource/firewood.json",
"side": "Server"
}
]