SoggyGravel Posted April 25, 2025 Report Posted April 25, 2025 for some reason i cant get this fruittree pantograph recipe right. when viewing the cutting with H it crashes the game but not with the pantograph's they dont seem to have the recipe. i cant seem to reference the pantographs in the recipe correctly. if anyone can lend a hand would be great so i can get this version out woodenpantograph_1.3.5.zip
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 If i understand correctly, you're trying to move over the "metal" of the chisel to your output code? In the "L" ingredient you should have a "name" field with "material" as the value. Like so: "L": { "type": "item", "code": "game:chisel-*", "name": "material", "quantity": 1, "isTool": true } You can then refer back to that value in your output code by entering the code like "chiseltools:pantograph-{material}" Like so: "output": { "type": "item", "code": "chiseltools:pantograph-{material}" } 2
SoggyGravel Posted April 25, 2025 Author Report Posted April 25, 2025 lol when i did it the recipe no longer crashes the game but not it references the original chisel tools metal ones i need them to reference the fruitpantograph.json how would i do that?
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 (edited) Does that work? { "ingredientPattern": "LH", "ingredients": { "L": { "type": "item", "code": "game:chisel-*", "quantity": 1, "isTool": true }, "H": { "type": "block", "code": "game:fruittree-cutting-*", "name": "type", "quantity": 1 } }, "width": 2, "height": 1, "output": { "type": "item", "code": "simplepantograph-{type}" } } Edited April 25, 2025 by Wondiws98 2
SoggyGravel Posted April 25, 2025 Author Report Posted April 25, 2025 i got this "[Warning] Failed resolving crafting recipe ingredient with code woodenpantograph:simplepantograph-{type} in Grid recipe 25.4.2025 11:29:15 [Error] Grid Recipe 'woodenpantograph:recipes/grid/fruitpantographs.json': Output Item code woodenpantograph:simplepantograph-{type} cannot be resolved" could it have something to do with the itemtype file?
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 (edited) Ok so after doing a little digging I've figured out that this isn't working because fruit cuttings doesn't have the "fruit" type stored as a variant. It is stored as an attribute. This means that for this to work you will probably need to create a recipe for each fruit types. Here is an example for red apple. { "ingredientPattern": "LH", "ingredients": { "L": { "type": "item", "code": "game:chisel-*", "quantity": 1, "isTool": true }, "H": { "type": "block", "code": "game:fruittree-cutting", "attributes": {"type": "redapple"}, "quantity": 1 } }, "width": 2, "height": 1, "output": { "type": "item", "code": "simplepantograph-redapple" } } Edited April 25, 2025 by Wondiws98 2
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 Actually, I don't have anything to do right now so imma make a recipe json file for you and post it here when it's done 2
SoggyGravel Posted April 25, 2025 Author Report Posted April 25, 2025 omgosh your a life saver i been pulling my hair trying to figure it out
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 Here is the file: fruitpantographs.json Just replace your original fruit pantograph recipe file with it and it should work just fine. 3
Wondiws98 Posted April 25, 2025 Report Posted April 25, 2025 Quote omgosh your a life saver i been pulling my hair trying to figure it out No problem! Glad i can help! 2
SoggyGravel Posted April 25, 2025 Author Report Posted April 25, 2025 tytytytyty ill have this updated very shortly
Brady_The Posted April 25, 2025 Report Posted April 25, 2025 (edited) Edit: Windows98 and my solution follow two slightly different approaches. Hers might be better under these circumstances. Windows98 is on the right path, but it's a bit simpler regarding the recipes. You only need one. https://wiki.vintagestory.at/Modding:Grid_Recipes_Guide/en#Copying_attributes Of course you'll have to adjust the itemtype file as well. I'd have a look at how shields do it. Btw, I think you got a bit confused in your own files. Your original fruit tree recipe has this output. "output": { "type": "item", "code": "chiseltools:pantograph-{*}" } But your pantographs are in your own mod domain, not in "chiseltools", so the output would have failed here, if everything else would have been correct. The fruit tree pantograph file has the code "simplepantograph" not "pantograph", so the output would have failed here, if everything else would have been correct. Giving the fruit tree pantographs individual names could prove challenging. I am not sure if the game is smart enough to append the tree species lang strings to modded items. Edited April 25, 2025 by Brady_The 2
SoggyGravel Posted April 25, 2025 Author Report Posted April 25, 2025 31 minutes ago, Brady_The said: Edit: Windows98 and my solution follow two slightly different approaches. Hers might be better under these circumstances. Windows98 is on the right path, but it's a bit simpler regarding the recipes. You only need one. https://wiki.vintagestory.at/Modding:Grid_Recipes_Guide/en#Copying_attributes Of course you'll have to adjust the itemtype file as well. I'd have a look at how shields do it. Btw, I think you got a bit confused in your own files. Your original fruit tree recipe has this output. "output": { "type": "item", "code": "chiseltools:pantograph-{*}" } But your pantographs are in your own mod domain, not in "chiseltools", so the output would have failed here, if everything else would have been correct. The fruit tree pantograph file has the code "simplepantograph" not "pantograph", so the output would have failed here, if everything else would have been correct. Giving the fruit tree pantographs individual names could prove challenging. I am not sure if the game is smart enough to append the tree species lang strings to modded items. should be fixed now
Recommended Posts