[Can't fix] Thaumcraft recipes can't use .onlyWithTag

[Can't fix] Thaumcraft recipes can't use .onlyWithTag

Postby Unknown Zombie » Tue Sep 02, 2014 8:25 pm

I've tried to change some recipes for Thaumcraft to require specifically crafted TCon tools in place of typically crafted vanilla ones. However, I receive errors when attempting to use the .onlyWithTag funcion on a Thaumcraft recipe.

I'm using Minecraft 1.7.10 and Minetweaker 3.0.8B.

Script:
: [Select all] [/] [] ()
  1. ////////////////////
  2. // Recipe Removal
  3. ////////////////////
  4.  
  5. // Thaumcraft Infusion
  6.  
  7. mods.thaumcraft.Infusion.removeRecipe(<Thaumcraft:ItemPickaxeElemental>);
  8. mods.thaumcraft.Infusion.removeRecipe(<Thaumcraft:ItemAxeElemental>);
  9. mods.thaumcraft.Infusion.removeRecipe(<Thaumcraft:ItemSwordElemental>);
  10. mods.thaumcraft.Infusion.removeRecipe(<Thaumcraft:ItemShovelElemental>);
  11. mods.thaumcraft.Infusion.removeRecipe(<Thaumcraft:ItemHoeElemental>);
  12.  
  13. ////////////////////
  14. // Recipe Addition
  15. ////////////////////
  16.  
  17. // Thaumcraft Infusion
  18.  
  19. mods.thaumcraft.Infusion.addRecipe("ELEMENTALPICK", <TConstruct:pickaxe>.onlyWithTag({InfiTool: {BaseDurability: 200, Head: 31, ToolEXP: 0 as long, HarvestLevel: 3, Attack: 4, RenderHead: 31, ModDurability: 0.0 as float, Handle: 0, Broken: 0 as byte, Shoddy: 0.0 as float, RenderHandle: 0, Accessory: 31, MiningSpeed: 650, RenderAccessory: 31, ToolLevel: 1, Unbreaking: 0, Damage: 0, BonusDurability: 0, TotalDurability: 200, Modifiers: 1}}), [<Thaumcraft:ItemShard:1>, <Thaumcraft:ItemShard:1>, <Thaumcraft:blockMagicalLog>, <minecraft:diamond>], "ignis 8, perfodio 8, sensus 8", <Thaumcraft:ItemPickaxeElemental>, 1);
  20. mods.thaumcraft.Research.refreshResearchRecipe("ELEMENTALPICK");
  21. mods.thaumcraft.Infusion.addRecipe("ELEMENTALAXE", <TConstruct:hatchet>.onlyWithTag({InfiTool: {BaseDurability: 200, Head: 31, ToolEXP: 0 as long, HarvestLevel: 3, Attack: 6, RenderHead: 31, ModDurability: 0.0 as float, Handle: 0, Broken: 0 as byte, Shoddy: 0.0 as float, RenderHandle: 0, MiningSpeed: 650, ToolLevel: 1, Unbreaking: 0, Damage: 0, BonusDurability: 0, TotalDurability: 200, Modifiers: 1}}), [<Thaumcraft:ItemShard:2>, <Thaumcraft:ItemShard:2>, <minecraft:diamond>, <Thaumcraft:blockMagicalLog>], "aqua 16, arbor 8", <Thaumcraft:ItemAxeElemental>, 1);
  22. mods.thaumcraft.Research.refreshResearchRecipe("ELEMENTALAXE");
  23. mods.thaumcraft.Infusion.addRecipe("ELEMENTALSWORD", <TConstruct:broadsword>.onlyWithTag({InfiTool: {BaseDurability: 240, Head: 31, ToolEXP: 0 as long, HarvestLevel: 3, Attack: 7, RenderHead: 31, ModDurability: 0.0 as float, Handle: 0, Broken: 0 as byte, Shoddy: 0.0 as float, RenderHandle: 0, Accessory: 31, MiningSpeed: 650, RenderAccessory: 31, ToolLevel: 1, Unbreaking: 0, Damage: 0, BonusDurability: 0, TotalDurability: 240, Modifiers: 1}}), [<Thaumcraft:ItemShard>, <Thaumcraft:ItemShard>, <minecraft:diamond>, <Thaumcraft:blockMagicalLog>], "aer 8, motus 8, potentia 8", <Thaumcraft:ItemSwordElemental>, 1);
  24. mods.thaumcraft.Research.refreshResearchRecipe("ELEMENTALSWORD");
  25. mods.thaumcraft.Infusion.addRecipe("ELEMENTALSHOVEL", <TConstruct:shovel>.onlyWithTag({InfiTool: {BaseDurability: 200, Head: 31, ToolEXP: 0 as long, HarvestLevel: 3, Attack: 5, RenderHead: 31, ModDurability: 0.0 as float, Handle: 0, Broken: 0 as byte, Shoddy: 0.0 as float, RenderHandle: 0, MiningSpeed: 650, ToolLevel: 1, Unbreaking: 0, Damage: 0, BonusDurability: 0, TotalDurability: 200, Modifiers: 1}}), [<Thaumcraft:ItemShard:3>, <Thaumcraft:ItemShard:3>, <minecraft:diamond>, <Thaumcraft:blockMagicalLog>], "fabrico 8, terra 16", <Thaumcraft:ItemShovelElemental>, 1);
  26. mods.thaumcraft.Research.refreshResearchRecipe("ELEMENTALSHOVEL");
  27. mods.thaumcraft.Infusion.addRecipe("ELEMENTALHOE", <TConstruct:mattock>.onlyWithTag({InfiTool: {MiningSpeed2: 650, BaseDurability: 300, Head: 31, ToolEXP: 0 as long, HarvestLevel: 3, Attack: 6, RenderHead: 31, ModDurability: 0.0 as float, Handle: 0, Broken: 0 as byte, Shoddy: 0.0 as float, RenderHandle: 0, Accessory: 31, MiningSpeed: 650, RenderAccessory: 31, ToolLevel: 1, Unbreaking: 0, Damage: 0, HarvestLevel2: 3, BonusDurability: 0, TotalDurability: 300, Modifiers: 1}}), [<Thaumcraft:ItemShard:4>, <Thaumcraft:ItemShard:5>, <minecraft:diamond>, <Thaumcraft:blockMagicalLog>], "herba 8, meto 8, terra 8", <Thaumcraft:ItemHoeElemental>, 1);
  28. mods.thaumcraft.Research.refreshResearchRecipe("ELEMENTALHOE");
  29.  
GeSHi © Codebox Plus


Log output:

: [Select all] [/] [] ()
  1. ERROR: dawnoa-tweaks-v1.zs:401 > a method available but none matches the parameters (string, minetweaker.item.IIngredient, minetweaker.item.IItemStack[], string, minetweaker.item.IItemStack, int)
  2. ERROR: dawnoa-tweaks-v1.zs:403 > a method available but none matches the parameters (string, minetweaker.item.IIngredient, minetweaker.item.IItemStack[], string, minetweaker.item.IItemStack, int)
  3. ERROR: dawnoa-tweaks-v1.zs:405 > a method available but none matches the parameters (string, minetweaker.item.IIngredient, minetweaker.item.IItemStack[], string, minetweaker.item.IItemStack, int)
  4. ERROR: dawnoa-tweaks-v1.zs:407 > a method available but none matches the parameters (string, minetweaker.item.IIngredient, minetweaker.item.IItemStack[], string, minetweaker.item.IItemStack, int)
  5. ERROR: dawnoa-tweaks-v1.zs:409 > a method available but none matches the parameters (string, minetweaker.item.IIngredient, minetweaker.item.IItemStack[], string, minetweaker.item.IItemStack, int)
  6.  
GeSHi © Codebox Plus
Unknown Zombie
 
Posts: 9
Joined: Mon Aug 25, 2014 8:02 am

Re: Thaumcraft recipes can't use .onlyWithTag

Postby joshie » Tue Sep 02, 2014 8:26 pm

Nothing can be done about it. The only with makes the item in to a special casing, which thaumcraft wouldn't even know how to handle. Did you just try withTag? I'm not sure if Thaumcraft checks nbt or not.
User avatar
joshie
 
Posts: 59
Joined: Sat Jul 12, 2014 1:10 pm

Re: Thaumcraft recipes can't use .onlyWithTag

Postby Unknown Zombie » Tue Sep 02, 2014 9:08 pm

I did try it. Using .withTag doesn't cause errors, but it does allow you to use any old TCon pick, not just the specified one.
Unknown Zombie
 
Posts: 9
Joined: Mon Aug 25, 2014 8:02 am

Re: Thaumcraft recipes can't use .onlyWithTag

Postby SpitefulFox » Tue Sep 09, 2014 6:49 pm

Thaumcraft doesn't offer support for that and there's no way for us to support that. Try using the pickaxe head item in the recipe instead.
SpitefulFox
 
Posts: 3
Joined: Thu Jul 17, 2014 2:44 am


Return to ModTweaker Issues & Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron