#trying to get multiple recipes for 1 item while removing the original

35 messages · Page 1 of 1 (latest)

winter loom
#

I am trying to change the plaster recipe from first aid, but idk why it isnt working. Any idea why?

//onEvent('recipes', event => {
ServerEvents.recipes(event => {
//Remove by recipe ID
[
'minecraft:golden_apple'

  'firstaid:plaster'
].forEach((recipeID) => event.remove({id: recipeID}));

})
ServerEvents.recipes(event => {
//Add recipe
event.shaped('firstaid:plaster', [
' A',
'A '
],{
A: 'minecraft:wool',
})

})

gloomy echoBOT
#

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

wraith horizon
#

where are you placing the script? what code editor are you using?

#

i think i see some errors

#

can't tell though because the text formatting is messed up

wraith horizon
#

i didn't ask for you to paste the code again

#

i asked what editor are you using and where are you placing the script

winter loom
#

Vscode and server_scripts

wraith horizon
#

okay

#

do you see any red underlines on any part of the code

winter loom
#

I saw yes

wraith horizon
#

because i can spot an extra set of brackets at the end

winter loom
#

I can’t

#

//onEvent('recipes', event => {
  ServerEvents.recipes(event => {
    //Remove by recipe ID
    [
      'minecraft:golden_apple'

      'firstaid:plaster'
    ].forEach((recipeID) => event.remove({id: recipeID}));

  })
  ServerEvents.recipes(event => {
    //Add recipe
    event.shaped('firstaid:plaster', [
    ' A',
    'A '
    ],{
    A: 'minecraft:wool',
    



})
#

So would this work?

#

squoshi?

winter loom
#

Damm

spice windBOT
winter loom
#

but i cant find any documentation on how to make recipes using item tags

wraith horizon
#

oh i see the issue lol, idk how i missed that

#

you're missing a # before the wool tag

#

otherwise it'd try to recognize it as an individual item

winter loom
#

yay it worked, now to remove the OG recipe

#

yay

#

thanks a lot

wraith horizon
#

sorry it took so long for me to respond, got caught up in other stuff lol

winter loom
#

Np

#

You’re only human

winter loom
#

You’re allowed to falter and have a life aside from answering dumbass questions

#

now let me get my notebook and see what i planned next

#

found it

#

How does one change the fishing loot pool…

#

maybe another day, and another thread