#I use smithing recipes but they dont work with enchanted items, could someone explain how to fix?

39 messages · Page 1 of 1 (latest)

mild veldt
#
onEvent('recipes', event => {
    event.smithing(
        'changed_addon:painite_pickaxe',  // arg 1: output
        'minecraft:netherite_pickaxe',       // arg 2: the item to be upgraded
        'changed_addon:painite'         // arg 3: the upgrade item
      ).id('tas:smithing/painite_pickaxe')
      event.smithing(
        'changed_addon:painite_axe',
        'minecraft:netherite_axe',
        'changed_addon:painite'
      ).id('tas:smithing/painite_axe')
      event.smithing(
        'changed_addon:painite_sword',
        'minecraft:netherite_sword',
        'changed_addon:painite'
      ).id('tas:smithing/painite_sword')
      event.smithing(
        'changed_addon:painite_shovel',
        'minecraft:netherite_shovel',
        'changed_addon:painite'
      ).id('tas:smithing/painite_shovel')
      event.smithing(
        'changed_addon:painite_hoe',
        'minecraft:netherite_hoe',
        'changed_addon:painite'
      ).id('tas:smithing/painite_hoe')
      event.smithing(
        'changed_addon:painite_armor_helmet',
        'minecraft:netherite_helmet',
        'changed_addon:painite'
      ).id('tas:smithing/painite_helmet')
      event.smithing(
        'changed_addon:painite_armor_chestplate',
        'minecraft:netherite_chestplate',
        'changed_addon:painite'
      ).id('tas:smithing/painite_chestplate')
      event.smithing(
        'changed_addon:painite_armor_leggings',
        'minecraft:netherite_leggings',
        'changed_addon:painite'
      ).id('tas:smithing/painite_leggings')
      event.smithing(
        'changed_addon:painite_armor_boots',
        'minecraft:netherite_boots',
        'changed_addon:painite'
      ).id('tas:smithing/painite_boots')
})
frozen coyoteBOT
#

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

inland ginkgo
#

I'm not on the support team, but I just had a similar issue and you might see an improvement if you add ignoreNBT() like this to each one:

      event.smithing(
        'changed_addon:painite_armor_boots',
        'minecraft:netherite_boots',
        'changed_addon:painite'
      ).ignoreNBT()
mild veldt
inland ginkgo
#

Should be able to! It'll either go before or after, but unfortunately I'm unsure which

mild veldt
#

i think ill have ID after

#

neither work

inland ginkgo
#

Darn, unfortunate. I'll have to leave that to the support team, works differently for smithing recipes looks like! Sorry love!

mild veldt
merry python
#

I do believe .ignoreNBT goes after the item, not the recipe.

 event.smithing(
        'changed_addon:painite_armor_boots',
        Item.of('minecraft:netherite_boots').ignoreNBT(),
        'changed_addon:painite'
      )

I believe to use .ignoreNBT(), you do need to wrap the item in Item.of(), at least in 1.18, but that should work. In 1.20, you no longer need .ignoreNBT() as it is automatic IIRC

mild veldt
#

also sorry about taking so long, i didnt notice you because i didnt get pinged

#

just made it not work at all

merry python
#

Hmmm...

merry python
mild veldt
#

im a dumbass

#

lacking sleep completely confused me

merry python
#

No worries. Did it make the boots work?

mild veldt
#

despite injecting the code in the wrong spot, it works

merry python
#

Hahah well, I guess that's that.
As for the other issue... Hmm. I'm doubtful I could make something take longer.
Probe doesn't suggest any methods to take place after a blasting recipe, and it has no overrides that would suggest a field for recipe time.
Hmmm...... Perhaps with .custom(), if it's possible to give blasting recipes in JSON extra processing time. However, it's not done in vanilla and I don't know if any datapacks create blasting recipes that take longer.

mild veldt
#

but still, with the smithing, thank you so much

#

i would never had thought of that before

#

should have been on the wiki tbh

merry python
#

It was probably on the old wiki....

#

like, the old old one

mild veldt
#

i see someone typing >->

carmine wasp
#

You just append cookingTime to the end, so

onEvent('recipes', event => {
    event.blasting('mekanism:steel_ingot', 'minecraft:iron_ingot').cookingTime(300)
})
mild veldt
merry python
#

Then append .id() after .cookingtime()

#

like .cookingTime(300).id('myId')

mild veldt
#

ill see

#

it worked!

#

well, that's all i need then!

#

thank you both!

#

i wish you both to have a very great day!