Wiki 9Minecraft DiscordCraft Mod Wiki
DiscordCraft Mod Wiki › Configuration

DiscordCraft Mod — Configuration

Configuration (JSON System)

The behavior of DiscordCraft is controlled through a JSON configuration file. This file allows users to set up "Groups" for broad categories of dimensions and specific "Dimensions" for individual overrides.

JSON Structure

The configuration is divided into two main arrays: groups and dimensions. The mod prioritizes specific dimension entries over group templates. If a dimension is defined in the dimensions section, that template will be used even if the dimension also belongs to a group like gcmoon.

Example Configuration

{
 "groups": [
 {
 "groupId": "default",
 "template": "Dimension: {dimName}"
 },
 {
 "groupId": "gcplanet",
 "template": "On planet {planet}"
 }
 ],
 "dimensions": [
 {
 "dimName": "the_nether",
 "template": "The Nether"
 }
 ]
}

Commands

DiscordCraft provides an in-game utility command to help players and developers configure their JSON files accurately.

/diminfo

This command is the primary tool for identifying dimension metadata. When executed, it returns the following information about the player's current location: * Dimension Name: The exact string required for the {dimName} variable. * Dimension ID: The numerical ID for the {dimId} variable. * Group: The specific group the dimension currently falls under (e.g., default or gcplanet).