init
This commit is contained in:
commit
d8d0e9d536
2567 changed files with 167778 additions and 0 deletions
46
kubejs/server_scripts/nukelists.js
Normal file
46
kubejs/server_scripts/nukelists.js
Normal 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 }])
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue