stylize
This commit is contained in:
parent
768c375745
commit
34c81b6ecd
1 changed files with 16 additions and 7 deletions
|
|
@ -5,13 +5,22 @@ const registerGTCEULoots = (event) => {
|
|||
global.TFC_STONE_TYPES.forEach(stoneType => {
|
||||
GTRegistries.MATERIALS.forEach(material => {
|
||||
if (material.hasProperty(PropertyKey.ORE)) {
|
||||
event.addBlockLootModifier(`gtceu:${stoneType}_${material}_ore`)
|
||||
.removeLoot(Ingredient.all)
|
||||
.addWeightedLoot([
|
||||
ChemicalHelper.get(TFGTagPrefix.richRawOre, material, 1).withChance(0.2),
|
||||
ChemicalHelper.get(TagPrefix.rawOre, material, 1).withChance(0.6),
|
||||
ChemicalHelper.get(TFGTagPrefix.poorRawOre, material, 1).withChance(0.2)
|
||||
]);
|
||||
|
||||
let richRawOre = ChemicalHelper.get(TFGTagPrefix.richRawOre, material, 1)
|
||||
let normalRawOre = ChemicalHelper.get(TagPrefix.rawOre, material, 1)
|
||||
let poorRawOre = ChemicalHelper.get(TFGTagPrefix.poorRawOre, material, 1).withChance(0.2)
|
||||
|
||||
if (!richRawOre.isEmpty() && !normalRawOre.isEmpty() && !poorRawOre.isEmpty()) {
|
||||
|
||||
event.addBlockLootModifier(`gtceu:${stoneType}_${material}_ore`)
|
||||
.removeLoot(Ingredient.all)
|
||||
.addWeightedLoot([
|
||||
richRawOre.withChance(0.2),
|
||||
normalRawOre.withChance(0.6),
|
||||
poorRawOre.withChance(0.2)
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue