Skip to content

Instantly share code, notes, and snippets.

@GrumpyChunks
Last active July 15, 2024 13:41
Show Gist options
  • Save GrumpyChunks/1422d3c66662f00779cdadfe835e2deb to your computer and use it in GitHub Desktop.
Save GrumpyChunks/1422d3c66662f00779cdadfe835e2deb to your computer and use it in GitHub Desktop.
Configuration for the Ore Excavation with an otherwise Vanilla Minecraft set of mods

The following configuration is used in the OreExcavation mod to support the vanilla Minecraft Ores. Note, there are different format files, depending on the verison.

#Common settings for 1.15
[common]
	#How many blocks per tick can be excavated
	#Range: > 1
	Speed = 64
	#Use alternate check for tool validity (e.g. swords on webs)
	"Alt Tools" = false
	#Limit excavation to standard tool types (Picks, Shoves, Axes & Shears)
	"Only Standard Types" = false
	#Skips spawning drops in world adding them directly to your inventory
	"Auto Pickup" = false
	#Inverts the block blacklist to function as a whitelist
	"Invert Block Blacklist" = true
	#Inverts the tool blacklist to function as a whitelist
	"Invert Tool Blacklist" = false
	#How far from the origin an excavation can travel
	#Range: > 1
	Range = 16
	#Amount of exaustion per block excavated
	#Range: 0.0 ~ 1.7976931348623157E308
	Exaustion = 0.1
	#Temporarily reduces excavation speed if TPS begins to slow down
	"TPS Guard" = true
	#Experience cost per block excavated
	#Range: > 0
	Experience = 0
	#Allow players to use shape mining
	"Allow Shapes" = true
	#Allow excavation with an open hand
	"Open Hand" = true
	#The default game stage required to unlock excavations (requires gamestages to be installed)
	"Game Stage" = ""
	#Tools blacklisted from excavating
	"Tool Blacklist" = []
	#Blocks blacklisted from being excavated
	"Block Blacklist" = ["minecraft:coal_ore", "minecraft:gold_ore", "minecraft:iron_ore", "minecraft:diamond_ore", "minecraft:emerald_ore", "minecraft:redstone_ore", "minecraft:lit_redstone_ore", "minecraft:lapis_ore", "minecraft:quartz_ore", "minecraft:glowstone"]
	#The maximum number of blocks that can be excavated at once
	#Range: > 1
	Limit = 128
	#How many excavations should be kept in undo history (may lead to exploits or instability)
	#Range: > 0
	"Max Undos" = 3
	#Ignores whether or not the held tool is valid
	"Ignore Tool" = false
# Configuration file 1.12

general {
    # Allow players to use shape mining [default: true]
    B:"Allow Shapes"=false

    # Allows the undo command to overwrite replacables like fluids [default: true]
    B:"Allow Undo Replacables"=true

    # Use alternate check for tool validity (e.g. swords on webs) [default: false]
    B:"Alt Tools"=false

    # Skips spawning drops in world adding them directly to your inventory [default: false]
    B:"Auto Pickup"=false

    # Blocks blacklisted from being excavated [default: ]
    S:"Block Blacklist" <
        minecraft:coal_ore
        minecraft:gold_ore
        minecraft:iron_ore
        minecraft:diamond_ore
        minecraft:emerald_ore
        minecraft:redstone_ore
        minecraft:lit_redstone_ore
        minecraft:lapis_ore
        minecraft:quartz_ore
        minecraft:glowstone
     >

    # Amount of exaustion per block excavated [range: 0.0 ~ 3.4028235E38, default: 0.1]
    S:Exaustion=0.1

    # Experience cost per block excavated [range: 0 ~ 2147483647, default: 0]
    I:Experience=0

    # The default game stage required to unlock excavations (requires gamestages to be installed) [default: ]
    S:"Game Stage"=

    # Ignores whether or not the held tool is valid [default: false]
    B:"Ignore Tool"=false

    # Inverts the block blacklist to function as a whitelist [default: false]
    B:"Invert Block Blacklist"=true

    # Inverts the tool blacklist to function as a whitelist [default: false]
    B:"Invert Tool Blacklist"=false

    # The maximum number of blocks that can be excavated at once [range: 1 ~ 2147483647, default: 128]
    I:Limit=128

    # How many excavations should be kept in undo history (may lead to exploits or instability) [range: 0 ~ 2147483647, default: 3]
    I:"Max Undos"=3

    # Excavation mode (-1 Disabled, 0 = Keybind, 1 = Sneak, 2 = Always) [range: -1 ~ 2, default: 0]
    I:Mode=0

    # Allows players to cancel excavation by releasing the keys [default: true]
    B:"Must Hold"=true

    # Limit excavation to standard tool types (Picks, Shoves, Axes & Shears) [default: false]
    B:"Only Standard Types"=false

    # Allow excavation with an open hand [default: true]
    B:"Open Hand"=true

    # How far from the origin an excavation can travel [range: 1 ~ 2147483647, default: 16]
    I:Range=16

    # The default game stage required to unlock shape mining (requires gamestages to be installed) [default: ]
    S:"Shape Stage"=

    # How many blocks per tick can be excavated [range: 1 ~ 2147483647, default: 64]
    I:Speed=64

    # Temporarily reduces excavation speed if TPS begins to slow down [default: true]
    B:"TPS Guard"=true

    # Tools blacklisted from excavating [default: ]
    S:"Tool Blacklist" <
     >

    # Use the side of the block hit to determine shape mining direction [default: true]
    B:"Use Side Hit"=true
}
@Fran-Catarino
Copy link

When I type "minecraft:log" in the block list it doesn't work. Is there a solution to add the wood?

@AdamantSteele
Copy link

Can you show the updated version for 1.19.2? I want to create a whitelist and the format shown for 1.15 isn’t working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment