1
0
mirror of https://git.fellies.tech/minecraft/fellies.git synced 2021-02-13 10:18:48 +00:00

Diff KubeJS

This commit is contained in:
2021-01-28 21:59:34 +01:00
parent 5b5f5f5587
commit 1133fc1c7c
161 changed files with 8197 additions and 15 deletions

View File

@ -0,0 +1,73 @@
const disabledItems = [
'bloodmagic:sand_netherite',
'bloodmagic:gravel_netherite_scrap',
'bloodmagic:fragment_netherite_scrap',
'quark:pipe',
'quark:potato_crate',
'quark:beetroot_crate',
'quark:carrot_crate',
'thermal:beetroot_block',
'thermal:carrot_block',
'thermal:potato_block',
'thermal:sugar_cane_block'
];
const materialsToUnify = [
'iron',
'gold',
'copper',
'silver',
'zinc',
'brass',
'lead',
'tin',
'compressed_iron',
'nickel',
'aluminum',
'uranium',
'bronze',
'electrum',
'constantan',
'steel',
'osmium',
'diamond',
'lapis',
'emerald',
'quartz',
'coal',
'charcoal',
'obsidian',
'ender',
'fluix',
'saltpeter',
'fluorite',
'invar',
'signalum',
'lumium',
'enderium',
'sulfur',
'cinnabar',
'niter',
'potassium_nitrate',
'saltpeter',
'apatite',
'bitumen',
'redstone',
'glowstone',
'arcane',
'mana',
'certus_quartz',
'charged_certus_quartz',
'iesnium',
'dimensional',
'cloggrum',
'froststeel',
'regalium',
'utherium',
'coal_coke',
'starmetal'
];
global.materialsToUnify = materialsToUnify;
global.disabledItems = disabledItems;

View File

@ -0,0 +1,24 @@
events.listen('jei.information', (event) => {
var data = {
items: [
{
item: 'astralsorcery:stardust',
description: [
'Obtained by left-clicking a Starmetal Ingot in-world. See the Astral Tome for more information.'
]
}
]
};
data.items.forEach(function (item) {
event.add(item.item, item.description);
});
global.disabledItems.forEach((item) => {
event.add(
item,
"This item has been disabled, if you managed to obtain it please report it on Enigmatica 6's issue tracker: https://github.com/NillerMedDild/Enigmatica6/issues"
);
});
});

View File

@ -0,0 +1,99 @@
events.listen('jei.hide.items', (event) => {
global.materialsToUnify.forEach((material) => {
if (material == 'iesnium' || material == 'graphite' || material == 'hop_graphite') {
return;
}
itemsToHide.push(
'immersiveengineering:ingot_' + material,
'immersiveengineering:dust_' + material,
'immersiveengineering:nugget_' + material,
'mekanism:nugget_' + material,
'mekanism:dust_' + material,
'mekanism:ingot_' + material,
'mekanism:block_' + material
);
});
var itemsToHide = [
'ars_nouveau:arcane_brick',
'ars_nouveau:arcane_ore',
'bloodmagic:coalsand',
'bloodmagic:saltpeter',
'bloodmagic:sulfur',
'create:powdered_obsidian',
'create:honey_bucket',
'immersiveengineering:dust_saltpeter',
'immersiveengineering:dust_wood',
'morevanillalib:obsidian_shard',
'powah:uraninite_ore',
'powah:uraninite_ore_dense',
'powah:uraninite_ore_poor',
'powah:uraninite_raw',
'powah:uraninite_raw_dense',
'powah:uraninite_raw_poor',
'quark:biotite',
'quark:biotite_ore',
'quark:tallow',
'thermal:coal_coke',
'thermal:coal_coke_block',
'thermal:ender_pearl_dust',
'thermal:sawdust'
];
itemsToHide.forEach((disabledItem) => {
if (!item.of(disabledItem).isEmpty()) {
event.hide(disabledItem);
}
});
global.disabledItems.forEach((disabledItem) => {
if (!item.of(disabledItem).isEmpty()) {
event.hide(disabledItem);
}
});
var regexHide = [
/emendatusenigmatica:\w+_andesite_ore/,
/emendatusenigmatica:\w+_gabbro_ore/,
/emendatusenigmatica:\w+_c_limestone_ore/,
/emendatusenigmatica:\w+_scoria_ore/,
/emendatusenigmatica:\w+_weathered_limestone_ore/,
/emendatusenigmatica:\w+_jasper_ore/,
/emendatusenigmatica:\w+_marble_ore/,
/emendatusenigmatica:\w+_slate_ore/,
/emendatusenigmatica:\w+_netherrack_ore/,
/emendatusenigmatica:\w+_blackstone_ore/,
/emendatusenigmatica:\w+_end_stone_ore/,
/emendatusenigmatica:\w+_mossy_stone_ore/,
/emendatusenigmatica:\w+_granite_ore/,
/emendatusenigmatica:\w+_diorite_ore/,
/emendatusenigmatica:\w+_sand_ore/,
/emendatusenigmatica:\w+_gravel_ore/,
/titanium:\w+_gear/,
/thermal:\w+_dust/,
/thermal:\w+_gear/,
/thermal:\w+_ingot/,
/thermal:\w+_nugget/,
/thermal:\w+_ore/,
/thermal:\w+_plate/,
/mekanism:\w+_ore/,
/minecraft:\w+_ore/,
/immersiveengineering:plate_/,
/immersiveengineering:stick_/,
/create:\w+_sheet/,
/create:\w+_nugget/,
/create:\w+_ingot/,
/create:\w+_ore/,
/emendatusenigmatica:\w+certus/,
/emendatusenigmatica:\w+fluix/,
/rftoolsbase:dimensionalshard/
];
regexHide.forEach((regexExpression) => {
event.hide(regexExpression);
});
});
onEvent('jei.hide.fluids', (event) => {
event.hide('cofh_core:honey');
event.hide('create:honey');
});