#copy nbt from ingredient to result?

5 messages · Page 1 of 1 (latest)

frank flame
#

I'm making custom recipes for Sophisticated Backpacks, and need to add a way to carry the nbt data for the contents of the bag from the lower tier backpack to the new backpack when dying or upgrading. I tried using .getNbtString and .withNBT but think i misunderstood how they work (script will be in thread)

regal iglooBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

frank flame
#

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() }) })

long crag
frank flame
#

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