Skip to content

config.json

This file contains the configurations for the main features of DirectionHUD. These features include language selection, loop speeds, social settings, and more.

Configuration

Each part of the file and its valid entries are detailed below.

lang

Defines the language used for DirectionHUD.

Input: String
Options: en_us, ru_ru, zh_cn, zh_hk

online-mode

Defines the mode for PlayerData file creation.
When enabled, PlayerData files are named and accessed via the player’s UUID.
When disabled, the PlayerData will use the player’s IGN.

Input: Boolean

location

Configures the constraints on DirectionHUD locations.

max-xz

Defines the maximum accepted input for the X and Z coordinates (both positive and negative).

Input: Integer

max-y

Defines the maximum accepted input for the Y level (both positive and negative).

Input: Integer

hud

Configures HUD functionality.

editing

Toggles the /hud command completely.

Input: Boolean

loop-ticks

Defines the number of ticks between each HUD refresh.

Input: Integer

destination

Configures Destination functionality.

saving

Toggles the ability to save destinations.

Input: Boolean

max-saved

Sets the maximum number of saved destinations a player can have.

Input: Integer

global

Toggles the global destination feature.
When global destinations are enabled, a player with operator permissions can edit the list of destinations that are shown to everybody in a separate tab.

Input: Boolean

lastdeath

Configures the lastdeath settings.

saving

Toggles whether deaths get saved or not.

Input: Boolean

max-deaths

Defines the maximum number of deaths that are saved per player.

Input: Integer

loop-ticks

Defines the number of ticks between each destination calculation. (particles)

Input: Integer

social

Configures social functionality.

enabled

Toggles the player’s ability to send social commands.

Input: Boolean

cooldown

Specifies the cooldown time before sending another social command.

Input: Integer

max-color-presets

Defines the maximum number of color presets that a player can have.

Input: Integer

Default File Structure

config.json
{
"version": 1.6,
"lang": "en_us",
"lang-options": [
"en_us (100%)",
"ru_ru (88%)",
"zh_cn (76%)",
"zh_tw (76%)"
],
"online-mode": true,
"location": {
"max-y": 512,
"max-xz": 30000000
},
"hud": {
"editing": true,
"loop-ticks": 1
},
"destination": {
"saving": true,
"max-saved": 50,
"global": false,
"lastdeath": {
"saving": true,
"max-deaths": 4
},
"loop-ticks": 20
},
"social": {
"enabled": true,
"cooldown": 10
},
"max-color-presets": 14
}