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')
})
#I use smithing recipes but they dont work with enchanted items, could someone explain how to fix?
39 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
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()
can i have a recipe ID with that?
Should be able to! It'll either go before or after, but unfortunately I'm unsure which
Darn, unfortunate. I'll have to leave that to the support team, works differently for smithing recipes looks like! Sorry love!
well, still, thanks anyway
also, how would i edit the time this takes to process?
onEvent('recipes', event => {
event.blasting('mekanism:steel_ingot', 'minecraft:iron_ingot')
})
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
it doesnt seem to work
also sorry about taking so long, i didnt notice you because i didnt get pinged
just made it not work at all
Hmmm...
Can we see the whole script like that? And what JEI or REI or NEI has when you press U on the ingredient?
oh wait, i thought this was the pickaxe
im a dumbass
lacking sleep completely confused me
No worries. Did it make the boots work?
despite injecting the code in the wrong spot, it works
also, any idea on this?
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.
but still, with the smithing, thank you so much
i would never had thought of that before
should have been on the wiki tbh
i see someone typing >->
You just append cookingTime to the end, so
onEvent('recipes', event => {
event.blasting('mekanism:steel_ingot', 'minecraft:iron_ingot').cookingTime(300)
})
yes but i wish to have an ID attached