#copy nbt from ingredient to result?
5 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
current script: onEvent('recipes', e => { e.shaped('sophisticatedbackpacks:backpack', [ 'SLS', 'ICI', 'LLL' ],{ S: 'minecraft:string', L: 'minecraft:leather', C: 'minecraft:chest' }) e.shaped(Item.of('sophisticatedbackpacks:iron_backpack').withNBT(), [ 'III', 'IBI', 'III' ],{ I: 'minecraft:iron_block', B: Item.of('sophisticatedbackpacks:backpack').getNbtString() }) })
This would normally need to be done with modifyResult, but that is not available in 1.16.
However, sophisticated backpacks does add a recipe type for the upgrading of backpacks so you can use that with e.custom
https://github.com/P3pp3rF1y/SophisticatedBackpacks/blob/1.16.x/src/generated/resources/data/sophisticatedbackpacks/recipes/iron_backpack.json
For the dying recipes, you are pretty much out of luck as those are hardcoded to only be dye + backpack
eh, dyeing isn't a massive issue, i can just hide the dyed backpacks.
also e.custom hadn't occured to me cuz I've not had much experience with it, tysm <3