Skip to content

Configuration

config.yml is generated on first run, with a comment above each setting.

plugins/cobblestone/config.yml

config/cobblestone/config.yml

/cobblestone reload reloads the file. Settings marked live apply immediately; settings marked restart apply on the next server start.

Each platform generates its own settings. Unrecognized settings are reported on startup and ignored.

locale

Setting Default
locale.default en restart

Language for console and system messages, as a BCP 47 tag (en, en-US, fr). Player messages use the client's language when a translation is available.

messages

Setting Default
messages.show_prefix true live

Prepends the [✦] prefix to player messages.

data

Setting Default Values
data.backend H2 H2 restart
data.file cobblestone any name restart

Storage for saved locations, death locations, and portal links. data.file is the database file name, without extension, in the plugin's data folder.

trips

Setting Default
trips.max_active_per_player 3 live
trips.live_interval_ticks 100 live
trips.recalculate_distance 32 live
trips.hud true live
trips.holograms true live
  • max_active_per_player: Maximum concurrent trips per player.
  • live_interval_ticks: Interval between re-searches for live trips. Live re-searches are the main recurring cost; increase this before reducing search limits.
  • recalculate_distance: Distance in blocks a player may stray before the route is recomputed. Below this distance, a guide path back to the trail is drawn instead. 0 disables recomputation.
  • hud: Shows each player's active trips in a HUD with the time left on each. Players can hide it for themselves with /cobblestone hud off. While shown, a player is given a scoreboard of their own, so they do not see the server's main scoreboard (its sidebar, or teams it uses for name colors). Turn this off if another plugin relies on that. It is never shown on Folia, which has no scoreboard API.
  • holograms: Floats a label naming each trip over its trail (or the guide back to it), a few blocks ahead of the player, once they have stood still for a second; the labels go away as soon as they move. Hitting the red Cancel above a label cancels its trip, from any distance. This is the default; a plugin starting a trip can turn its label on or off. Labels are entities. On Paper they are seen only by their player and never saved. On Sponge, whose API can't hide an entity from other players, everyone nearby sees them (only the owner's hit does anything); any left behind by a crash are removed when their chunk loads.
Setting Default
search.max_concurrent_per_player 1 restart

Maximum concurrent searches per player, including live re-searches. Live re-searches yield to this limit; a manual /navigate always runs.

search.algorithm

Setting Default
search.algorithm.max_cells_visited 200000 live
search.algorithm.max_wall_clock_seconds 60 live
search.algorithm.heuristic REGIONS live
search.algorithm.heuristic_weight 1.5 live
search.algorithm.tier1_unsolved_pessimism 1.5 live
search.algorithm.running_average_width 5 live
  • max_cells_visited: Cell limit per search. Memory use is a few hundred bytes per cell, so the default peaks in the tens of megabytes. Increase for longer routes; decrease on small heaps.
  • max_wall_clock_seconds: Time limit per search.
  • heuristic: How the search estimates the rest of a route. REGIONS reads the connected patches of terrain ahead, finding better routes and handling water, caves and boats, at the cost of extra chunk reads per search. RUNNING_AVERAGE extrapolates from the last few steps; it is cheaper but never routes a player onto the water by boat.
  • heuristic_weight: Deprecated. The A* heuristic weight for RUNNING_AVERAGE only; REGIONS reads search.regions.heuristic_weight. 1.0 yields optimal routes; higher values search faster with routes at most this factor longer than optimal.
  • tier1_unsolved_pessimism: Cost multiplier for route legs that have not yet been solved. 1.0 disables it.
  • running_average_width: Window size of the running-average heuristic.

search.chunks

Setting Default Values
search.chunks.policy allow_load loaded_only, allow_load, allow_load_and_generate restart
  • loaded_only: Read only chunks already in memory. Lowest cost; searches frequently fail where terrain is unloaded.
  • allow_load: Also read generated chunks from disk. Recommended.
  • allow_load_and_generate: Also generate new terrain. World files grow permanently.

Paper can read an unloaded chunk without loading it, so allow_load is inexpensive.

Sponge must load a chunk to read it. Cobblestone acquires a chunk ticket, copies the chunk, and releases the ticket immediately.

Setting Default
search.chunks.max_load_requests 256 live

Maximum chunk tickets held at once. Values below about 64 disable read-ahead and slow searches.

search.regions

The REGIONS heuristic cuts the world into regions of terrain once, a 16-block cube at a time, and shares them between every search until a block in that cube changes.

Setting Default
search.regions.persist true restart
search.regions.memory 128 restart
search.regions.flush_period 60 restart
search.regions.heuristic_weight 1.7 live
  • persist: Keep regions on disk, so a restart does not start from nothing: under plugins/Cobblestone/regions/ on Paper and cobblestone/regions/ in the server folder on Sponge, a folder per world by its key, as the world's own data is kept: minecraft:the_nether in regions/minecraft/the_nether/. A few kilobytes per chunk's worth of terrain, only where searches went. A world's regions are built again from scratch if its seed or height changes.
  • memory: Memory each world's regions may use, in megabytes, least recently used dropped first and read back from disk when needed. The terrain within about 70 blocks of each navigating player is kept on top of this until their trip ends, so the searches that re-plan around them stay fast.
  • flush_period: How often new regions are written, in seconds. They are also written when a world saves and when the server stops. A write touches only the regions that changed.
  • heuristic_weight: A* heuristic weight under REGIONS. 1.0 yields optimal routes; higher values search faster with routes at most this factor longer than optimal. The region estimate runs close to the true cost, so it bears a higher weight than the running average.

