disable emi + ore work

This commit is contained in:
SpeeeDCraft 2023-10-24 19:06:13 +07:00
parent f455a16caf
commit 3bfcc9187b
13 changed files with 133 additions and 12 deletions

View file

@ -0,0 +1,20 @@
// priority: 0
const modifyLootGT = (event) => {
global.allTFCStoneTypeNames.forEach(stoneType => {
GTRegistries.MATERIALS.forEach(material => {
if (material.hasProperty($PropertyKey.ORE))
{
const blockName = `gtceu:tfc_${stoneType}_${material}_ore`
event.addBlockLootModifier(blockName)
.removeLoot(Ingredient.all)
.addWeightedLoot([
Item.of(`gtceu:${material}_rich_raw_ore`).withChance(25),
Item.of(`gtceu:${material}_raw_ore`).withChance(50),
Item.of(`gtceu:${material}_poor_raw_ore`).withChance(25)
]);
}
})
})
}