diff --git a/src/generated/resources/assets/gtceu/lang/en_ud.json b/src/generated/resources/assets/gtceu/lang/en_ud.json index 842605949e..085a944a79 100644 --- a/src/generated/resources/assets/gtceu/lang/en_ud.json +++ b/src/generated/resources/assets/gtceu/lang/en_ud.json @@ -2301,6 +2301,7 @@ "config.gtceu.option.nerfWoodCrafting": "buıʇɟɐɹƆpooMɟɹǝu", "config.gtceu.option.orderedAssemblyLineFluids": "spınןℲǝuıꞀʎןqɯǝssⱯpǝɹǝpɹo", "config.gtceu.option.orderedAssemblyLineItems": "sɯǝʇIǝuıꞀʎןqɯǝssⱯpǝɹǝpɹo", + "config.gtceu.option.oreFortuneDrops": "sdoɹᗡǝunʇɹoℲǝɹo", "config.gtceu.option.oreGenerationChunkCacheSize": "ǝzıSǝɥɔɐƆʞunɥƆuoıʇɐɹǝuǝ⅁ǝɹo", "config.gtceu.option.oreIndicatorChunkCacheSize": "ǝzıSǝɥɔɐƆʞunɥƆɹoʇɐɔıpuIǝɹo", "config.gtceu.option.oreVeinGridSize": "ǝzıSpıɹ⅁uıǝΛǝɹo", diff --git a/src/generated/resources/assets/gtceu/lang/en_us.json b/src/generated/resources/assets/gtceu/lang/en_us.json index c0229b1aa0..710e6cc329 100644 --- a/src/generated/resources/assets/gtceu/lang/en_us.json +++ b/src/generated/resources/assets/gtceu/lang/en_us.json @@ -2301,6 +2301,7 @@ "config.gtceu.option.nerfWoodCrafting": "nerfWoodCrafting", "config.gtceu.option.orderedAssemblyLineFluids": "orderedAssemblyLineFluids", "config.gtceu.option.orderedAssemblyLineItems": "orderedAssemblyLineItems", + "config.gtceu.option.oreFortuneDrops": "oreFortuneDrops", "config.gtceu.option.oreGenerationChunkCacheSize": "oreGenerationChunkCacheSize", "config.gtceu.option.oreIndicatorChunkCacheSize": "oreIndicatorChunkCacheSize", "config.gtceu.option.oreVeinGridSize": "oreVeinGridSize", diff --git a/src/main/java/com/gregtechceu/gtceu/config/ConfigHolder.java b/src/main/java/com/gregtechceu/gtceu/config/ConfigHolder.java index 5f469a6942..017a0c0b83 100644 --- a/src/main/java/com/gregtechceu/gtceu/config/ConfigHolder.java +++ b/src/main/java/com/gregtechceu/gtceu/config/ConfigHolder.java @@ -553,6 +553,9 @@ public static class NanoSaber { public static class GameplayConfigs { + @Configurable + @Configurable.Comment({ "Enable fortune for ore drops", "Default: false" }) + public boolean oreFortuneDrops = false; @Configurable @Configurable.Comment({ "Enable hazardous materials", "Default: true" }) public boolean hazardsEnabled = true; diff --git a/src/main/java/com/gregtechceu/gtceu/core/MixinHelpers.java b/src/main/java/com/gregtechceu/gtceu/core/MixinHelpers.java index 2072bda138..40422ecb48 100644 --- a/src/main/java/com/gregtechceu/gtceu/core/MixinHelpers.java +++ b/src/main/java/com/gregtechceu/gtceu/core/MixinHelpers.java @@ -213,8 +213,11 @@ public static void generateGTDynamicLoot(Map lootTa LootItem.lootTableItem(dropItem.getItem()) .apply(SetItemCountFunction .setCount(ConstantValue.exactly(oreMultiplier))))); - // .apply(ApplyBonusCount.addOreBonusCount(Enchantments.BLOCK_FORTUNE)))); //disable fortune for - // balance reasons. (for now, until we can think of a better solution.) + // disable fortune by default for balance reasons. + // (for now, until we can think of a better solution.) + if (ConfigHolder.INSTANCE.gameplay.oreFortuneDrops) { + builder.apply(ApplyBonusCount.addOreBonusCount(Enchantments.BLOCK_FORTUNE)); + } Supplier outputDustMat = type.material(); LootPool.Builder pool = LootPool.lootPool();