Im currently modifying some crafting recipies in ATM7 and wanted to make it so I can either A make a shaped crafting of netherite to Allthemodium tools or B use create sequenced assembly to upgrade. Ive gotten it to go from a standard netherite sword to a standard allthemodium sword both ways but I cant use an enchanted netherite sword and upgrade it into a allthemodium sword with the same enchants. I wanted it to accept any enchant on the sword and move it to the new one. Any help would be appreciated current code:
onEvent('recipes', e => {
//SWORDS
e.recipes.createSequencedAssembly([
Item.of('allthemodium:allthemodium_sword').withChance(100.0)
], 'minecraft:netherite_sword', [
e.recipes.createDeploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'allthemodium:allthemodium_rod']),
e.recipes.createDeploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'allthemodium:allthemodium_plate']),
e.recipes.createDeploying('create:incomplete_precision_mechanism', ['create:incomplete_precision_mechanism', 'allthemodium:allthemodium_plate']),
e.recipes.createPressing('create:incomplete_precision_mechanism', 'create:incomplete_precision_mechanism')
]).transitionalItem('create:incomplete_precision_mechanism').loops(1)
e.shaped('allthemodium:allthemodium_sword', [' P ', ' P ', ' S '], {
P: 'allthemodium:allthemodium_plate',
S: 'minecraft:netherite_sword'
})
})