Skip to content

Commit

Permalink
Add option to disable bountiful stones or copper ore/ingot without di…
Browse files Browse the repository at this point in the history
…sabling subtypes
  • Loading branch information
Roadhog360 committed Jul 26, 2024
1 parent 492cfcd commit 2e65bb3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ganymedes01/etfuturum/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import net.minecraft.item.ItemStack;

public enum ModBlocks {
STONE(ConfigBlocksItems.enableStones, new BlockBountifulStone()),
STONE(ConfigBlocksItems.enableStones && !ConfigModCompat.disableBaseBountifulStonesOnly, new BlockBountifulStone()),
PRISMARINE_BLOCK(ConfigBlocksItems.enablePrismarine, new BaseSubtypesBlock(Material.rock, "prismarine", "prismarine_bricks", "dark_prismarine")
.setHardness(1.5F).setResistance(10.0F)),
SEA_LANTERN(ConfigBlocksItems.enablePrismarine, new BlockSeaLantern()),
Expand Down Expand Up @@ -69,7 +69,7 @@ public enum ModBlocks {
.setMapColorBaseBlock(Blocks.wool).setHardness(1.8F).setResistance(1.8F),
BaseItemBlock.class),
CONCRETE_POWDER(ConfigBlocksItems.enableConcrete, new BlockConcretePowder()),
COPPER_ORE(ConfigBlocksItems.enableCopper, new BlockCopperOre()),
COPPER_ORE(ConfigBlocksItems.enableCopper && !ConfigModCompat.disableCopperOreAndIngotOnly, new BlockCopperOre()),
DEEPSLATE_COPPER_ORE((ConfigBlocksItems.enableCopper || ConfigModCompat.moddedDeepslateOres) && ConfigBlocksItems.enableDeepslate && ConfigBlocksItems.enableDeepslateOres, new BlockDeepslateCopperOre()),
CORNFLOWER(ConfigBlocksItems.enableCornflower, new BaseFlower().setNames("cornflower")),
LILY_OF_THE_VALLEY(ConfigBlocksItems.enableLilyOfTheValley, new BaseFlower().setNames("lily_of_the_valley")),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ganymedes01/etfuturum/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public enum ModItems {
NETHERITE_SWORD(ConfigBlocksItems.enableNetherite, new ItemEFRSword(ModMaterials.NETHERITE_TOOL, ConfigBlocksItems.netheriteSwordDurability)),
TOTEM_OF_UNDYING(ConfigBlocksItems.enableTotemUndying, new BaseItem("totem_of_undying").setMaxStackSize(1)),
DYE(ConfigBlocksItems.enableNewDyes, new BaseSubtypesItem("white_dye", "blue_dye", "brown_dye", "black_dye").setNames("dye")),
COPPER_INGOT(ConfigBlocksItems.enableCopper, new BaseItem("copper_ingot")),
COPPER_INGOT(ConfigBlocksItems.enableCopper && !ConfigModCompat.disableCopperOreAndIngotOnly, new BaseItem("copper_ingot")),
SUSPICIOUS_STEW(ConfigBlocksItems.enableSuspiciousStew, new ItemSuspiciousStew()),
SWEET_BERRIES(ConfigBlocksItems.enableSweetBerryBushes, new ItemSweetBerries()),
SHULKER_SHELL(ConfigBlocksItems.enableShulkerBoxes, new BaseItem("shulker_shell")),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class ConfigModCompat extends ConfigBase {
public static boolean moddedDeepslateOres;
public static List<String> moddedDeepslateOresBlacklist;

public static boolean disableBaseBountifulStonesOnly;
public static boolean disableCopperOreAndIngotOnly;

static final String catMisc = "misc";

public ConfigModCompat(File file) {
Expand All @@ -39,6 +42,8 @@ protected void syncConfigOptions() {
moddedDeepslateOres = getBoolean("moddedDeepslateOres", catMisc, true, "Deepslate ores for modded ores. Adds a set of \"general\" deepslate ores for common metals like \"oreAluminium\", \"oreTin\", etc, as well as explicit support for numerous mods.");
moddedDeepslateOresBlacklist = Lists.newArrayList(getStringList("moddedDeepslateOresBlacklist", catMisc, new String[0], "List of modded deepslate ores to disable. Add a ModID or ore dictionary tag. For example adding \"oreTin\" disables deepslate tin, and adding \"SimpleOres\" would disable deepslate adamantium ore. CaSe-SeNsItIvE!" +
"\nEach entry is separated by a new line. This only disables deepslate ores added from Et Futurum's end and will not affect deepslate ores from other mods."));
System.out.println();

disableBaseBountifulStonesOnly = getBoolean("disableBaseBountifulStonesOnly", catMisc, true, "Disables just the andesite, granite, and diorite full blocks, but leaves their stairs and slabs, etc enabled.\nUseful if you have mods like Chisel or Botania which feature these same stones but not the stairs and other variants.");
disableCopperOreAndIngotOnly = getBoolean("disableCopperOreAndIngotOnly", catMisc, true, "Disables copper ingots and ores, but leaves the blocks and other stuff.\nUseful if you prefer another mod's copper, but want to use the oxidizing copper building blocks.");
}
}

0 comments on commit 2e65bb3

Please sign in to comment.