Example Configs
Example Configs
So I've found that some people are having trouble setting up a config to make chests spawn automatically in their worlds. In light of this, I'm going to show you a few example configs.
The most common cause of chests not spawning in a world automatically is that the world is not Enabled. In the config, it appears like this:
WorldOptions: world: Enabled: true
Ingame, you can always check the current options of the world you're in with /hunt settings. If it says Enabled: false, you can do /hunt enabled true to turn it on.
The second most common cause of chests not spawning automatically is that there are not enough players online to meet the Options.MinPlayers setting. There are two ways around this:
WorldOptions: world: OverrideMinPlayers: true
or
Options: MinPlayers: 0
You can also adjust overrideminplayers ingame with /hunt overrideminplayers true.
The third most common cause of chests not spawning automatically is that the config settings are too restrictive to allow the plugin to find a good location for a chest. Here's an example config that would cause there to be a 1 in 60 chance of a chest spawning each ten seconds (so basically this should averagely allow one chest to spawn every ten minutes). This also sets the plugin to allow the chest to spawn in any amount of light (so not just in caves) and at any elevation between 4 and 128, although only if it is on grass, dirt, or stone.
WorldOptions: world: Enabled: true ChestChance: 60 ChestInterval: 10 MinLightLevel: 0 MaxLightLevel: 14 MinElevation: 4 MaxElevation: 128 MaxElevationRare: 128 CanSpawnOn: - GRASS - DIRT - STONE
A Few Ideas
Here's a few setups based on different ideas of where chests should spawn.
This one will spawn chests anywhere in the nether, but only on top of netherrack, lava, or soulsand. The chance will be 1 in 60 every 10 seconds.
WorldOptions: world_nether: Enabled: true ChestChance: 60 ChestInterval: 10 MinLightLevel: 0 MaxLightLevel: 14 MinElevation: 4 MaxElevation: 128 MaxElevationRare: 128 CanSpawnOn: - LAVA - NETHERRACK - SOULSAND - STATIONARY_LAVA
This config is pretty close to the default. It will allow chests to only spawn in dark caves underground, and with a chance of only 1 in 100 every 15 seconds. It also will only allow chests with rarity Rare or higher to spawn below 32 height.
WorldOptions: world: Enabled: true ChestChance: 100 ChestInterval: 15 MinLightLevel: 0 MaxLightLevel: 4 MinElevation: 4 MaxElevation: 64 MaxElevationRare: 32 CanSpawnOn: - DIRT - STONE - MOSSY_COBBLESTONE - OBSIDIAN - GRAVEL
This one will force the plugin to keep 5 chests up at any given time, regardless of how many players are online. Otherwise it is exactly the same as the previous example.
WorldOptions: world: Enabled: true OverrideMinPlayers: true MinChests: 5 ChestChance: 100 ChestInterval: 15 MinLightLevel: 0 MaxLightLevel: 4 MinElevation: 4 MaxElevation: 64 MaxElevationRare: 32 CanSpawnOn: - DIRT - STONE - MOSSY_COBBLESTONE - OBSIDIAN - GRAVEL
For a test run of this try it out on my server.
or you can try it on mine 198.24.166.242:25731
maybe next time explain all the config values properly....