mirror of
https://git.fellies.tech/minecraft/fellies.git
synced 2021-02-13 10:18:48 +00:00
Updates
This commit is contained in:
@ -10,6 +10,12 @@ events.listen('jei.information', (event) => {
|
||||
description: [
|
||||
'Obtained by left-clicking a Starmetal Ingot in-world. See the Astral Tome for more information.'
|
||||
]
|
||||
},
|
||||
{
|
||||
item: 'buildinggadgets:construction_paste',
|
||||
description: [
|
||||
'Obtained by breaking a Dense Construction Block with a Pickaxe.'
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
@ -18,10 +24,28 @@ events.listen('jei.information', (event) => {
|
||||
event.add(item.item, item.description);
|
||||
});
|
||||
|
||||
global.disabledItems.forEach((item) => {
|
||||
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"
|
||||
);
|
||||
});
|
||||
|
||||
refinedStorageItems.forEach((item) => {
|
||||
event.add(`refinedstorage:${item}`, 'Can be dyed through crafting or by right clicking it with dye in-world.');
|
||||
});
|
||||
|
||||
generatableCobblestone.forEach((cobblestone) => {
|
||||
event.add(
|
||||
cobblestone,
|
||||
'Can be generated in a Vanilla Cobblestone Generator. The block below where the Cobblestone generates needs to be a Block of Iron.'
|
||||
);
|
||||
});
|
||||
|
||||
generatableStone.forEach((stone) => {
|
||||
event.add(
|
||||
stone,
|
||||
'Can be generated in a Vanilla Stone Generator. The block below where the Stone generates needs to be a Block of Diamond.'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -1,134 +1 @@
|
||||
events.listen('jei.hide.items', (event) => {
|
||||
global.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
|
||||
);
|
||||
});
|
||||
|
||||
var itemsToHide = [
|
||||
'ars_nouveau:arcane_brick',
|
||||
'ars_nouveau:arcane_ore',
|
||||
'bloodmagic:coalsand',
|
||||
'bloodmagic:saltpeter',
|
||||
'bloodmagic:sulfur',
|
||||
'create:powdered_obsidian',
|
||||
'create:honey_bucket',
|
||||
'eidolon:tallow',
|
||||
'immersiveengineering:dust_saltpeter',
|
||||
'immersiveengineering:dust_wood',
|
||||
'mapperbase:bitumen_ore',
|
||||
'mapperbase:iron_plate',
|
||||
'mapperbase:iron_rod',
|
||||
'mapperbase:raw_bitumen',
|
||||
'morevanillalib:obsidian_shard',
|
||||
'pedestals:dustflour',
|
||||
'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',
|
||||
'supplementaries:pedestal',
|
||||
'supplementaries:crank',
|
||||
'supplementaries:cog_block',
|
||||
'supplementaries:redstone_illuminator',
|
||||
'supplementaries:turn_table',
|
||||
'supplementaries:jar',
|
||||
'supplementaries:jar_tinted',
|
||||
'supplementaries:firefly_jar',
|
||||
'supplementaries:stone_lamp',
|
||||
'supplementaries:sack',
|
||||
'supplementaries:blackboard'
|
||||
];
|
||||
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/,
|
||||
/tmechworks:\w+_ingot/,
|
||||
/tmechworks:\w+_nugget/,
|
||||
/tmechworks:\w+_ore/,
|
||||
/pedestals:dust/,
|
||||
/mekanism:\w+_ore/,
|
||||
|
||||
/minecraft:\w+_ore/,
|
||||
|
||||
/immersiveengineering:plate_/,
|
||||
/immersiveengineering:stick_/,
|
||||
/create:\w+_sheet/,
|
||||
/create:\w+_nugget/,
|
||||
/create:\w+_ingot/,
|
||||
/create:\w+_ore/,
|
||||
/immersiveposts:stick_/,
|
||||
/buildersaddition:\w+_rod/,
|
||||
/eidolon:\w+_ingot/,
|
||||
/eidolon:\w+_nugget/,
|
||||
/eidolon:\w+_ore/,
|
||||
/byg:pendorite/,
|
||||
/byg:ametrine/,
|
||||
/emendatusenigmatica:\w+certus/,
|
||||
/emendatusenigmatica:\w+fluix/,
|
||||
/mapperbase:steel/,
|
||||
/rftoolsbase:dimensionalshard/
|
||||
];
|
||||
regexHide.forEach((regexExpression) => {
|
||||
event.hide(regexExpression);
|
||||
});
|
||||
});
|
||||
|
||||
onEvent('jei.hide.fluids', (event) => {
|
||||
event.hide('cofh_core:honey');
|
||||
event.hide('create:honey');
|
||||
});
|
||||
//TODO: Remove in 0.4.0
|
||||
|
@ -0,0 +1,4 @@
|
||||
onEvent('jei.hide.fluids', (event) => {
|
||||
event.hide('cofh_core:honey');
|
||||
event.hide('create:honey');
|
||||
});
|
44
kubejs[e6]/client_scripts/item_modifiers/jei_hide_items.js
Normal file
44
kubejs[e6]/client_scripts/item_modifiers/jei_hide_items.js
Normal file
@ -0,0 +1,44 @@
|
||||
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);
|
||||
});
|
||||
});
|
@ -1,8 +1,7 @@
|
||||
// events.listen('client.item_tooltip', function (event) {
|
||||
// switch (event.item.id) {
|
||||
// case 'appliedenergistics2:quantum_entangled_singularity':
|
||||
// event.add(
|
||||
// 'To create drop 1 Singularity and 1 Ender Dust (From Applied Energistics) and cause an explosion within range of the items.'
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
onEvent('client.item_tooltip', (event) => {
|
||||
refinedStorageItems.forEach((item) => {
|
||||
if (event.item.id == 'refinedstorage:' + item) {
|
||||
event.add('Can be dyed through crafting or by right clicking it with dye in-world.');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user