owned this note
owned this note
Published
Linked with GitHub
# Discordcraft JSON helper
**This file will help you set up your JSON file for DiscordCraft. This will be updated when new groups/settings get added to the mod**
First of all we have the standard JSON that gets shipped with the mod
:::spoiler Json code
```JSON
{
"groups": [
{
"groupId": "default",
"template": "Dimension: {dimName}"
},
{
"groupId": "gcsatellite",
"template": "Orbiting around {planet} on a space station"
},
{
"groupId": "gcmoon",
"template": "On moon {moon} around {planet}"
},
{
"groupId": "gcplanet",
"template": "On planet {planet}"
},
{
"groupId": "rftools",
"template": "RFTools dimension: {rftools}"
}
],
"dimensions": [
{
"dimName": "moon.moon",
"template": "On the moon"
},
{
"dimName": "twilight_forest",
"template": "The Twilight Forest"
},
{
"dimName": "hunting_dim",
"template": "The hunting dimension"
},
{
"dimName": "the_nether",
"template": "The Nether"
},
{
"dimName": "the_end",
"template": "The End"
},
{
"dimName": "overworld",
"template": "The Overworld"
},
{
"dimName": "planet.asteroids",
"template": "Jumping on some Asteroids"
}
]
}
```
:::
I will explain what every thing in the example about does.
## Groups
First of all we have groups. Every group has an ID, and a template. In this template you can use several variables. On every group you always have the {dimName} and {DimId} Theese wil be the internal name of the dimension without any underscores and the numerical ID of the dimension.
**Currently the following groups are supported with their variables**
* default: The group that is every dimension thatis not in another group
* No extra variables outside of dimName and dimId
* gcsatellite: When on a space station from the Galacticraft mod
* {planet}: The name of the planet you are orbitting (localized)
* {name}: The name of the space station
* gcmoon: When you are on a moon from the Galacticraft mod
* {moon}: The name of the moon you are on (localized)
* {planet}: The name of the planet you are orbitting (localized)
* gcplanet: When you are on a planet from the Galacticraft mod
* {planet}: The name of the planet you are orbitting (localized)
* rftools: When you are in a RFTools Dimensions dimension
* {rftools}: The given name of the rftools dimension
The groups can be set in any order, they just need to have a groupId and a template
## Dimensions
You can also set up the dimensions themselves.
The dimensions will need to be set by using the dimension name AKA the {dimName} variable. Dimensions also have both {dimName} and {dimID} as variable data.
Theese will always be prioritized above the group. So for example if you have both gcmoon and moon.moon set ip it will pick moon.moon.
## Diminfo command
Starting on version 2.0 you also have a /diminfo command. This will give you the info about the dimension you are currently in. It will give you the dimName, the dimId and what group it is part of.
Example:
![](https://i.imgur.com/siznakj.png)