I have Farmer's Delight, Some Assembly Required, and Destroy addon for Create mod installed. There are two recipes of cutting onion on FD's cutting board, one gives you sliced onion from Some Assembly Required, and the other one gives you crying effect from Destroy. The game prioritize the recipe from Destroy mod. So, I tried to disable the Destroy recipe and only keep the sliced onion recipe. This is the script I made at first.
event.remove({ id: 'destroy:compat/farmersdelight/cutting/onion'} )
event.replaceInput(
{ type: 'farmersdelight:cutting', id: 'some_assembly_required:cutting/farmersdelight/sliced_onion', input: '#forge:onion' },
'#forge:onion',
'farmersdelight:onion'
)
event.replaceInput(
{ type: 'farmersdelight:cutting', id: 'some_assembly_required:cutting/create/sliced_onion', input: '#forge:onion' },
'#forge:onion',
'farmersdelight:onion'
)
})```
This script kinda worked in a way that the player will both cry and getting sliced onion at the same time, but for some reason it introduced a bug where you can slice a sliced onion to make another sliced onion, practically duping the item. So, I changed the script to this one.
```ServerEvents.recipes(event => {
event.remove({ id: 'destroy:compat/farmersdelight/cutting/onion' })
event.remove({ id: 'some_assembly_required:cutting/create/sliced_onion' })
event.custom({
type: 'farmersdelight:cutting',
ingredients: [
{ item: 'farmersdelight:onion' }
],
tool: { tag: 'forge:tools/knives' },
result: [
{ item: 'some_assembly_required:sliced_onions' }
]
})
})```
This script however doesn't work at all. No errors reported, but the recipes stayed the same as if the script wasn't there to begin with. Is there any way to fix it? Thank you.