-
-
Save Aaur1s/4c9fee20fff6463f68c6bff62e634050 to your computer and use it in GitHub Desktop.
Config related files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
#Energy needed for mining one block | |
EnergyPerOperation = 10000 | |
[resources] | |
[resources.Overworld] | |
[resources.Overworld.default] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:badlands", "minecraft:eroded_badlands", "minecraft:wooded_badlands" | |
[resources.Overworld.badlands] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:red_sand", "70", "60"], ["minecraft:red_sand", "70", "60"], ["minecraft:red_sand", "70", "60"], ["minecraft:red_sandstone", "65", "60"], ["minecraft:red_sandstone", "65", "60"], ["minecraft:red_sandstone", "65", "60"], ["minecraft:orange_terracotta", "80", "63"], ["minecraft:orange_terracotta", "80", "63"], ["minecraft:orange_terracotta", "80", "63"], ["minecraft:red_terracotta", "72", "60"], ["minecraft:red_terracotta", "72", "60"], ["minecraft:red_terracotta", "72", "60"], ["minecraft:light_gray_terracotta", "69", "57"], ["minecraft:light_gray_terracotta", "69", "57"], ["minecraft:light_gray_terracotta", "69", "57"], ["minecraft:white_terracotta", "68", "58"], ["minecraft:white_terracotta", "68", "58"], ["minecraft:white_terracotta", "68", "58"], ["minecraft:orange_terracotta", "66", "50"], ["minecraft:orange_terracotta", "66", "50"], ["minecraft:orange_terracotta", "66", "50"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"], ["minecraft:gold_ore", "256", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:desert", "minecraft:beach" | |
[resources.Overworld.desert] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:sand", "80", "50"], ["minecraft:sand", "80", "50"], ["minecraft:sand", "80", "50"], ["minecraft:sandstone", "70", "60"], ["minecraft:sandstone", "70", "60"], ["minecraft:sandstone", "70", "60"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:mangrove_swamp" | |
[resources.Overworld.mangrove] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:mud", "80", "50"], ["minecraft:mud", "80", "50"], ["minecraft:mud", "80", "50"], ["minecraft:mud", "80", "50"], ["minecraft:mud", "80", "50"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:mushroom_fields" | |
[resources.Overworld.mushroom] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:mycelium", "80", "50"], ["minecraft:mycelium", "80", "50"], ["minecraft:mycelium", "80", "50"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:lukewarm_ocean", "minecraft:deep_lukewarm_ocean" | |
[resources.Overworld.lukewarm] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:tube_coral_block", "128", "32"], ["minecraft:brain_coral_block", "128", "32"], ["minecraft:bubble_coral_block", "128", "32"], ["minecraft:fire_coral_block", "128", "32"], ["minecraft:horn_coral_block", "128", "32"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"], ["minecraft:tube_coral", "128", "32"], ["minecraft:brain_coral", "128", "32"], ["minecraft:bubble_coral", "128", "32"], ["minecraft:fire_coral", "128", "32"], ["minecraft:horn_coral", "128", "32"], ["minecraft:tube_coral_fan", "128", "32"], ["minecraft:brain_coral_fan", "128", "32"], ["minecraft:bubble_coral_fan", "128", "32"], ["minecraft:fire_coral_fan", "128", "32"], ["minecraft:horn_coral_fan", "128", "32"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:frozen_ocean", "minecraft:deep_frozen_ocean", "minecraft:frozen_river" | |
[resources.Overworld.frozen] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:ice", "128", "64"], ["minecraft:ice", "128", "64"], ["minecraft:ice", "128", "64"], ["minecraft:packed_ice", "128", "64"], ["minecraft:packed_ice", "128", "64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"], ["minecraft:blue_ice", "128", "32"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:ice_spikes", "minecraft:taiga", "minecraft:snowy_beach", "minecraft:snowy_plains", "minecraft:snowy_taiga" | |
[resources.Overworld.snowy] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:snow", "128", "64"], ["minecraft:snow", "128", "64"], ["minecraft:snow", "128", "64"], ["minecraft:snow_block", "128", "64"], ["minecraft:snow_block", "128", "64"], ["minecraft:snow_block", "128", "64"], ["minecraft:ice", "128", "64"], ["minecraft:ice", "128", "64"], ["minecraft:packed_ice", "128", "64"], ["minecraft:packed_ice", "128", "64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"], ["minecraft:blue_ice", "128", "32"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:lush_caves" | |
[resources.Overworld.lushCaves] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:moss_block", "128", "-64"], ["minecraft:clay", "128", "-64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:dripstone_caves" | |
[resources.Overworld.dripstoneCaves] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:dripstone_block", "128", "-64"], ["minecraft:pointed_dripstone", "128", "-64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:deep_dark" | |
[resources.Overworld.deepdarkCaves] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:sculk", "128", "-64"], ["minecraft:sculk", "128", "-64"], ["minecraft:sculk", "128", "-64"], ["minecraft:sculk", "128", "-64"], ["minecraft:sculk", "128", "-64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
#Biomes: "minecraft:meadow", "minecraft:grove", "minecraft:snowy_slopes", "minecraft:jagged_peaks", "minecraft:frozen_peaks", "minecraft:stony_peaks" | |
[resources.Overworld.mountains] | |
CommonResources = [["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:deepslate", "0", "-64"], ["minecraft:grass_block", "320", "128"], ["minecraft:dirt", "320", "-64"], ["minecraft:sand", "320", "128"], ["minecraft:gravel", "320", "-64"], ["minecraft:andesite", "128", "0"], ["minecraft:granite", "128", "0"], ["minecraft:diorite", "128", "0"], ["minecraft:tuff", "16", "-64"], ["minecraft:coal_ore", "320", "5"], ["minecraft:deepslate_coal_ore", "5", "0"], ["minecraft:snow", "128", "64"], ["minecraft:snow", "128", "64"], ["minecraft:snow", "128", "64"], ["minecraft:snow_block", "128", "64"], ["minecraft:snow_block", "128", "64"], ["minecraft:snow_block", "128", "64"]] | |
UncommonResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:copper_ore", "112", "5"], ["minecraft:deepslate_copper_ore", "5", "-16"], ["minecraft:iron_ore", "320", "5"], ["minecraft:deepslate_iron_ore", "5", "-64"], ["mekanism:tin_ore", "94", "5"], ["mekanism:deepslate_tin_ore", "5", "-32"], ["mekanism:lead_ore", "64", "5"], ["mekanism:deepslate_lead_ore", "5", "-24"], ["mekanism:fluorite_ore", "32", "5"], ["mekanism:deepslate_fluorite_ore", "5", "0"]] | |
RareResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:amethyst_cluster", "30", "-64"], ["minecraft:amethyst_block", "30", "-64"], ["minecraft:calcite", "30", "-64"], ["minecraft:smooth_basalt", "30", "-64"], ["minecraft:redstone_ore", "16", "5"], ["minecraft:deepslate_redstone_ore", "5", "-64"], ["minecraft:lapis_ore", "64", "5"], ["minecraft:deepslate_lapis_ore", "5", "-64"], ["mekanism:osmium_ore", "72", "5"], ["mekanism:deepslate_osmium_ore", "5", "-32"], ["mekanism:uranium_ore", "56", "5"], ["mekanism:deepslate_uranium_ore", "5", "-24"], ["minecraft:emerald_ore", "320", "5"], ["minecraft:emerald_ore", "320", "5"], ["minecraft:emerald_ore", "320", "5"], ["minecraft:deepslate_emerald_ore", "5", "-16"], ["minecraft:deepslate_emerald_ore", "5", "-16"]] | |
EpicResources = [["minecraft:stone", "320", "0"], ["minecraft:deepslate", "0", "-64"], ["minecraft:gold_ore", "32", "5"], ["minecraft:deepslate_gold_ore", "5", "-64"], ["minecraft:diamond_ore", "16", "5"], ["minecraft:deepslate_diamond_ore", "5", "-64"]] | |
[resources.Nether] | |
[resources.Nether.default] | |
CommonResources = [["minecraft:netherrack", "256", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:magma_block", "64", "0"], ["minecraft:magma_block", "64", "0"]] | |
UncommonResources = [["minecraft:blackstone", "256", "0"], ["minecraft:nether_quartz_ore", "128", "0"], ["minecraft:nether_gold_ore", "128", "0"], ["minecraft:glowstone", "96", "32"]] | |
RareResources = [["minecraft:blackstone", "256", "0"], ["minecraft:magma_block", "64", "0"]] | |
EpicResources = [["minecraft:netherrack", "256", "0"], ["minecraft:ancient_debris", "32", "0"]] | |
#Biomes: "minecraft:basalt_deltas" | |
[resources.Nether.basalt] | |
CommonResources = [["minecraft:netherrack", "256", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:magma_block", "64", "0"], ["minecraft:magma_block", "64", "0"], ["minecraft:basalt", "128", "0"], ["minecraft:basalt", "128", "0"], ["minecraft:basalt", "128", "0"], ["minecraft:polished_basalt", "128", "0"], ["minecraft:polished_basalt", "128", "0"], ["minecraft:polished_basalt", "128", "0"]] | |
UncommonResources = [["minecraft:blackstone", "256", "0"], ["minecraft:nether_quartz_ore", "128", "0"], ["minecraft:nether_gold_ore", "128", "0"], ["minecraft:glowstone", "96", "32"]] | |
RareResources = [["minecraft:blackstone", "256", "0"], ["minecraft:magma_block", "64", "0"]] | |
EpicResources = [["minecraft:netherrack", "256", "0"], ["minecraft:ancient_debris", "32", "0"]] | |
#Biomes: "minecraft:soul_sand_valley" | |
[resources.Nether.soulsand] | |
CommonResources = [["minecraft:netherrack", "256", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:netherrack", "128", "0"], ["minecraft:magma_block", "64", "0"], ["minecraft:magma_block", "64", "0"], ["minecraft:soul_sand", "128", "0"], ["minecraft:soul_sand", "128", "0"], ["minecraft:soul_sand", "128", "0"], ["minecraft:soul_soil", "128", "0"], ["minecraft:soul_soil", "128", "0"], ["minecraft:soul_soil", "128", "0"]] | |
UncommonResources = [["minecraft:blackstone", "256", "0"], ["minecraft:nether_quartz_ore", "128", "0"], ["minecraft:nether_gold_ore", "128", "0"], ["minecraft:glowstone", "96", "32"]] | |
RareResources = [["minecraft:blackstone", "256", "0"], ["minecraft:magma_block", "64", "0"]] | |
EpicResources = [["minecraft:netherrack", "256", "0"], ["minecraft:ancient_debris", "32", "0"]] | |
[resources.End] | |
[resources.End.default] | |
CommonResources = [["minecraft:end_stone", "256", "0"]] | |
UncommonResources = [["minecraft:chorus_plant", "256", "0"], ["minecraft:chorus_flower", "256", "0"]] | |
RareResources = [["minecraft:purpur_block", "256", "0"]] | |
EpicResources = [["minecraft:obsidian", "256", "0"]] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package aaur1s.mod.quantumquarry; | |
import net.minecraft.resources.ResourceKey; | |
import net.minecraft.resources.ResourceLocation; | |
import net.minecraft.world.level.dimension.BuiltinDimensionTypes; | |
import net.minecraft.world.level.dimension.DimensionType; | |
import net.minecraftforge.common.ForgeConfigSpec; | |
import net.minecraftforge.registries.ForgeRegistries; | |
import org.jetbrains.annotations.Nullable; | |
import org.slf4j.LoggerFactory; | |
import java.util.*; | |
import java.util.function.Predicate; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
@SuppressWarnings({"unchecked", "rawtypes"}) | |
public class QuantumQuarryConfig { | |
public static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder(); | |
public static final ForgeConfigSpec SPEC; | |
public static ForgeConfigSpec.ConfigValue<Integer> ENERGY_PER_OPERATION; | |
public static List<String> SPECIAL_OVERWORLD_BIOMES = List.of( | |
//+terracota, orange things | |
"minecraft:badlands", "minecraft:eroded_badlands", "minecraft:wooded_badlands", | |
//+sand, sandstone | |
"minecraft:desert", "minecraft:beach", | |
//strange things | |
"minecraft:mangrove_swamp", "minecraft:mushroom_fields", | |
//+resources from caves | |
"minecraft:lush_caves", | |
"minecraft:dripstone_caves", | |
"minecraft:deep_dark", | |
//+coral | |
"minecraft:lukewarm_ocean", "minecraft:deep_lukewarm_ocean", | |
//+ice | |
"minecraft:frozen_ocean", "minecraft:deep_frozen_ocean", "minecraft:frozen_river", | |
//+ice, snow | |
"minecraft:ice_spikes", "minecraft:taiga", "minecraft:snowy_beach", "minecraft:snowy_plains", "minecraft:snowy_taiga", | |
//+snow, emeralds | |
"minecraft:meadow", "minecraft:grove", "minecraft:snowy_slopes", "minecraft:jagged_peaks", "minecraft:frozen_peaks", "minecraft:stony_peaks" | |
); | |
public static List<String> SPECIAL_THE_NETHER_BIOMES = List.of("minecraft:basalt_deltas", "minecraft:soul_sand_valley"); | |
public static List<String> SPECIAL_THE_END_BIOMES = new ArrayList<>(); | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRN_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URN_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRN_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERN_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRE_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URE_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRE_DEFAULT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERE_DEFAULT; | |
public static List<? extends List<String>> CRO_DEFAULT_LIST; | |
public static List<? extends List<String>> URO_DEFAULT_LIST; | |
public static List<? extends List<String>> RRO_DEFAULT_LIST; | |
public static List<? extends List<String>> ERO_DEFAULT_LIST; | |
public static List<? extends List<String>> CRN_DEFAULT_LIST; | |
public static List<? extends List<String>> URN_DEFAULT_LIST; | |
public static List<? extends List<String>> RRN_DEFAULT_LIST; | |
public static List<? extends List<String>> ERN_DEFAULT_LIST; | |
public static List<? extends List<String>> CRE_DEFAULT_LIST; | |
public static List<? extends List<String>> URE_DEFAULT_LIST; | |
public static List<? extends List<String>> RRE_DEFAULT_LIST; | |
public static List<? extends List<String>> ERE_DEFAULT_LIST; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_BADLANDS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_BADLANDS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_BADLANDS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_BADLANDS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_DESERT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_DESERT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_DESERT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_DESERT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_MANGROVE; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_MANGROVE; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_MANGROVE; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_MANGROVE; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_MUSHROOM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_MUSHROOM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_MUSHROOM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_MUSHROOM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_LUKEWARM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_LUKEWARM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_LUKEWARM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_LUKEWARM; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_FROZEN; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_FROZEN; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_FROZEN; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_FROZEN; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_SNOWY; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_SNOWY; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_SNOWY; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_SNOWY; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_LUSH_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_LUSH_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_LUSH_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_LUSH_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_DRIPSTONE_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_DRIPSTONE_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_DRIPSTONE_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_DRIPSTONE_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_DEEPDARK_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_DEEPDARK_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_DEEPDARK_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_DEEPDARK_CAVES; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRO_MOUNTAINS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URO_MOUNTAINS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRO_MOUNTAINS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERO_MOUNTAINS; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRN_SOULSAND; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URN_SOULSAND; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRN_SOULSAND; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERN_SOULSAND; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> CRN_BASALT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> URN_BASALT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> RRN_BASALT; | |
public static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> ERN_BASALT; | |
public final static HashMap<ResourceKey<DimensionType>, Map<String, List<List<ResourceInfo>>>> FULL_RESOURCES_MAP = new HashMap<>(); | |
static { | |
BUILDER.push("general"); | |
ENERGY_PER_OPERATION = BUILDER | |
.comment("Energy needed for mining one block") | |
.define("EnergyPerOperation", 10000); | |
BUILDER.pop(); | |
BUILDER.push("resources"); | |
BUILDER.push("Overworld"); | |
genOverworldDefaultList(); | |
registerOverworldDefault(); | |
registerOverworldBadlands(); | |
registerOverworldDesert(); | |
registerOverworldMangrove(); | |
registerOverworldMushroom(); | |
registerOverworldLukewarm(); | |
registerOverworldFrozen(); | |
registerOverworldSnowy(); | |
registerOverworldLushCaves(); | |
registerOverworldDripstoneCaves(); | |
registerOverworldDeepdarkCaves(); | |
registerOverworldMountains(); | |
BUILDER.pop(); | |
BUILDER.push("Nether"); | |
genNetherDefaultList(); | |
registerNetherDefault(); | |
registerNetherBasalt(); | |
registerNetherSoulsand(); | |
BUILDER.pop(); | |
BUILDER.push("End"); | |
genEndDefaultList(); | |
registerEndDefault(); | |
BUILDER.pop(); | |
BUILDER.pop(); | |
SPEC = BUILDER.build(); | |
} | |
public static void fillResourcesMap() { | |
FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(new HashMap<>(), "minecraft:overworld", CRO_DEFAULT, URO_DEFAULT, RRO_DEFAULT, ERO_DEFAULT) | |
); | |
FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.NETHER, | |
appendMapWith(new HashMap<>(), "minecraft:the_nether", CRN_DEFAULT, URN_DEFAULT, RRN_DEFAULT, ERN_DEFAULT) | |
); | |
FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.END, | |
appendMapWith(new HashMap<>(), "minecraft:the_end", CRE_DEFAULT, URE_DEFAULT, RRE_DEFAULT, ERE_DEFAULT) | |
); | |
for (String biomeName : SPECIAL_OVERWORLD_BIOMES) { | |
switch (biomeName) { | |
case "minecraft:badlands", "minecraft:eroded_badlands", "minecraft:wooded_badlands" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_BADLANDS, URO_BADLANDS, RRO_BADLANDS, ERO_BADLANDS) | |
); | |
case "minecraft:desert", "minecraft:beach" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_DESERT, URO_DESERT, RRO_DESERT, ERO_DESERT) | |
); | |
case "minecraft:mangrove" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_MANGROVE, URO_MANGROVE, RRO_MANGROVE, ERO_MANGROVE) | |
); | |
case "minecraft:mushroom_fields" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_MUSHROOM, URO_MUSHROOM, RRO_MUSHROOM, ERO_MUSHROOM) | |
); | |
case "minecraft:lukewarm_ocean", "minecraft:deep_lukewarm_ocean" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_LUKEWARM, URO_LUKEWARM, RRO_LUKEWARM, ERO_LUKEWARM) | |
); | |
case "minecraft:frozen_ocean", "minecraft:deep_frozen_ocean", "frozen_river" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_FROZEN, URO_FROZEN, RRO_FROZEN, ERO_FROZEN) | |
); | |
case "minecraft:ice_spikes", "minecraft:taiga", "minecraft:snowy_beach", "minecraft:snowy_plains", "minecraft:snowy_taiga" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_SNOWY, URO_SNOWY, RRO_SNOWY, ERO_SNOWY) | |
); | |
case "minecraft:lush_caves" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_LUSH_CAVES, URO_LUSH_CAVES, RRO_LUSH_CAVES, ERO_LUSH_CAVES) | |
); | |
case "minecraft:dripstone_caves" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_DRIPSTONE_CAVES, URO_DRIPSTONE_CAVES, RRO_DRIPSTONE_CAVES, ERO_DRIPSTONE_CAVES) | |
); | |
case "minecraft:deep_dark" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_DEEPDARK_CAVES, URO_DEEPDARK_CAVES, RRO_DEEPDARK_CAVES, ERO_DEEPDARK_CAVES) | |
); | |
case "minecraft:meadow", "minecraft:grove", "minecraft:snowy_slopes", "minecraft:jagged_peaks", "minecraft:frozen_peaks", "minecraft:stony_peaks" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.OVERWORLD, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.OVERWORLD), biomeName, CRO_MOUNTAINS, URO_MOUNTAINS, RRO_MOUNTAINS, ERO_MOUNTAINS) | |
); | |
} | |
} | |
for (String biomeName : SPECIAL_THE_NETHER_BIOMES) { | |
switch (biomeName) { | |
case "minecraft:basalt_deltas" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.NETHER, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.NETHER), biomeName, CRN_BASALT, URN_BASALT, RRN_BASALT, ERN_BASALT) | |
); | |
case "minecraft:soul_sand_valley" -> FULL_RESOURCES_MAP.put(BuiltinDimensionTypes.NETHER, | |
appendMapWith(FULL_RESOURCES_MAP.get(BuiltinDimensionTypes.NETHER), biomeName, CRN_SOULSAND, URN_SOULSAND, RRN_SOULSAND, ERN_SOULSAND) | |
); | |
} | |
} | |
} | |
private static Map appendMapWith(Map map, String biomeName, ForgeConfigSpec.ConfigValue<List<? extends List<String>>> list1, ForgeConfigSpec.ConfigValue<List<? extends List<String>>> list2, ForgeConfigSpec.ConfigValue<List<? extends List<String>>> list3, ForgeConfigSpec.ConfigValue<List<? extends List<String>>> list4) { | |
map.put(biomeName, List.of( | |
list1.get().stream().map(QuantumQuarryConfig.ResourceInfo::parse).toList(), | |
list2.get().stream().map(QuantumQuarryConfig.ResourceInfo::parse).toList(), | |
list3.get().stream().map(QuantumQuarryConfig.ResourceInfo::parse).toList(), | |
list4.get().stream().map(QuantumQuarryConfig.ResourceInfo::parse).toList() | |
)); | |
return map; | |
} | |
private static void genOverworldDefaultList() { | |
CRO_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
//soil | |
ResourceInfo.of("minecraft:grass_block", 320, 128), | |
ResourceInfo.of("minecraft:dirt", 320, -64), | |
ResourceInfo.of("minecraft:sand", 320, 128), | |
ResourceInfo.of("minecraft:gravel", 320, -64), | |
//volcanic | |
ResourceInfo.of("minecraft:andesite", 128, 0), | |
ResourceInfo.of("minecraft:granite", 128, 0), | |
ResourceInfo.of("minecraft:diorite", 128, 0), | |
ResourceInfo.of("minecraft:tuff", 16, -64), | |
//ores | |
ResourceInfo.of("minecraft:coal_ore", 320, 5), | |
ResourceInfo.of("minecraft:deepslate_coal_ore", 5, 0) | |
); | |
URO_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
//ores | |
ResourceInfo.of("minecraft:copper_ore", 112, 5), | |
ResourceInfo.of("minecraft:deepslate_copper_ore", 5, -16), | |
ResourceInfo.of("minecraft:iron_ore", 320, 5), | |
ResourceInfo.of("minecraft:deepslate_iron_ore", 5, -64), | |
//mekanism_ores | |
ResourceInfo.of("mekanism:tin_ore", 94, 5), | |
ResourceInfo.of("mekanism:deepslate_tin_ore", 5, -32), | |
ResourceInfo.of("mekanism:lead_ore", 64, 5), | |
ResourceInfo.of("mekanism:deepslate_lead_ore", 5, -24), | |
ResourceInfo.of("mekanism:fluorite_ore", 32, 5), | |
ResourceInfo.of("mekanism:deepslate_fluorite_ore", 5, 0) | |
); | |
RRO_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
//volcanic | |
ResourceInfo.of("minecraft:amethyst_cluster", 30, -64), | |
ResourceInfo.of("minecraft:amethyst_block", 30, -64), | |
ResourceInfo.of("minecraft:calcite", 30, -64), | |
ResourceInfo.of("minecraft:smooth_basalt", 30, -64), | |
//ores | |
ResourceInfo.of("minecraft:redstone_ore", 16, 5), | |
ResourceInfo.of("minecraft:deepslate_redstone_ore", 5, -64), | |
ResourceInfo.of("minecraft:lapis_ore", 64, 5), | |
ResourceInfo.of("minecraft:deepslate_lapis_ore", 5, -64), | |
//mekanism_ores | |
ResourceInfo.of("mekanism:osmium_ore", 72, 5), | |
ResourceInfo.of("mekanism:deepslate_osmium_ore", 5, -32), | |
ResourceInfo.of("mekanism:uranium_ore", 56, 5), | |
ResourceInfo.of("mekanism:deepslate_uranium_ore", 5, -24) | |
); | |
ERO_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:stone", 320, 0), | |
ResourceInfo.of("minecraft:deepslate", 0, -64), | |
//ores | |
ResourceInfo.of("minecraft:gold_ore", 32, 5), | |
ResourceInfo.of("minecraft:deepslate_gold_ore", 5, -64), | |
ResourceInfo.of("minecraft:diamond_ore", 16, 5), | |
ResourceInfo.of("minecraft:deepslate_diamond_ore", 5, -64) | |
); | |
} | |
private static void genNetherDefaultList() { | |
CRN_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:netherrack", 256, 0), | |
ResourceInfo.of("minecraft:netherrack", 128, 0), | |
ResourceInfo.of("minecraft:netherrack", 128, 0), | |
ResourceInfo.of("minecraft:magma_block", 64, 0), | |
ResourceInfo.of("minecraft:magma_block", 64, 0) | |
); | |
URN_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:blackstone", 256, 0), | |
//ores | |
ResourceInfo.of("minecraft:nether_quartz_ore", 128, 0), | |
ResourceInfo.of("minecraft:nether_gold_ore", 128, 0), | |
ResourceInfo.of("minecraft:glowstone", 96, 32) | |
); | |
RRN_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:blackstone", 256, 0), | |
ResourceInfo.of("minecraft:magma_block", 64, 0) | |
); | |
ERN_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:netherrack", 256, 0), | |
//ores | |
ResourceInfo.of("minecraft:ancient_debris", 32, 0) | |
); | |
} | |
private static void genEndDefaultList() { | |
CRE_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:end_stone", 256, 0) | |
); | |
URE_DEFAULT_LIST = List.of( | |
//things | |
ResourceInfo.of("minecraft:chorus_plant", 256, 0), | |
ResourceInfo.of("minecraft:chorus_flower", 256, 0) | |
); | |
RRE_DEFAULT_LIST = List.of( | |
//things | |
ResourceInfo.of("minecraft:purpur_block", 256, 0) | |
); | |
ERE_DEFAULT_LIST = List.of( | |
//basic | |
ResourceInfo.of("minecraft:obsidian", 256, 0) | |
);; | |
} | |
private static void registerOverworldDefault() { | |
String name = "default"; | |
BUILDER.push(name); | |
CRO_DEFAULT = BUILDER | |
.defineList("CommonResources", | |
CRO_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
URO_DEFAULT = BUILDER | |
.defineList("UncommonResources", | |
URO_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
RRO_DEFAULT = BUILDER | |
.defineList("RareResources", | |
RRO_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
ERO_DEFAULT = BUILDER | |
.defineList("EpicResources", | |
ERO_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
BUILDER.pop(); | |
} | |
private static void registerNetherDefault() { | |
BUILDER.push("default"); | |
CRN_DEFAULT = BUILDER | |
.defineList("CommonResources", | |
CRN_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
URN_DEFAULT = BUILDER | |
.defineList("UncommonResources", | |
URN_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
RRN_DEFAULT = BUILDER | |
.defineList("RareResources", | |
RRN_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
ERN_DEFAULT = BUILDER | |
.defineList("EpicResources", | |
ERN_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
BUILDER.pop(); | |
} | |
private static void registerEndDefault() { | |
BUILDER.push("default"); | |
CRE_DEFAULT = BUILDER | |
.defineList("CommonResources", | |
CRE_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
URE_DEFAULT = BUILDER | |
.defineList("UncommonResources", | |
URE_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
RRE_DEFAULT = BUILDER | |
.defineList("RareResources", | |
RRE_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
ERE_DEFAULT = BUILDER | |
.defineList("EpicResources", | |
ERE_DEFAULT_LIST, | |
resourceInfo -> true | |
); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldBadlands() { | |
BUILDER.comment("Biomes: \"minecraft:badlands\", \"minecraft:eroded_badlands\", \"minecraft:wooded_badlands\"").push("badlands"); | |
CRO_BADLANDS = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:red_sand", 70, 60), | |
ResourceInfo.of("minecraft:red_sand", 70, 60), | |
ResourceInfo.of("minecraft:red_sand", 70, 60), | |
ResourceInfo.of("minecraft:red_sandstone", 65, 60), | |
ResourceInfo.of("minecraft:red_sandstone", 65, 60), | |
ResourceInfo.of("minecraft:red_sandstone", 65, 60), | |
ResourceInfo.of("minecraft:orange_terracotta", 80, 63), | |
ResourceInfo.of("minecraft:orange_terracotta", 80, 63), | |
ResourceInfo.of("minecraft:orange_terracotta", 80, 63), | |
ResourceInfo.of("minecraft:red_terracotta", 72, 60), | |
ResourceInfo.of("minecraft:red_terracotta", 72, 60), | |
ResourceInfo.of("minecraft:red_terracotta", 72, 60), | |
ResourceInfo.of("minecraft:light_gray_terracotta", 69, 57), | |
ResourceInfo.of("minecraft:light_gray_terracotta", 69, 57), | |
ResourceInfo.of("minecraft:light_gray_terracotta", 69, 57), | |
ResourceInfo.of("minecraft:white_terracotta", 68, 58), | |
ResourceInfo.of("minecraft:white_terracotta", 68, 58), | |
ResourceInfo.of("minecraft:white_terracotta", 68, 58), | |
ResourceInfo.of("minecraft:orange_terracotta", 66, 50), | |
ResourceInfo.of("minecraft:orange_terracotta", 66, 50), | |
ResourceInfo.of("minecraft:orange_terracotta", 66, 50) | |
)) | |
); | |
URO_BADLANDS = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_BADLANDS = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:gold_ore", 256, 5), | |
ResourceInfo.of("minecraft:deepslate_gold_ore", 5, -64) | |
))); | |
ERO_BADLANDS = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:gold_ore", 32, 5), | |
ResourceInfo.of("minecraft:deepslate_gold_ore", 5, -64) | |
), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldDesert() { | |
BUILDER.comment("Biomes: \"minecraft:desert\", \"minecraft:beach\"").push("desert"); | |
CRO_DESERT = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:sand", 80, 50), | |
ResourceInfo.of("minecraft:sand", 80, 50), | |
ResourceInfo.of("minecraft:sand", 80, 50), | |
ResourceInfo.of("minecraft:sandstone", 70, 60), | |
ResourceInfo.of("minecraft:sandstone", 70, 60), | |
ResourceInfo.of("minecraft:sandstone", 70, 60) | |
) | |
)); | |
URO_DESERT = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_DESERT = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_DESERT = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldMangrove() { | |
BUILDER.comment("Biomes: \"minecraft:mangrove_swamp\"").push("mangrove"); | |
CRO_MANGROVE = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:mud", 80, 50), | |
ResourceInfo.of("minecraft:mud", 80, 50), | |
ResourceInfo.of("minecraft:mud", 80, 50), | |
ResourceInfo.of("minecraft:mud", 80, 50), | |
ResourceInfo.of("minecraft:mud", 80, 50) | |
) | |
)); | |
URO_MANGROVE = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_MANGROVE = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_MANGROVE = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldMushroom() { | |
BUILDER.comment("Biomes: \"minecraft:mushroom_fields\"").push("mushroom"); | |
CRO_MUSHROOM = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:mycelium", 80, 50), | |
ResourceInfo.of("minecraft:mycelium", 80, 50), | |
ResourceInfo.of("minecraft:mycelium", 80, 50) | |
) | |
)); | |
URO_MUSHROOM = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_MUSHROOM = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_MUSHROOM = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldLukewarm() { | |
BUILDER.comment("Biomes: \"minecraft:lukewarm_ocean\", \"minecraft:deep_lukewarm_ocean\"").push("lukewarm"); | |
CRO_LUKEWARM = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:tube_coral_block", 128, 32), | |
ResourceInfo.of("minecraft:brain_coral_block", 128, 32), | |
ResourceInfo.of("minecraft:bubble_coral_block", 128, 32), | |
ResourceInfo.of("minecraft:fire_coral_block", 128, 32), | |
ResourceInfo.of("minecraft:horn_coral_block", 128, 32) | |
) | |
)); | |
URO_LUKEWARM = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:tube_coral", 128, 32), | |
ResourceInfo.of("minecraft:brain_coral", 128, 32), | |
ResourceInfo.of("minecraft:bubble_coral", 128, 32), | |
ResourceInfo.of("minecraft:fire_coral", 128, 32), | |
ResourceInfo.of("minecraft:horn_coral", 128, 32), | |
ResourceInfo.of("minecraft:tube_coral_fan", 128, 32), | |
ResourceInfo.of("minecraft:brain_coral_fan", 128, 32), | |
ResourceInfo.of("minecraft:bubble_coral_fan", 128, 32), | |
ResourceInfo.of("minecraft:fire_coral_fan", 128, 32), | |
ResourceInfo.of("minecraft:horn_coral_fan", 128, 32) | |
) | |
)); | |
RRO_LUKEWARM = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_LUKEWARM = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldFrozen() { | |
BUILDER.comment("Biomes: \"minecraft:frozen_ocean\", \"minecraft:deep_frozen_ocean\", \"minecraft:frozen_river\"").push("frozen"); | |
CRO_FROZEN = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
List.of( | |
ResourceInfo.of("minecraft:grass_block", 320, 128) | |
), | |
List.of( | |
ResourceInfo.of("minecraft:ice", 128, 64), | |
ResourceInfo.of("minecraft:ice", 128, 64), | |
ResourceInfo.of("minecraft:ice", 128, 64), | |
ResourceInfo.of("minecraft:packed_ice", 128, 64), | |
ResourceInfo.of("minecraft:packed_ice", 128, 64) | |
) | |
)); | |
URO_FROZEN = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:blue_ice", 128, 32) | |
) | |
)); | |
RRO_FROZEN = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_FROZEN = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldSnowy() { | |
BUILDER.comment("Biomes: \"minecraft:ice_spikes\", \"minecraft:taiga\", \"minecraft:snowy_beach\", \"minecraft:snowy_plains\", \"minecraft:snowy_taiga\"").push("snowy"); | |
CRO_SNOWY = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64), | |
ResourceInfo.of("minecraft:ice", 128, 64), | |
ResourceInfo.of("minecraft:ice", 128, 64), | |
ResourceInfo.of("minecraft:packed_ice", 128, 64), | |
ResourceInfo.of("minecraft:packed_ice", 128, 64) | |
) | |
)); | |
URO_SNOWY = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:blue_ice", 128, 32) | |
) | |
)); | |
RRO_SNOWY = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_SNOWY = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldLushCaves() { | |
BUILDER.comment("Biomes: \"minecraft:lush_caves\"").push("lushCaves"); | |
CRO_LUSH_CAVES = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:moss_block", 128, -64), | |
ResourceInfo.of("minecraft:clay", 128, -64) | |
) | |
)); | |
URO_LUSH_CAVES = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_LUSH_CAVES = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_LUSH_CAVES = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldDripstoneCaves() { | |
BUILDER.comment("Biomes: \"minecraft:dripstone_caves\"").push("dripstoneCaves"); | |
CRO_DRIPSTONE_CAVES = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:dripstone_block", 128, -64), | |
ResourceInfo.of("minecraft:pointed_dripstone", 128, -64) | |
) | |
)); | |
URO_DRIPSTONE_CAVES = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_DRIPSTONE_CAVES = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_DRIPSTONE_CAVES = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldDeepdarkCaves() { | |
BUILDER.comment("Biomes: \"minecraft:deep_dark\"").push("deepdarkCaves"); | |
CRO_DEEPDARK_CAVES = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:sculk", 128, -64), | |
ResourceInfo.of("minecraft:sculk", 128, -64), | |
ResourceInfo.of("minecraft:sculk", 128, -64), | |
ResourceInfo.of("minecraft:sculk", 128, -64), | |
ResourceInfo.of("minecraft:sculk", 128, -64) | |
) | |
)); | |
URO_DEEPDARK_CAVES = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_DEEPDARK_CAVES = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERO_DEEPDARK_CAVES = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerOverworldMountains() { | |
BUILDER.comment("Biomes: \"minecraft:meadow\", \"minecraft:grove\", \"minecraft:snowy_slopes\", \"minecraft:jagged_peaks\", \"minecraft:frozen_peaks\", \"minecraft:stony_peaks\"").push("mountains"); | |
CRO_MOUNTAINS = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64), | |
ResourceInfo.of("minecraft:snow_block", 128, 64) | |
) | |
)); | |
URO_MOUNTAINS = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRO_MOUNTAINS = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRO_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:emerald_ore", 320, 5), | |
ResourceInfo.of("minecraft:emerald_ore", 320, 5), | |
ResourceInfo.of("minecraft:emerald_ore", 320, 5), | |
ResourceInfo.of("minecraft:deepslate_emerald_ore", 5, -16), | |
ResourceInfo.of("minecraft:deepslate_emerald_ore", 5, -16) | |
) | |
)); | |
ERO_MOUNTAINS = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERO_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerNetherSoulsand() { | |
BUILDER.comment("Biomes: \"minecraft:soul_sand_valley\"").push("soulsand"); | |
CRN_SOULSAND = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRN_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:soul_sand", 128, 0), | |
ResourceInfo.of("minecraft:soul_sand", 128, 0), | |
ResourceInfo.of("minecraft:soul_sand", 128, 0), | |
ResourceInfo.of("minecraft:soul_soil", 128, 0), | |
ResourceInfo.of("minecraft:soul_soil", 128, 0), | |
ResourceInfo.of("minecraft:soul_soil", 128, 0) | |
) | |
)); | |
URN_SOULSAND = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRN_SOULSAND = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERN_SOULSAND = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static void registerNetherBasalt() { | |
BUILDER.comment("Biomes: \"minecraft:basalt_deltas\"").push("basalt"); | |
CRN_BASALT = genConfigSpecFromList("CommonResources", | |
modifyResourceList(CRN_DEFAULT_LIST, | |
Collections.emptyList(), | |
List.of( | |
ResourceInfo.of("minecraft:basalt", 128, 0), | |
ResourceInfo.of("minecraft:basalt", 128, 0), | |
ResourceInfo.of("minecraft:basalt", 128, 0), | |
ResourceInfo.of("minecraft:polished_basalt", 128, 0), | |
ResourceInfo.of("minecraft:polished_basalt", 128, 0), | |
ResourceInfo.of("minecraft:polished_basalt", 128, 0) | |
) | |
)); | |
URN_BASALT = genConfigSpecFromList("UncommonResources", | |
modifyResourceList(URN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
RRN_BASALT = genConfigSpecFromList("RareResources", | |
modifyResourceList(RRN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
ERN_BASALT = genConfigSpecFromList("EpicResources", | |
modifyResourceList(ERN_DEFAULT_LIST, | |
Collections.emptyList(), | |
Collections.emptyList() | |
)); | |
BUILDER.pop(); | |
} | |
private static List<? extends List<String>> modifyResourceList(List list, List toRemove, List toAdd) { | |
if (!toRemove.isEmpty()) list = (List) list.stream().filter(Predicate.not(toAdd::contains)).collect(Collectors.toList()); | |
if (!toAdd.isEmpty()) list = (List) Stream.concat(list.stream(), toAdd.stream()).collect(Collectors.toList()); | |
return list; | |
} | |
private static ForgeConfigSpec.ConfigValue<List<? extends List<String>>> genConfigSpecFromList(String propertyName, List<? extends List<String>> list) { | |
return BUILDER.defineList(propertyName, list, resourceInfo -> true); | |
} | |
public record ResourceInfo(@Nullable String blockId, Integer maxY, Integer minY) { | |
public static ResourceInfo NULL = new ResourceInfo("null", -128, -128); | |
public static List<String> of(String blockId, Integer maxY, Integer minY) { | |
return List.of(blockId, maxY.toString(), minY.toString()); | |
} | |
public static ResourceInfo parse(List<String> list) { | |
try { | |
if (!ForgeRegistries.BLOCKS.containsKey(new ResourceLocation(list.get(0)))) { | |
LoggerFactory.getLogger("QuantumQuarry").warn("Illegal block in QuantumQuarry config: " + list.get(0)); | |
LoggerFactory.getLogger("QuantumQuarry").warn("Using \"null\" instead"); | |
return ResourceInfo.NULL; | |
} | |
return new ResourceInfo(list.get(0), Integer.parseInt(list.get(1)), Integer.parseInt(list.get(2))); | |
} catch (Throwable e) { | |
LoggerFactory.getLogger("QuantumQuarry").error("Failed to parse ResourceInfo from config(probably bad numbers): " + list.toString()); | |
LoggerFactory.getLogger("QuantumQuarry").error("Using \"null\" instead"); | |
return ResourceInfo.NULL; | |
} | |
} | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package aaur1s.mod.quantumquarry; | |
import aaur1s.mod.quantumquarry.block.gui.QuantumQuarryMenu; | |
import aaur1s.mod.quantumquarry.block.gui.QuantumQuarryScreen; | |
import aaur1s.mod.quantumquarry.registry.MainRegistry; | |
import aaur1s.mod.quantumquarry.registry.ModMenuTypes; | |
import net.minecraft.client.gui.screens.MenuScreens; | |
import net.minecraftforge.api.distmarker.Dist; | |
import net.minecraftforge.client.event.TextureStitchEvent; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.eventbus.api.SubscribeEvent; | |
import net.minecraftforge.fml.ModLoadingContext; | |
import net.minecraftforge.fml.common.Mod; | |
import net.minecraftforge.fml.config.ModConfig; | |
import net.minecraftforge.fml.event.config.ModConfigEvent; | |
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; | |
import org.slf4j.LoggerFactory; | |
@Mod(QuantumQuarryMod.MOD_ID) | |
public class QuantumQuarryMod { | |
public static final String MOD_ID = "quantumquarry"; | |
public QuantumQuarryMod() { | |
MainRegistry.register(); | |
ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, QuantumQuarryConfig.SPEC); | |
MinecraftForge.EVENT_BUS.register(this); | |
} | |
@Mod.EventBusSubscriber(value = Dist.CLIENT, modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) | |
public static class ClientModEvents { | |
@SubscribeEvent | |
public static void onClientSetup(FMLClientSetupEvent event) { | |
MenuScreens.register(ModMenuTypes.QUANTUM_QUARRY_MENU.get(), QuantumQuarryScreen::new); | |
} | |
@SubscribeEvent | |
public static void onTextureStitch(TextureStitchEvent.Pre event) { | |
event.addSprite(QuantumQuarryMenu.EMPTY_ITEM_FILTER_SLOT); | |
event.addSprite(QuantumQuarryMenu.EMPTY_ENCHANTED_BOOK_SLOT); | |
event.addSprite(QuantumQuarryMenu.EMPTY_BIOME_FILTER_SLOT); | |
} | |
} | |
@Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) | |
public static class CommonModEvents { | |
@SubscribeEvent | |
public static void onConfigLoad(ModConfigEvent.Loading event) { | |
LoggerFactory.getLogger("QuantumQuarry").debug("QuantumQuarry config loaded, filling resources map..."); | |
QuantumQuarryConfig.fillResourcesMap(); | |
} | |
@SubscribeEvent | |
public static void onConfigChange(ModConfigEvent.Reloading event) { | |
LoggerFactory.getLogger("QuantumQuarry").info("QuantumQuarry config changed, refilling resources map..."); | |
QuantumQuarryConfig.fillResourcesMap(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment