Molehunt Docs 1.3.0 Help

Config file

On top of the gamerules, you can edit a config file, named molehunt.properties. This file is automatically generated when starting a server with the mod installed.

This file will set the default settings when creating a new world, but that's it. You will still be able to change the gamerules. Editing this file is recommended when you plan on having multiple molehunt games with the same settings but on different worlds.

Editing the config file

You can find the molehunt.properties file in your server's config folder. If it is not present, make sure the mod is installed, and start your server.

Every setting available in the config file reflects a gamerule (they have very similar names, even though different). To know what each setting does, you can check the gamerules documention.

The config syntax is very simple:

  • name_of_the_setting = value to set a setting to a value. Only one setting can be set on a single line

  • A line starting with a # is a comment, and will not be counted be the mod.

Troubleshooting the config file

If you realise the config file isn't being applied correctly, check these potential solutions before making an issue on GitHub.

Checking the file location

Make sure the config file you're editing is located in your server's config directory, and that the file's name is molehunt.properties.

Check that you use the config file's setting names, and not the gamerule names

For example, to change the game duration in the config file:

# Do this: game_duration = 30 # And NOT this: gameDurationMinutes = 30 molehunt:GameDurationMinutes = 30

You can see the list of all config file setting in the default configuration file.

Make sure the syntax is correct

A comment line starts with a #, not with // nor with anything else.

Also, you can only set one variable on one line. For exemple, this is incorrect:

# This is not a valid config file first_setting = 1 second_setting = 2 # The value must also be on the same line as the #setting name. This is incorrect: another_setting = 3

Make sure the setting have the right value type

A boolean value (one that can either be "on or off") can be set to true or false, nothing else.

# Good my_boolean = true # Bad my_boolean = false

Every numerical value should be integers: there are no decimal values in this mod. And you should not put the unit after the value (do not put 50 blocks, but only 50).

Default configuration

Here is the default configuration that is automatically generated. Every setting is listed below.

To regenerate the default configuration, you can rename, move or delete your current config file, and then run the server with the mod installed.

# Molehunt mod configuration file # To regenerate the default configuration, delete, move or rename this file. # Game settings # The duration of a molehunt game, in minutes. # Default: 90 minutes (1 hour 30 minutes). game_duration = 90 # Mole percentage. # For example, a mole percentage of 25% will get 1 mole every 4 players. # Default: 25 %. mole_percentage = 25 # Mole count (absolute). # This setting will overwrite the mole_percentage setting. # If set below 0, this setting is disabled. # Default: -1. mole_count = -1 # Give food on start # Default: true food_on_start = true # Client-side settings (applies to all players) # Show nametags # Default: false show_nametags = false # Show skins # Default: false show_skins = false # Show tab # Default: false show_tab = false # World border settings # Initial world size (in blocks). # Default: 600 blocks. initial_world_size = 600 # Final world size (in blocks). # Default: 50 blocks. final_world_size = 100 # Moving starting time offset (in minutes) # The time before starting to move the world borders. # If this value is greater than the game duration, borders will never move. # Default: 10 minutes. border_moving_starting_time_offset = 30 # Other # Enable portals (nether, end, end gateway) # Default: false enable_portals = false
Last modified: 18 March 2026