Minetweaker Script Help

  • 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

Sigma85

New Member
Jul 29, 2019
182
0
0
I am hoping someone with more experience in minetweaker can help me. My script is for the IC2 Forge Hammer to smash Bluepower's Zinc ore into crushed zinc ore, take 4 damage and be reused. That in itself works, however when trying to reuse the hammer for the same recipe after it is damaged, it does not work. Here is my script:

recipes.addShapeless(<bluepower:zinc_ore_crushed> , [<IC2:itemToolForgeHammer>.transformDamage(4), <ore:eek:reZinc>]);

How do I make this accept the hammer with ANY damage, but still take damage on use and work in all recipes ?
 

Tommerbob

New Member
Jul 29, 2019
31
0
0
Try this:

val Hammer = <IC2:itemToolForgeHammer:*>;
recipes.addShapeless(<bluepower:zinc_ore_crushed> , [Hammer.transformDamage(4), <ore:eek:reZinc>]);
 

Sigma85

New Member
Jul 29, 2019
182
0
0
Aww, I see now. I forgot that leaving the meta blank assumes the first value, zero; I thought it was all inclusive for some reason... Thanks alot, this worked perfectly, I appreciate the help =D