rushsteve1 Posted January 8 Report Posted January 8 (edited) Hello! I'm working on a content mod that adds liquid Vegetable Oil, and I've run into a few issues I'm confused by if anyone can help me out I'm trying to create a new recipe for Oil Lamps that requires both a bowl and an amount of liquid vegetable oil, consuming the bowl in the process. Currently I have this, but this requires that both the bucket and bowl have 0.2 litres, and doesn't consume the bowl { "ingredientPattern": "B", "ingredients": { "B": { "type": "block", "code": "game:bowl-fired", "returnedStack": { "code": "game:air" } } }, "attributes": { "liquidContainerProps": { "requiresContent": { "type": "item", "code": "steve:vegetableoilportion" }, "requiresLitres": 1 } }, "width": 1, "height": 1, "shapeless": true, "output": { "type": "block", "code": "game:oillamp-up" } } Updated with some suggestions from the Discord, though still does not consume the bowl In order to make Vegetable Oil I wanted to add a custom Fruitpress recipe by patching the games one. I have this with just carrots for testing but when I right-click on the Fruitpress with a carrot the game immediately crashes (log attached) Here's my patch file [ { "file": "game:itemtypes/food/vegetable", "op": "addmerge", "path": "/attributes", "value": { "juiceablePropertiesByType": { "*-carrot": { "litresPerItem": 0.1, "liquidStack": { "type": "item", "code": "steve:vegetableoilportion", "stacksize": 1 }, "pressedStack": { "type": "item", "code": "steve:pressedmash-vegetable", "stacksize": 1 } } } } } ] client-crash.txt Edited January 10 by rushsteve1 update example for first question
Recommended Posts