How are sirwilli tanks are made? a minetweeker question

Dieses Thema im Forum "Community Talk" wurde erstellt von tyler489, 7. Dezember 2015.

  1. tyler489

    tyler489 Well-Known Member

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    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

    Beiträge:
    1.888
    Zustimmungen:
    498
    Ortszeit:
    08:13
    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

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    how?
     
  4. Bennyboy1695

    Bennyboy1695 Well-Known Member

    Beiträge:
    1.888
    Zustimmungen:
    498
    Ortszeit:
    08:13
    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

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    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

    Beiträge:
    975
    Zustimmungen:
    237
    Ortszeit:
    00:13
    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

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    normal recipys work just fine in the straite line though.
     
  8. mrminesheeps

    mrminesheeps Helper

    Beiträge:
    975
    Zustimmungen:
    237
    Ortszeit:
    00:13
    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

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    03:13
    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

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    09:13
    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 gefällt das.
  11. tyler489

    tyler489 Well-Known Member

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    Thats what i thouh but when i removed the linebreaks it wouldnt parse again
     
  12. Sandstroem

    Sandstroem Well-Known Member

    Beiträge:
    1.529
    Zustimmungen:
    821
    Ortszeit:
    09:13
    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

    Beiträge:
    1.873
    Zustimmungen:
    202
    Ortszeit:
    02:13
    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

    Beiträge:
    1.529
    Zustimmungen:
    821
    Ortszeit:
    09:13
    Well I guess some bug/feature in the parser then. Probably nothing you can do about that (except reporting it to the MineTweaker dev)
     

Diese Seite empfehlen