Coding Help Having trouble with machines in my own mods

bansaighdear

Cowpoke
Hi there everyone!

I have made a bunch of mods, and figured most of the things I want to achieve through the modding resources and a lot of "try and error". Most of my mods work basically fine, but each one has one thing that does not work, and it's usually something about the machines. I am at my wits end, and appreciate every help.

My biggest issue is within the mod "Additional Chickens" (over on nexusmods), which works basically fine except that the eggs produce regular mayonnaise when put into the machine.
It took me a lot of reading to get that I need to put the new entries on top of the others, but once I did that, I suddenly only got error items with no description.
The code within the "machines" file of mine looks like this:

// Berry Egg to Mayonnaise
"ACFa-C.BerryMayonnaise":
{
"Id": "ACFa-C.BerryMayonnaise",
"Triggers":
[{
"Trigger": "ItemPlacedInMachine",
"RequiredItemId": "(O)ACFa-C.EggBerry",
"RequiredCount": 1,
}],
"UseFirstValidOutput": false,
"OutputItem":
[{
"Id": "(O)ACFa-C.BerryMayonnaise",
"ItemId": "(O)ACFa-C.BerryMayonnaise",
"MinStack": 1,
"MaxStack": 1,
"Quality": -1,
"CopyQuality": true,
}],
"MinutesUntilReady": 180,
},
"MoveEntries":
[{"Id": "ACFa-C.BerryMayonnaise", "ToPosition": "Top" }]


What I have done so far:
  • Re-read all the infos I could find; over on Github as well as the Wiki and general www.
  • Copied the code from a mod that works
  • Deleted and re-wrote from scratch multiple times

Can anyone help me with this? It's pretty annoying, as I have basically the same issue with the oilmaker, and no matter what I try, the game just tells me "nope" and gives me an error item.


I refuse to join discord, so please don't recommend that to me, thanks
 

bansaighdear

Cowpoke
I chose a different approach and am currently more confused than ever.
Instead of making the machine give out my item, I wrote it so the machine changes the item that is put in the machine. This should work, right? Wrong.
Instead of duck mayonnaise I now get chicken mayonnaise.

Somebody, please help. I have used every tutorial I could find, copied from another working mod and I still get this issue. How is this other mod working and mine isn't?? :cry:
 
Top