Well, this is going to require an ENTIRE mod re-write. It has absolutely nothing to do with the code, but how I used a simple function that does the following:
function item(name) return data.raw["item"][name] end
All this does is make it so that instead of doing:
data.raw["item"]["item-name"]
all the time, I can just do
item("item-name")
which really sucks, but I will do a complete re-write on my mod.
A simple fix would just be changing it to
wcm_item("item-name")
but I would rather just re-write it without functions.
Give me a few hours, I'll try to have an update in before I fall asleep again.