Simple Rich Discord Presence

Simple Discord Rich Presence

Редакция NLZONE · 2 мин чтения · 4 просмотра
Simple Rich Discord Presence
Скачать Simple Rich Discord Presence1.14.4 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Simple Discord Rich Presence

  • Тип: мод
  • Загрузчик: fabric, forge, neoforge
  • Версии Minecraft: 1.14.4 – 26.3
  • Скачиваний на Modrinth: 7 674 767

Подробно

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."

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/startupscript/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)

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

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

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также