What are you searching for?

Simple Rich Discord Presence

Simple Rich Discord Presence

Simple Discord Rich Presence

download 3.7M Downloads · favorite 64 Followers · Updated 2 weeks ago
Fabric Forge Neoforge Social Utility 1.14.4 1.15 1.15.1 1.15.2 1.16.1 +30 more

Versions

inventory_2
[FABRIC][1.21.11] SimpleDiscordRichPresence 98.0.1

98.0.1 · 2 weeks ago · 73.53 KB

Release download
Fabric 1.21.11
inventory_2
[NEOFORGE][1.21.11] SimpleDiscordRichPresence 98.0.1

98.0.1 · 2 weeks ago · 77.89 KB

Release download
Neoforge 1.21.11
inventory_2
[FABRIC][1.21.1] SimpleDiscordRichPresence 88.0.1

88.0.1 · 2 weeks ago · 73.52 KB

Release download
Fabric 1.21.1 1.21.2 1.21.3
inventory_2
[FABRIC][1.21.1] SimpleDiscordRichPresence 88.0.1

88.0.1 · 2 weeks ago · 73.52 KB

Release download
Fabric 1.21.1 1.21.2 1.21.3
inventory_2
[NEOFORGE][1.21.1] SimpleDiscordRichPresence 88.0.1

88.0.1 · 2 weeks ago · 78.00 KB

Release download
Neoforge 1.21.1 1.21.2 1.21.3

About

Simple Discord Rich Presence

Config:

clientId: "Your Discord App ID"
enable: "If you wish to disable Discord Rich Presence, set this to false."
screenEvent: If set to false, it disables the build in screenEvent, which is used to tell when we are on the main menu."
clientJoinEvent: If set to false, it disables the build in clientJoinEvent, which is used to tell when the player is joining a world and changing Dimension."

KubeJS Integration

Functions:

SDRP.setState( String message, String imageName, String imageKey )
message: message to show under the packname aka "In Overworld" or "In Nether", can be passed a string with the text to show or a lang key.
imageName: the text to show when hovering over the small image aka "Overworld" or "Nether", can be passed a string with the text to show or a lang key.
imageKey : the name Rich Present Art Asset to show, like loading, overworld, menu and so on.

SDRP.getCurrentState()
Gets the current state the client is set to.

Examples:
Update state on dimension change and joining world.
kubejs/startup_script/sdrp.js
onForgeEvent(  
  "net.minecraftforge.event.entity.EntityJoinWorldEvent",  
  (event) => {  
    if (event.getEntity().type === "entity.minecraft.player") {  
      if (event.getWorld().isClientSide()) {  
        const dimPath = event.getWorld().dimension().location().getPath();  
          SDRP.setState(`sdrp.${dimPath}.in`, `sdrp.${dimPath}`, "dimPath");  
      }  
    }  
  }  
);

Image keys for if you are using your own Rich Presence Application. (Images used on the default Rich Presence Application can be found HERE)

logo  
loading  
menu

For dimensions, the key will be the registry name path of the dimension like:

overworld  
the_nether  
the_end  
yamda_dim  

For the message (stuff like "In Overworld") is done via lang keys "sdrp..in"
For imageName (stuff like "Overworld" when hovering over the small image) is done via lang keys "sdrp."

Lang keys can be modified and added via data packs and using mods like KubeJS

open_in_new View on Modrinth
Compatibility
Client: Required Server: Unsupported
gavel LicenseRef-All-Rights-Reserved

Conversation

What are your thoughts?

Related projects

Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.0M
favorite 12,704
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.4M
favorite 22,097
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 65.8M
favorite 7,589
Adventure Transportation Utility
Xaero's Minimap
Xaero's Minimap

by thexaero

Displays a map of the nearby world terrain, players, mobs, entities in the corner of your screen. Lets you create waypoints which help you find the locations you've marked.

download 60.6M
favorite 13,650
lock Cookie consent

SkinMC uses cookies to provide functionality and features.