#(And I'm back) Modifying item recipes on a specific tag

53 messages · Page 1 of 1 (latest)

timid sorrelBOT
#

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

wraith gull
#

@charred flume Would you know how to do this too?

craggy schooner
#

Off a block tag? Not an item tag?

wraith gull
#

either works tbh

#

just as only the dynamos use them

craggy schooner
#

you want to change the upper to the latter, yes?

wraith gull
#

I want the upgrades and machines that use RF coils to still use RF coils. but the Dynamos to use integrated mechanisms

craggy schooner
#

you could use event.replaceInput({ input: itemToSearchForAsInput }, itemToChange, itemsToOutPut))

wraith gull
#

I treid that but it changed the other recipes too

craggy schooner
#

like, ['#forge:cogs', 'example:item']

wraith gull
#

Yeah I used a tag and it did not work

craggy schooner
#

I'd really like an item and a tag to make the example

wraith gull
#
event.replaceInput(
  { tags: '#thermal:dynamos' }, // Arg 1: the filter
  'thermal:rf_coil',            // Arg 2: the item to replace
  'create_dd:integrated_mechanism'         // Arg 3: the item to replace it with
  // Note: tagged fluid ingredients do not work on Fabric, but tagged items do.
)
}) ```

this is my code rn
wraith gull
craggy schooner
#

gimmie 5 seconds i'm writing it

wraith gull
#

alright

craggy schooner
wraith gull
#

it should?

gaunt meteor
craggy schooner
#

because you want to modify all recipes that have a dynamo as an output

gaunt meteor
#

so use output instead

wraith gull
#

il try that

#

nope it did not work

#

now its just the default recipe

craggy schooner
#

paste the code

wraith gull
#
event.replaceInput(
  { output: 'thermal:dynamos' }, // Arg 1: the filter
  'thermal:rf_coil',            // Arg 2: the item to replace
  'create_dd:integrated_mechanism'         // Arg 3: the item to replace it with
  // Note: tagged fluid ingredients do not work on Fabric, but tagged items do.
)
})```
#

wait I see the problem

craggy schooner
#

missed an # in rf_coil

wraith gull
#

its still event.replaceInput

wraith gull
#

its an Item not a tag

craggy schooner
#

oh mb

#

nevermind

gaunt meteor
wraith gull
gaunt meteor
#

so use .replaceInput, that's what it's for heh

wraith gull
#

yeah thats what i need

#

basicly I want to replace the RF coils in the dynamos recipes with a dif item but not with replacing the RF coils in other recipes

craggy schooner
#

try this one? it's not any different from yours, but idk
ServerEvents.recipes((event) => { event.replaceInput({ output: '#thermal:dynamos' }, 'thermal:rf_coil', 'create_dd:integrated_mechanism')})

wraith gull
#

huh that worked

#

thanks mate

wraith gull
#

( I really shouldn't have pinged that other guy. oh well )

gaunt meteor
#

sending a message reopens a ticket fyi

craggy schooner
#

I suggest deleting the message, yes

gaunt meteor
#

that won't change anything

wraith gull
#

alright then see you

gaunt meteor
#

they'll still see a ping

#

cya ablobwave

lapis hedgeBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should generally create a new post for unrelated issues.