im trying to advance my minetweeker skills so i decided to make "sirwilli" tanks for my sp world but i keep getting error parsing Script.zs:30 -- ) expected heres line 30 Code: recipes.addShaped(<EnderStorage:enderChest:4096>.withTag({owner: "tyler489"}), [[<ore:rodBlaze>, <minecraft:wool>, <ore:rodBlaze>], [<ore:blockObsidian>, <ExtraUtilities:enderThermicPump>, <ore:blockObsidian>], [<ore:rodBlaze>, <ore:pearlEnder>, <ore:rodBlaze>]]);
Weird not seeing anything wrong with that, try putting the recipe starting on the line below the tag as thats how we have it added
Code: recipes.addShaped(<EnderStorage:enderChest:4096>.withTag({owner: "tyler489"}), [[<ore:rodBlaze>, <minecraft:wool>, <ore:rodBlaze>], [<ore:blockObsidian>, <ExtraUtilities:enderThermicPump>, <ore:blockObsidian>], [<ore:rodBlaze>, <ore:pearlEnder>, <ore:rodBlaze>]]);
that fixed it interesting enough no idea why it has to be spaced like that.[DOUBLEPOST=1449520881][/DOUBLEPOST] also why u quit i miss you.
i'm no expert at code, but i imagine that the way minecraft renders it's recipes, they follow under a similar format of the crafting table. if it was along a single line like that, we'd be crafting with a grid that looked like a stick.
well my bet is that, with custom owners and such, some minecraft metadata of some sort, some kind of hidden under-work in the code requires that it's in that format for designated owners, as the recipe originally creates a "blank template" aka white/white/white ender tank. with the modification, the game is tripping itself over the recipe your trying to add, while it looks at the normal recipe. but again, no expert here. so i more than likely don't know what half of what i'm talking about. then again, i looked through a crash log i had and found the issue, and quickly had it fixed. so i have a certain basic idea as of javacode for minecraft.
it would work like that due to the fact that the recipie registry for forge is dumb and accepts the recipes like that
eeeehh... code doesnt CARE about lines/spaces etc.... For forge modding, a recipe made by a mod-developer may look like this: Code: " ", "IBI", " I ", 'I', Items.iron_ingot, 'B', Items.bowl Where the "x" is the actual recipe, and the 'x' is the definitions for the ingredients However, for a computer, this would be EXACTLY the same Code: " ","IBI"," I ",'I', Items.iron_ingot, 'B', Items.bowl You must have changed something more than just editing the line-breaks, to fix the issue
Do you get the same error when you replace the enderchest with some normal item without a owner? Would be a good way to find out whether the "withTag" thing causes the error.
Code: recipes.addShaped(<EnderStorage:enderChest:4096>), [[<ore:rodBlaze>, <minecraft:wool>, <ore:rodBlaze>], [<ore:blockObsidian>, <ExtraUtilities:enderThermicPump>, <ore:blockObsidian>], [<ore:rodBlaze>, <ore:pearlEnder>, <ore:rodBlaze>]]); works fine but when I add .withtag it must be spaced out
Well I guess some bug/feature in the parser then. Probably nothing you can do about that (except reporting it to the MineTweaker dev)