#How to remove singularities recipes from avaritia

15 messages · Page 1 of 1 (latest)

haughty seal
#

I'm trying to add new recipes for singularities, but the given code doesn't remove the original recipes. I already tried:

ServerEvents.recipes(event => {
    event.remove({ output: 'avaritia:singularity' })
})

Trying this for other recipes works, as well adding ones, like:

ServerEvents.recipes(event => {
    event.remove({ output: 'avaritia:infinity_sword' })
})

ServerEvents.recipes(
    event => {
        event.custom({
            type: 'avaritia:shaped_extreme_craft',
            pattern: [
                "       II",
                "      III",
                "     III ",
                "    III  ",
                " M III   ",
                "  MCI    ",
                "  NM     ",
                " N  M    ",
                "X        "
            ],
            key: {
                M: [
                    {item: 'avaritia:crystal_matrix_ingot'}
                ],
                C: [
                    {item: 'avaritia:infinity_catalyst'}
                ],
                I: [
                    {item: 'avaritia:infinity_ingot'}
                ],
                N: [
                    {item: 'avaritia:neutron_ingot'}
                ],
                X: [
                    {item: 'mekanism:meka_tool'}
                ]
            },
            result: {item: 'avaritia:infinity_sword'}
        })
    }
)
dense summitBOT
#

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

void cradle
#

output and input filters for recipe removal require the mod kubejs to know which keys correspond with the in and output of the recipe. As there's no Kubejs Avaritia addon you will have to remove by id instead

modest portalBOT
#

To find a recipe's ID, turn on advanced tooltips (F3 + H) then hover over the RECIPE OUTPUT in JEI, or the exclamation mark in REI.
You can then use this in any recipe filter:
{id: 'recipe ID here'}
You can use this, for example, to remove specific recipes:
event.remove({id: 'recipe ID here'})

haughty seal
# void cradle output and input filters for recipe removal require the mod kubejs to know which...
ServerEvents.recipes(event => {
    event.remove({ output: 'avaritia:infinity_sword' })
    event.remove({ output: 'avaritia:infinity_pickaxe' })
    event.remove({ output: 'avaritia:infinity_axe' })
    event.remove({ output: 'avaritia:infinity_shovel' })
    event.remove({ output: 'avaritia:infinity_hoe' })
    event.remove({ output: 'avaritia:infinity_bow' })
    event.remove({ output: 'avaritia:infinity_helmet' })
    event.remove({ output: 'avaritia:infinity_chestplate' })
    event.remove({ output: 'avaritia:infinity_pants' })
    event.remove({ output: 'avaritia:infinity_boots' })
    event.remove({ id: 'avaritia:copper_singularity' })
})

It also didnt work

haughty seal
void cradle
#

ah it seems like they add those recipes through java code, that makes it more difficult to remove

mossy charm
#

Would making a json at that path overwrite it?

void cradle
#

probably not

#

2 recipes with the same id would probably just exist

#

I just saw in code that a Singularity item has a recipeDisabled field. Can you make sure there's no config option to change this

#

if there isn't this should work:

const $ModSingularities = Java.loadClass("committee.nova.mods.avaritia.init.registry.ModSingularities")

$ModSingularities.COPPER.setRecipeDisabled(true)

The event should probably be StartupEvents.postInit though you would have to test that

haughty seal
void cradle
modest portalBOT
#

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 create a new post for unrelated issues.