How are sirwilli tanks are made? a minetweeker question

Discussion in 'Community Talk' started by tyler489, Dec 7, 2015.

  1. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    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>]]);
     
  2. Bennyboy1695

    Bennyboy1695 Well-Known Member

    Messages:
    1,888
    Likes Received:
    498
    Local Time:
    7:18 PM
    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
     
  3. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    how?
     
  4. Bennyboy1695

    Bennyboy1695 Well-Known Member

    Messages:
    1,888
    Likes Received:
    498
    Local Time:
    7:18 PM
    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>]]);
    
     
  5. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    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.
     
  6. mrminesheeps

    mrminesheeps Helper

    Messages:
    974
    Likes Received:
    237
    Local Time:
    11:18 AM
    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.
     
  7. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    normal recipys work just fine in the straite line though.
     
  8. mrminesheeps

    mrminesheeps Helper

    Messages:
    974
    Likes Received:
    237
    Local Time:
    11:18 AM
    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.
     
  9. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Messages:
    5,861
    Likes Received:
    730
    Local Time:
    2:18 PM
    it would work like that due to the fact that the recipie registry for forge is dumb and accepts the recipes like that
     
  10. Matryoshika

    Matryoshika Well-Known Member

    Messages:
    1,193
    Likes Received:
    606
    Local Time:
    8:18 PM
    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
     
    chugga_fan likes this.
  11. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    Thats what i thouh but when i removed the linebreaks it wouldnt parse again
     
  12. Sandstroem

    Sandstroem Well-Known Member

    Messages:
    1,528
    Likes Received:
    821
    Local Time:
    8:18 PM
    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.
     
  13. tyler489

    tyler489 Well-Known Member

    Messages:
    1,873
    Likes Received:
    202
    Local Time:
    1:18 PM
    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
     
  14. Sandstroem

    Sandstroem Well-Known Member

    Messages:
    1,528
    Likes Received:
    821
    Local Time:
    8:18 PM
    Well I guess some bug/feature in the parser then. Probably nothing you can do about that (except reporting it to the MineTweaker dev)
     

Share This Page