[Question / 询问] Is it possible to remove the standard Infinity Catalyst crafting?
Cashoffi opened this issue · 8 comments
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.
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.
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.
-
Set the boolean value of "Internal InfinityCatalyst Craft" in avaritia-common.toml to "false".
-
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.
- Set the boolean value of "Internal InfinityCatalyst Craft" in avaritia-common.toml to "false".
- Delete the catalyst recipe in kubejs's serverEvents.
i legit cant find Internal InfinityCatalyst Craft inside the .toml
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")
})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
