When you try to make the result of the recipe type "minecraft:smithing_transform"
use components, the recipe works, but not the components
How to reproduce
Download the attached data pack, which adds a smithing transform recipe
Try crafting the custom recipe in a smithing table with the 3 slots filled with stone
❌ Notice that the resulting stone does not have the custom lore component
Attachments
Comments 4
Can confirm. The issue is in SmithingTransformRecipe#assemble
, where it doesn't incorporating/patch the result components.
public ItemStack assemble(Container container, RegistryAccess registries) {
return container.getItem(1).transmuteCopy(this.result.getItem(), this.result.getCount());
}
This would be expected because the 24w10a article states:
Recipe types [...] and
smithing_transform
now acceptcomponents
for theresult
item stack
Please provide the datapack used when experiecing this issue