modsmith Войти Войти Рус / Eng

Simple Rich Discord Presence

srdp · 7550091 загрузок · LicenseRef-All-Rights-Reserved

социальноеутилиты

клиент: required · сервер: unsupported (заявлено автором мода)

Simple Discord Rich Presence

Описание

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.<registry name path of the dimension>.in"
For imageName (stuff like "Overworld" when hovering over the small image) is done via lang keys "sdrp.<registry name path of the dimension>"

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

Версии (60)

ВерсияMinecraftЗагрузчикиФайл
26.3.0.1 26.3 fabric скачать
26.3.0.1 26.3 neoforge скачать
26.2.0.1 26.2 fabric скачать
26.2.0.1 26.2 neoforge скачать
26.1.2.1 26.1, 26.1.1, 26.1.2 fabric скачать
26.1.2.1 26.1, 26.1.1, 26.1.2 neoforge скачать
99.0.0 26.1 fabric скачать
99.0.0 26.1 neoforge скачать
98.0.1 1.21.11 fabric скачать
98.0.1 1.21.11 neoforge скачать
88.0.1 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 fabric скачать
88.0.1 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 fabric скачать
88.0.1 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 neoforge скачать
98.0.0 1.21.11 neoforge скачать
98.0.0 1.21.11 fabric скачать
97.0.0 1.21.10, 1.21.9 neoforge скачать
97.0.0 1.21.10, 1.21.9 fabric скачать
88.0.0 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 fabric скачать
88.0.0 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8 neoforge скачать
91.0.0 1.21.4 neoforge скачать
91.0.0 1.21.4 fabric скачать
87.0.1 1.21 neoforge скачать
87.0.1 1.21 fabric скачать
87.0.0 1.21 fabric скачать
87.0.0 1.21 neoforge скачать
86.0.1 1.20.6 neoforge скачать
86.0.1 1.20.6 fabric скачать
6.0.2 1.20.4 neoforge скачать
6.0.2 1.20.4 forge скачать
6.0.2 1.20.4 fabric скачать
6.0.1 1.20.4 neoforge скачать
6.0.1 1.20.4 forge скачать
6.0.1 1.20.4 fabric скачать
86.0.0 1.20.6 neoforge скачать
86.0.0 1.20.6 fabric скачать
7.0.0 1.20.5 neoforge скачать
7.0.0 1.20.5 fabric скачать
6.0.0 1.20.4 neoforge скачать
6.0.0 1.20.4 forge скачать
6.0.0 1.20.4 fabric скачать
5.0.0 1.20.2 neoforge скачать
5.0.0 1.20.2 fabric скачать
5.0.0 1.20.2 forge скачать
4.0.3 1.20.1 forge скачать
4.0.3 1.20.1 fabric скачать
3.0.6 1.19.2 forge скачать
3.0.6 1.19.2 fabric скачать
3.0.5-build.37+mc1.19.2 1.19.2 forge скачать
4.0.2 1.20.1 fabric скачать
4.0.2 1.20.1 forge скачать
build.13+mc1.19 1.19 forge скачать
1.0.0 1.14.4 forge скачать
1.0.1 1.14.4 forge скачать
1.0.2 1.14.4 forge скачать
1.0.3 1.14.4 forge скачать
1.1.0 1.15 forge скачать
1.2.0 1.15.1 forge скачать
1.2.4 1.15.2 forge скачать
1.2.5 1.15.2 forge скачать
1.2.6 1.15.2 forge скачать

Страница на Modrinth →