Avaritia:Reforged

Avaritia:Reforged

45.5k Downloads

[Question / 询问] Is it possible to remove the standard Infinity Catalyst crafting?

Cashoffi opened this issue · 8 comments

commented

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Description / 描述

hello everyone, I understand absolutely nothing about programming, and my attempts have already become even, I would like to know how to remove the standard catalyst crafting.

commented

at the moment, my script looks like this, I'm completely UNSURE if it's correct, those who are fumbling, tell me what needs to be done.

Image

commented

To remove the standard catalyst crafting you need to remove avaritia:infinity_catalyst_eternal and avaritia:infinity_catalyst_craft.
You can't remove directly avaritia:infinity_catalyst.

I'm not sure, but removing avaritia:catalyst directly removes the item (to be confirmed) and therefore crashes the game since crafts depend on this item.

commented

Sorry, I'm not confident in my English so I'm using machine translation.

I found a way to delete Avaritia's InfinityCatalyst recipe, so I'd like to share it.

  1. Set the boolean value of "Internal InfinityCatalyst Craft" in avaritia-common.toml to "false".

  2. Delete the catalyst recipe in kubejs's serverEvents.

e.remove({id: "avaritia:infinity_catalyst_eternal"})
e.remove({id: "avaritia:infinity_catalyst"})

This should probably delete the catalyst recipe.

commented
  1. Set the boolean value of "Internal InfinityCatalyst Craft" in avaritia-common.toml to "false".
  2. Delete the catalyst recipe in kubejs's serverEvents.

i legit cant find Internal InfinityCatalyst Craft inside the .toml

commented

For example in server_scripts into kubejs folder, create remove.js file :

var recipe_to_remove = 
[   
    "avaritia:infinity_catalyst_eternal",
    "avaritia:infinity_catalyst_craft",
]
ServerEvents.recipes(event => {
    recipe_to_remove.forEach(recipe => {
        event.remove({ id: recipe })
    })
})

And in the same folder, if you want to create new pattern for the craft, you could create addcraft.js and put this :

ServerEvents.recipes(event => {
event.custom({
        "type": "avaritia:infinity_catalyst_craft",
        "category": "misc",
        "group": "eternal_singularity",
        "ingredients": [
            {
                "item": "avaritia:crystal_matrix_ingot"
            },
            {
                "item": "avaritia:neutron_ingot"
            },
            {
                "item": "avaritia:cosmic_meatballs"
            },
            {
                "item": "avaritia:ultimate_stew"
            },
            {
                "item": "avaritia:endest_pearl"
            },
            {
                "item": "avaritia:eternal_singularity"
            }
        ]
    }).id("avaritia:infinity_catalyst")
})
commented

WHY is there a goddamn infinity catalyst recipe check. also @AntoineMazoyer this doesnt work for me for some reason. im on 1.20.1, newest Re:Avaritia version and it crashes my game nonetheless

commented

now it crashes EVEN after i removed the recipe deletion script

commented

now it crashes EVEN after i removed the recipe deletion script

Mmmmh it’s to weird. Try to reinstall a new instance with only Re:Avaritia loaded and kubejs.
Does the game still crash?