Crioch Posted October 16, 2020 Report Posted October 16, 2020 I'm testing out barrel recipes for my mod I'm working on, but I can't seem to get the recipe to work (I keep getting `[Event] 46 barrel recipes loaded (1 could not be resolved)` in the server-main log). My new liquid shows up in the creative menu. What am I doing wrong? Here is my liquid item (located at assets\equivlomancy\itemtypes\liquids\materiaportion.json): { code: "materiaportion", class: "ItemLiquidPortion", matterState: "liquid", attributes: { waterTightContainerProps: { containable: true, itemsPerLitre: 10, texture: {base: "block/liquid/materiaportion"}, whenFilled: { stack: { type: "item", code: "materiaportion" } }, allowSpill: true, whenSpilled: { action: "DropContents", stack: { type: "item", code: "materiaportion"} } } }, texture: {base: "item/liquid/materiaportion"}, creativeinventory: { "general": ["*"], "items": ["*"] }, maxstacksize: 16, materialDensity: 1000 } And here is my recipe (located at assets\equivlomancy\recipes\barrel\materia.json): { code: "materia", ingredients: [ { type: "item", code: "survival:waterportion", quantity: 2 }, { type: "item", code: "survival:flint", quantity: 1 } ], output: { type: "item", code: "materiaportion", stackSize: 1 } }
Crioch Posted October 16, 2020 Author Report Posted October 16, 2020 For those who come across this in the future, I get a response from Tyron on Discord. Apparently instead of using the namespace of the one it is a part of, I needed to use game instead. So, for instance, the barrel recipe above is supposed to be the following: { code: "materia", ingredients: [ { type: "item", code: "game:waterportion", quantity: 2 }, { type: "item", code: "game:flint", quantity: 1 } ], output: { type: "item", code: "materiaportion", stackSize: 1 } }
Recommended Posts