Closed UkuleleBoy46 closed 10 months ago
I'm having the same issue. Description of the mod says there's a config file that can be edited, but starting an instance with only this mod installed creates no config file.
EDIT: Clarrity correction: 3 config files are created:
fml.toml
forge-client.toml
sdrp-common.json
None of which appear to allow the changing Rich Presence.
Sorry, missed this, basically 90% of the config is on the side of the Discord app
See the following example:
We have some predefined images we'll attempt to use:
menu
When the main menu is showingloading
When the game is loadingAfter that, we either use the KubeJS integration:
sdrp.dimension_change((event) => {
const { player } = event;
if (!player) {
return;
}
if (!player.level) {
return;
}
// // Message (lang key), Image Name (the one you set in discord), Image Key (lang key)
event.updateSDRPState("sdrp.team.in", "sdrp.team", "some_dimension_name");
});
Otherwise, we'll attempt to set it automatically based on the dimensions name:
sdrp.[DIMENSION_NAME]
(Language key)sdrp.[DIMENSION_NAME].in
[DIMESNION_NAME]
So for this to work, you'd need to have an image added to your Discord apps rich presents settings under the name of the dimension you want to support.
If I wanted to support the end and the overworld for example. Their names are as follows minecraft:overworld
, minecraft:the_end
. We ignore the minecraft:
part and name the images the_end
and overworld
. We then add a language key to the language Json for both the Image Key
and Name
:
{
"sdrp.overworld": "Overworld",
"sdrp.overworld.in": "In the Overworld"
}
We support all of these without the need for doing anything more than adding the images to your application on Discord
Oh, I see! Thank you.
Thanks for the info.
It seems complicated and doesn't seem to answer the question I had set out to answer: how do I add information such as current biome and/or health status?
On Sun, Dec 17, 2023, 5:04 PM Michael Hillcox, @.***> wrote:
Closed #25 https://github.com/nanite/Simple-Discord-Rich-Presence/issues/25 as completed.
— Reply to this email directly, view it on GitHub https://github.com/nanite/Simple-Discord-Rich-Presence/issues/25#event-11269414532, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV7SKEBE6FV2APVJQX5ECTYJ5UAPAVCNFSM6AAAAAAQ25RHQ2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGI3DSNBRGQ2TGMQ . You are receiving this because you commented.Message ID: <nanite/Simple-Discord-Rich-Presence/issue/25/issue_event/11269414532@ github.com>
Hello, Sunekaer, I'm wondering how I change the images and things that show up on Discord. Can you please help me, I don't understand. Thank you!