-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathJEI.js
More file actions
106 lines (87 loc) · 3.99 KB
/
JEI.js
File metadata and controls
106 lines (87 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/**
* Hide items, fluids, and recipes in EMI/JEI.
* "/kjs inventory" and "/kjs hand" are your friends for finding item and fluid IDs.
*
* If you seek to both hide an item/fluid and remove it from all recipes and tags, then look into
* KubeJS/startup_scripts/nukeLists/item.js and KubeJS/startup_scripts/nukeLists/fluid.js
*/
JEIEvents.hideItems(event => {
// Hide excess permutations of AE2 Facades
event.hide("ae2:facade")
event.hide(/^ae2:facade/)
// Hide excess permutations of EnderIO Clear glass, Fused Quartz
event.hide(/^enderio:clear_glass_.*_.*/)
event.hide(/^enderio:fused_quartz_.*_.*/)
// snad
event.hide("snad:soul_snad")
if (!doSnad) {
event.hide(["snad:snad", "snad:red_snad"])
}
// fluxbore
if (!doFluxbore) {
event.hide("thermal:flux_drill")
}
// Simple Compacting Drawers (TEMPORARY UNTIL BUG FIXED)
if (doCompacting) {
event.hide("functionalstorage:simple_compacting_drawer")
event.hide("functionalstorage:framed_simple_compacting_drawer")
}
// Hide GT ores to prevent clutter
GTMaterialRegistry.getRegisteredMaterials().forEach(id => {
event.hide([
`gtceu:granite_${id.name}_ore`,
`gtceu:diorite_${id.name}_ore`,
`gtceu:andesite_${id.name}_ore`,
`gtceu:red_granite_${id.name}_ore`,
`gtceu:marble_${id.name}_ore`,
`gtceu:deepslate_${id.name}_ore`,
`gtceu:tuff_${id.name}_ore`,
`gtceu:sand_${id.name}_ore`,
`gtceu:red_sand_${id.name}_ore`,
`gtceu:gravel_${id.name}_ore`,
`gtceu:basalt_${id.name}_ore`,
`gtceu:blackstone_${id.name}_ore`,
`gtceu:moon_${id.name}_ore`,
`gtceu:venus_${id.name}_ore`,
`gtceu:mercury_${id.name}_ore`,
`gtceu:mars_${id.name}_ore`,
`gtceu:glacio_${id.name}_ore`
])
})
})
JEIEvents.addItems(event => {
// Add example AE2 facade after failing to hide all other facade permutations
event.add(Item.of("ae2:facade", { item: "gtceu:infinity_block" }))
// Iron Jetpacks' Cells are hard to selectively remove due to NBT shenanigans
event.add(Item.of("ironjetpacks:cell", {Id: "ironjetpacks:hardened"}))
event.add(Item.of("ironjetpacks:cell", {Id: "ironjetpacks:reinforced"}))
event.add(Item.of("ironjetpacks:cell", {Id: "ironjetpacks:resonant"}))
// NuclearCraft
event.add(["nuclearcraft:tough_alloy_ingot", "nuclearcraft:hard_carbon_ingot", "nuclearcraft:ferroboron_ingot", "nuclearcraft:rhodochrosite_dust"])
// Thermal
event.add("thermal:nuke_tnt")
})
JEIEvents.hideFluids(event => {
// hiding NuclearCraft Fluids
// get all nc fluids from index
let ncFluids = Fluid.getTypes().filter(id => id.includes("nuclearcraft"))
// list of used fluids to not remove
let ncUsedFluid = ["nuclearcraft:hydrated_gelatin", "nuclearcraft:gelatin", "nuclearcraft:sugar", "nuclearcraft:marshmallow", "nuclearcraft:cocoa_butter", "nuclearcraft:pasteurized_milk", "nuclearcraft:chocolate_liquor", "nuclearcraft:unsweetened_chocolate", "nuclearcraft:dark_chocolate", "nuclearcraft:milk_chocolate", "nuclearcraft:technical_water", "nuclearcraft:high_pressure_steam", "nuclearcraft:exhaust_steam"]
// adds flowing fluid variants to the list so they aren't hidden
ncUsedFluid.forEach(fluid => { ncUsedFluid.push(`${fluid}_flowing`) })
// remove used fluids from the full list
ncFluids = ncFluids.filter((el) => !ncUsedFluid.includes(el))
// loops through the list and hides all the unwanted fluids for nc
ncFluids.forEach(element => {
event.hide(element)
})
// Hide Ad Astra fluids
Fluid.getTypes().filter(id=>id.includes("ad_astra")).forEach(id => event.hide(id))
// Hide Thermal fluids
event.hide("thermal:creosote")
event.hide("cofh_core:experience")
event.hide("thermal:glowstone")
event.hide("thermal:redstone")
// Hide Soph Core fluids
event.hide("sophisticatedcore:xp_still")
})