#(And I'm back) Modifying item recipes on a specific tag
53 messages · Page 1 of 1 (latest)
@charred flume Would you know how to do this too?
Off a block tag? Not an item tag?
you want to change the upper to the latter, yes?
I want the upgrades and machines that use RF coils to still use RF coils. but the Dynamos to use integrated mechanisms
you could use event.replaceInput({ input: itemToSearchForAsInput }, itemToChange, itemsToOutPut))
I treid that but it changed the other recipes too
like, ['#forge:cogs', 'example:item']
Yeah I used a tag and it did not work
does the item you want have that tag?
I'd really like an item and a tag to make the example
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
yes they have the item tag of thermal:dynamos
gimmie 5 seconds i'm writing it
alright
if i'm understanding this correctly (correct me if not) you're using the 'tags' searcher wrong. you should use 'output' instead
it should?
tags is not a correct filter afaik
because you want to modify all recipes that have a dynamo as an output
yes
so use output instead
paste the code
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
missed an # in rf_coil
its still event.replaceInput
do you want to replace an inpout or output
input
so use .replaceInput, that's what it's for 
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
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')})
Ticket closed!
( I really shouldn't have pinged that other guy. oh well )
sending a message reopens a ticket fyi
I suggest deleting the message, yes
that won't change anything
alright then see you
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.
