This commit is contained in:
Shiroyasha 2025-09-14 21:22:24 +03:00
commit a956daf8e2
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
2351 changed files with 163047 additions and 0 deletions

View file

@ -0,0 +1,46 @@
// priority: -10
/**
* Removes all tags from objects on the nukelists and deletes all recipes & uses for them.
*
* Also does the same for items matching the Unification Patterns.
*/
ServerEvents.tags("item", event => {
event.removeAllTagsFrom(global.itemNukeList)
// Remove tags from items matching the unification patterns.
// For definitions, see KubeJS/startup_scripts/unificationPatterns.js
event.removeAllTagsFrom(global.unificationPattern)
event.removeAllTagsFrom(global.nuclearcraftFuelPattern)
event.removeAllTagsFrom(global.nuclearcraftIsotopePattern)
})
ServerEvents.tags("fluid", event => {
event.removeAllTagsFrom(global.fluidNukeList)
})
ServerEvents.recipes(event => {
let ignoreTypes = [
{ type: "nuclearcraft:fission_reactor_controller" },
{ type: "nuclearcraft:isotope_separator" },
{ type: "nuclearcraft:fuel_reprocessor" },
{ type: "minecraft:crafting" },
{ type: "minecraft:smelting" }
];
global.itemNukeList.forEach(item => {
event.remove([{ output: item }, { input: item }])
})
global.fluidNukeList.forEach(fluid => {
event.remove([
{not: ignoreTypes, output: fluid},
{not: ignoreTypes, input: fluid}
])
})
// Remove recipes that use items matching the unification patterns.
// For definitions, see KubeJS/startup_scripts/unificationPatterns.js
event.remove([{ output: global.unificationPattern }, { input: global.unificationPattern }])
event.remove([{ output: global.nuclearcraftFuelPattern }, { input: global.nuclearcraftFuelPattern }])
event.remove([{ output: global.nuclearcraftIsotopePattern }, { input: global.nuclearcraftIsotopePattern }])
})