disable emi + ore work
This commit is contained in:
parent
f455a16caf
commit
3bfcc9187b
13 changed files with 133 additions and 12 deletions
20
kubejs/server_scripts/gregtech/loot.js
Normal file
20
kubejs/server_scripts/gregtech/loot.js
Normal 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)
|
||||
]);
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue