1
0
mirror of https://git.fellies.tech/minecraft/fellies.git synced 2021-02-13 10:18:48 +00:00
Fellies/kubejs[e6]/client_scripts/item_modifiers/jei_hide_items.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-01-31 15:23:02 +00:00
events.listen('jei.hide.items', (event) => {
materialsToUnify.forEach((material) => {
if (material == 'iesnium' || material == 'graphite' || material == 'hop_graphite') {
return;
}
itemsToHide.push(
'occultism:' + material + '_ingot',
'occultism:' + material + '_ore',
'occultism:' + material + '_dust',
'occultism:' + material + '_nugget',
'occultism:' + material + '_block',
'immersiveengineering:ingot_' + material,
'immersiveengineering:dust_' + material,
'immersiveengineering:nugget_' + material,
'mekanism:nugget_' + material,
'mekanism:dust_' + material,
'mekanism:ingot_' + material,
'mekanism:block_' + material,
'eidolon:ingot_' + material,
'eidolon:nugget_' + material,
'eidolon:block_' + material
);
});
itemsToHide.forEach((disabledItem) => {
if (!item.of(disabledItem).isEmpty()) {
event.hide(disabledItem);
}
});
disabledItems.forEach((disabledItem) => {
if (!item.of(disabledItem).isEmpty()) {
event.hide(disabledItem);
}
});
colors.forEach((color) => {
event.hide('/refinedstorage:' + color + '\\w/');
});
regexHide.forEach((regexExpression) => {
event.hide(regexExpression);
});
});