Block changes made while the server is running are tracked: a changed cube's regions are dropped about 10 seconds after the change, together with any further changes in that time, and built again when a search next needs them. Changes Cobblestone cannot see are not tracked: edits made while the server is stopped, edits by tools that set blocks without block events (such as WorldEdit or /fill), and chunks trimmed or deleted to be generated again. After those, clear the world's regions with /cobblestone regions clear <world>.

Tuning

Symptom Adjustment
Long routes fail with "ran out of resources" or "took too long" Increase max_cells_visited and max_wall_clock_seconds. Ensure search.chunks.policy is at least allow_load.
High CPU usage Increase trips.live_interval_ticks, keep search.max_concurrent_per_player at 1, decrease max_cells_visited, and set threads.compute below half the processors. On Sponge, decrease search.chunks.max_load_requests.
High memory usage Decrease max_cells_visited.
Searches must not load chunks Set search.chunks.policy to loaded_only.

Use /cobblestone loglevel debug to log the timing of each search.

portals

Portal destinations are not exposed by the server API, so Cobblestone learns portal links by observing players.

Setting Default
portals.discovery true live
portals.cost_seconds 5.0 live
portals.normalize_entry true live
portals.normalize_exit true live
  • discovery: Learn new portal links. Existing links remain in use when disabled.
  • cost_seconds: Assumed cost of a portal traversal.
  • normalize_entry: Treat any entry into a nether portal as entering at its center, so each portal has a single destination. Required for reliable portal routing.
  • normalize_exit: Place the player at the center of the destination portal, at ground level.

Clear learned links with /cobblestone portals clear.

deaths

Setting Default
deaths.track true live

Records each player's most recent death location and offers the death destination. When disabled, recording stops and the destination is hidden; stored data is retained. To restrict it by group instead, use cobblestone.navigate.cobblestone.death.

Setting Default
menu.title <#4AA8FF>Navigation Menu live
menu.filler minecraft:gray_stained_glass_pane live
menu.recents true live
menu.icons.<name> see below live

The navigation menu opens when a player types /navigate with no destination. It is a double chest with a border, which holds the back, page and close buttons. Inside it are four rows of destinations. On the first page, the top row is the player's recent destinations instead, followed by a gap. Entries are listed alphabetically. A level with only one way on is skipped.

  • title: The menu's title, in MiniMessage.
  • filler: The item in the border and the gap.
  • recents: Whether to show recent destinations. They are kept in memory until restart.

Items are written as an item key, such as minecraft:oak_sign, or as head: followed by a skin texture value, as head databases such as minecraft-heads.com publish them.

menu.icons sets the items for Cobblestone's own entries (death, spawn, player, …), the buttons (back, page, close, breadcrumb), and the fallbacks for entries that choose none (destination, folder). Each integration sets its own items in its own config. Other players always show their own heads, and pets show their spawn egg.

A destination that needs more input, such as coordinates block, asks for it before navigating: in a dialog on Paper, and on Sponge by handing the player the command to finish in chat.

metrics

Setting Default
metrics.enabled true restart

Anonymous usage data via bStats. bStats can also be disabled globally in its own configuration.

threads

The threads Cobblestone runs on besides the server's own. Searches never share a thread with disk or database work, so a slow write can't hold one up.

Setting Default
threads.compute 0 restart
threads.io 0 restart
  • compute: How many threads searches and region builds run on, shared by every player's searches. 0 leaves it to Cobblestone: half the server's processors, and at least two.
  • io: How many threads disk and database work runs on: saving deaths, mounts, portals and preferences, and on Sponge, reading chunks from disk. 0 leaves it to Cobblestone: two. Writes happen one at a time and in order whatever this is, and are finished before the server stops.
Setting Default
navigators.trail.buffer_cells 256 live
navigators.trail.particles [TRAIL] live
navigators.trail.highlight_particles [END_ROD] live
navigators.trail.colors [FFFFFF, 4AA8FF] live
navigators.trail.density 0.2 live
navigators.trail.particle_ticks 10 live
  • buffer_cells: Length of the rendered path segment ahead of the player.
  • particles: Particle types, chosen at random per particle. TRAIL and DUST use colors; other types render as-is. A TRAIL particle drifts along the trail and lasts exactly particle_ticks, so the trail stays crisp ahead of a moving player. On a server too old to have TRAIL (before 1.21.2, such as Sponge for 1.21.1), DUST is drawn in its place. Particles requiring other data are not supported.
  • highlight_particles: Particles at highlighted points, such as action steps.
  • colors: TRAIL and DUST colors as RRGGBB, chosen at random per particle.
  • density: Mean particles per cell per tick. Fractional values are probabilities: 0.7 means a 70% chance of one particle per cell per tick.
  • particle_ticks: How long each TRAIL particle lasts. Shorter is crisper on the move; longer is fuller. Each particle drifts in a straight line at about a block a second, so beyond about 40 ticks it visibly strays off a curving trail.

Particle names follow the server's particle registry.