MineTweaker/ModTweaker - A help and suggestions thread.

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

goreae

Ultimate Murderous Fiend
Nov 27, 2012
1,784
2,649
273
Raxacoricofallapatorius
I've added a movementSpeed boost to one of the shoes players are able to craft but when I craft them the boost isn't present.

The code:
Code:
recipes.addShapeless
  (
    <customitems:crude_shoe>.withTag
    (
      {
        AttributeModifiers:
        [
          {
            AttributeName:"generic.movementSpeed",
            Name:"Sole Protect",
            Amount: 7.0,
            Operation:0
          }
        ]
      }
    ),
    [
      <ore:hide>,
      <customitems:wire>,
      <customitems:woven_sticks>
    ]
  );
Let me tinker about a bit and see what's up.
 

goreae

Ultimate Murderous Fiend
Nov 27, 2012
1,784
2,649
273
Raxacoricofallapatorius
Okay here's the deal. You made the thing wrong. You missed the UUID tags for one thing, and I'm not sure if order matters or not. If you screw up NBT data, minetweaker doesn't give an error, there's just a bunch of data on the item that does nothing. The scipt runs just fine, the data is put on the item perfectly fine, but if the data is incorrect minecraft won't do anything with it.

Here's a working item definition for boots with stupid amounts of speed:
Code:
val boots = <minecraft:leather_boots>.withTag
(
    {
        AttributeModifiers:
        [
            {
                Name: "whee",
                Operation: 0,
                UUIDLeast: 1,
                Amount: 5.0,
                UUIDMost: 1,
                AttributeName: "generic.movementSpeed"
            }
        ],
    }
);
 
  • Like
Reactions: 1SDAN and Yulife

DreamMasterXXL

Well-Known Member
Jan 16, 2015
485
86
54
Germany
gtnewhorizons.com
Maybe someone can help me with my Problem. I try to make a own Recipes for the Basic Iron Wand. I delete the old recipes and make a new one everything works well (normal Recipes) but there is a Arcane Worktable Recipes also wich i can't delete.Someone know wich Mod add this Recipes or is this a standard Thaumcraft Recipes ?

Minetweaker Code:
Code:
import mods.thaumcraft.Arcane;
//remove
recipes.remove(<Thaumcraft:WandCasting>);
mods.thaumcraft.Arcane.removeRecipe(<Thaumcraft:WandCasting>);
//add
recipes.addShaped(<Thaumcraft:WandCasting>, [
[null, <TwilightForest:item.nagaScale>, <Thaumcraft:WandCap>],
[<TwilightForest:item.nagaScale>, <Forestry:eek:akStick>, <TwilightForest:item.nagaScale>],
[<Thaumcraft:WandCap>, <TwilightForest:item.nagaScale>, null]]);
//Arcane Recipes
mods.thaumcraft.Arcane.addShaped("ROD_wood", <Thaumcraft:WandCasting>, "ordo 0, [
[null, <TwilightForest:item.nagaScale>, <Thaumcraft:WandCap>],
[<TwilightForest:item.nagaScale>, <Forestry:eek:akStick>, <TwilightForest:item.nagaScale>],
[<Thaumcraft:WandCap>, <TwilightForest:item.nagaScale>, null]]);
Picture of the Recipes:
upload_2015-1-16_12-58-26.pngupload_2015-1-16_13-10-8.pngScreenshot 2015-01-16 13.37.22.png

My Modlist:
https://www.dropbox.com/s/5jhtxprdx94hk1v/Screenshot 2015-01-16 13.44.59.png?dl=0
 
Last edited:

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Maybe someone can help me with my Problem. I try to make a own Recipes for the Basic Iron Wand. I delete the old recipes and make a new one everything works well (normal Recipes) but there is a Arcane Worktable Recipes also wich i can't delete.Someone know wich Mod add this Recipes or is this a standard Thaumcraft Recipes ?

Minetweaker Code:
Code:
import mods.thaumcraft.Arcane;
//remove
recipes.remove(<Thaumcraft:WandCasting>);
mods.thaumcraft.Arcane.removeRecipe(<Thaumcraft:WandCasting>);
//add
recipes.addShaped(<Thaumcraft:WandCasting>, [
[null, <TwilightForest:item.nagaScale>, <Thaumcraft:WandCap>],
[<TwilightForest:item.nagaScale>, <Forestry:eek:akStick>, <TwilightForest:item.nagaScale>],
[<Thaumcraft:WandCap>, <TwilightForest:item.nagaScale>, null]]);
//Arcane Recipes
mods.thaumcraft.Arcane.addShaped("ROD_wood", <Thaumcraft:WandCasting>, "ordo 0, [
[null, <TwilightForest:item.nagaScale>, <Thaumcraft:WandCap>],
[<TwilightForest:item.nagaScale>, <Forestry:eek:akStick>, <TwilightForest:item.nagaScale>],
[<Thaumcraft:WandCap>, <TwilightForest:item.nagaScale>, null]]);
Picture of the Recipes:
View attachment 14173View attachment 14174View attachment 14175

Code:
mods.thaumcraft.Arcane.removeRecipe(<Thaumcraft:WandCasting>.withTag{}); 
//you will need to find the tag by crafting it with the recipe in the arcane table, and doing "/mt hand"
mods.thaumcraft.Arcane.addShaped("ROD_wood", <Thaumcraft:WandCasting>, "ordo 1", [
[null, <TwilightForest:item.nagaScale>, <Thaumcraft:WandCap>],
[<TwilightForest:item.nagaScale>, <Forestry:eek:akStick>, <TwilightForest:item.nagaScale>],
[<Thaumcraft:WandCap>, <TwilightForest:item.nagaScale>, null]]);
Try that you missed the " off of the the aspects
 

DreamMasterXXL

Well-Known Member
Jan 16, 2015
485
86
54
Germany
gtnewhorizons.com
I try now :
Code:
mods.thaumcraft.Arcane.removeRecipe(<Thaumcraft:WandCasting:1>.withTag({cap: "iron", rod: "wood"});

Modtweaker say:
Error parsing Thaumcraft.zs:25 --) expected

With the research i mean: Every time you change research Recipes you have to refresh the Page in the Book to show the right Recipes in the Book too.
Example :
mods.thaumcraft.Research.refreshResearchRecipe("CAP_gold");


Oh sorry forget some ).
Now it works but the Recipes have to refresh. They show 2 recipse now.
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
But another ")" before the ";"
Code:
mods.thaumcraft.Arcane.removeRecipe(<Thaumcraft:WandCasting:1>.withTag({cap: "iron", rod: "wood"}));
Yes, do the refresh then...