improve codestyle

This commit is contained in:
SpeeeDCraft 2023-10-27 08:26:25 +07:00
parent 1526ffcf07
commit 96a4ae16d3
6 changed files with 119 additions and 97 deletions

View file

@ -1,27 +1,14 @@
// priority: 0
const stoneTypesToHide = [
"sand",
"red_sand",
"gravel",
"ore",
"deepslate",
"basalt",
"endstone",
"netherrack",
"andesite",
"diorite",
"granite",
"tuff"
]
REIEvents.hide('item', event => {
const hideGTStuff = (event) => {
// Hide unused GT ores
GTRegistries.MATERIALS.forEach(material => {
global.stoneTypesToHide.forEach(stoneTypeName => {
event.hide(`#forge:ores/${stoneTypeName}/${material}`)
})
})
})
}
const groupGTStuff = (event) => {
event.groupItemsByTag('tfg:rei_groups/ores', 'All Ores', 'forge:ores')
}