Facilitate CraftTweaker's transformDamage(0) Keep-in-Grid behaviour
pyure opened this issue ยท 0 comments
Issue Description:
In CraftTweaker scripts leveraging contenttweaker items, .anyDamage().transformDamage(2), stick]) only performs a single execution.
Item is created via ContentTweaker.
As per SkySom, CraftTweaker is doing what it should, but he may be able to faciliate executing batches of items in a transformDamage() script.
"I need to allow contenttweaker to set container item
I think that'll work for keepijg it in the grid"
What happens:
It executes the recipe against a single stick and returns the damaged mortar to player inventory.
What you expected to happen:
Would expect this combine the "stick" and "iron_mortar" to produce 3 sticks and a damaged iron_mortar, even when doing a batch of sticks.
Script used
var stick = <minecraft:stick>; // item to be tripled
var iron_mortar = <contenttweaker:test_mortar>; // item to do the tripling and take damage
recipes.addShapeless(stick * 3, [iron_mortar.anyDamage().transformDamage(2), stick]);
Affected Versions
- Minecraft: 1.12.2
- Forge: forge-14.23.0.2515
- Crafttweaker: CraftTweaker2-1.12-4.0.8.jar