fixed mining machines, at the expense of hammering ores to get cobble (why would you do that anyway?)

This commit is contained in:
Pyritie 2025-04-21 21:53:20 +01:00
parent b054d59d27
commit 41794b800a

View file

@ -80,16 +80,6 @@ const registerGTCEULoots = (event) => {
.addLoot(STONE_TYPES_TO_COBBLE[stoneType]);
})
if (TFGHelpers.isMaterialRegistrationFinished) {
registerGTCEUMaterialLoots(event);
}
else {
console.log("!!!!!!!! MATERIALS NOT DONE YET !!!!!!!!!")
}
}
function registerGTCEUMaterialLoots(event) {
// Go through all materials
GTMaterialRegistry.getRegisteredMaterials().forEach(material => {
@ -124,17 +114,12 @@ function registerGTCEUMaterialLoots(event) {
event.addBlockLootModifier(rawOreBlock)
.removeLoot(ItemFilter.ALWAYS_TRUE)
.or((or) => {
or.matchMainHand('#minecraft:pickaxes')
.matchMainHand('#forge:tools/hammers')
.matchMainHand('#forge:tools/mining_hammers')
})
.addWeightedLoot([4, 6],
[
richRawOre.withChance(0.2),
normalRawOre.withChance(0.6),
poorRawOre.withChance(0.2)
]);
[
richRawOre.withChance(0.2),
normalRawOre.withChance(0.6),
poorRawOre.withChance(0.2)
]);
// Stone ores
global.ORE_BEARING_STONES.forEach(stoneType => {
@ -154,10 +139,6 @@ function registerGTCEUMaterialLoots(event) {
// break with pickaxe
event.addBlockLootModifier(`gtceu:${stoneType}_${material.getName()}_ore`)
.removeLoot(ItemFilter.ALWAYS_TRUE)
.or((or) => {
or.matchMainHand('#minecraft:pickaxes')
.matchMainHand('#forge:tools/mining_hammers')
})
.addWeightedLoot([
richRawOre.withChance(0.2),
normalRawOre.withChance(0.6),