Discord 富文本状态显示

SDRP 是一个用于 Minecraft 的简易 Discord Rich Presence 客户端,允许你在 Discord 上显示你当前的 Minecraft 状态。

资源介绍

SDRP 是什么? SDRP 是一个用于 Minecraft 的简易 Discord Rich Presence 客户端,允许你在 Discord 上显示你当前的 Minecraft 状态。 如何使用 SDRP? 只需从 CurseForge 下载模组并将其放入你的 mods 文件夹。这是一个仅客户端的模组,因此你无需在服务器上安装它。 随后你需要在 Discord 上创建一个应用程序。你可以通过访问 Discord 开发者门户 并点击“新建应用程序”来做到这一点。给它起个名字然后点击“创建”。 在应用的 General Information 标签页下附加一张图片。这将是当状态不是正在玩 Minecraft 时在 Discord 上显示的图片。 转到 Rich Presence 标签页并添加一张新图片。这将是当状态正在玩 Minecraft 时在 Discord 上显示的图片。 一旦你创建了应用程序,你需要附加具有正确名称的图片以便模组正常工作。 我们在 images 文件夹中提供了示例图片。这些图片具有正确的名称,使模组开箱即用。 正确的配置如下所示: 如果你想设置自己的图片,可以遵循下一节。 注意事项 我们总是尝试使用名为 loading 和 menu 的图片,分别对应游戏加载中或处于主菜单时。如果你没有这些图片,模组将简单地无法为这些状态显示图片。 menu 当显示主菜单时 loading 当游戏加载中时 使用自定义图像 如果您未使用 KubeJS 集成,则需要遵循我们关于图像命名和语言键的约定。约定如下: 名称: sdrp.[DIMENSION_NAME] (语言键) 图像键: sdrp.[DIMENSION_NAME].in 图像名称: [DIMESNION_NAME] 因此,为了使此功能生效,您需要将图像添加到您的 Discord 应用程序丰富呈现设置中,其名称为您希望支持的维度的名称。 例如,如果我想支持末地(The End)和主世界(Overworld)。它们的名称如下: minecraft:overworld , minecraft:the_end 。我们忽略 minecraft: 部分,并将图像命名为 the_end 和 overworld 。然后,我们为两种语言在语言 Json 中添加一个语言键,分别是 Image Key 和 Name : { "sdrp.overworld": "Overworld", "sdrp.overworld.in": "In the Overworld" } 我们开箱即用的支持功能 维度 我们省略了 modid 来自维度名称并使用 name 代替。因此 minecraft:overworld 变为 overworld . overworld the_nether the_end compact_world dungeon spatial_storage otherside paradise_lost mining 并非所有这些维度在 images 文件夹中都有示例图片 语言 { "sdrp.logo": "Pack Logo", "sdrp.mainmenu": "Main Menu", "sdrp.overworld.in": "In Overworld", "sdrp.overworld": "Overworld", "sdrp.the_nether.in": "In Nether", "sdrp.the_nether": "Nether", "sdrp.the_end.in": "In The End", "sdrp.the_end": "The End", "sdrp.compact_world.in": "In Compact World", "sdrp.compact_world": "Compact World", "sdrp.dungeon.in": "In Dungeon World", "sdrp.dungeon": "Dungeon World", "sdrp.spatial_storage.in": "In Spatial Storage", "sdrp.spatial_storage": "Spatial Storage", "sdrp.otherside.in": "In Otherside", "sdrp.otherside": "Otherside", "sdrp.paradise_lost.in": "In Paradise Lost", "sdrp.paradise_lost": "Paradise Lost", "sdrp.mining": "Mining Dimension", "sdrp.mining.in": "In Mining dimension" } 配置 { "clientId": 1000000000, // Your Discord application ID "enabled": true, // Whether or not the mod is enabled "screenEvent": false, // Disables the `menu` and `loading` images "clientJoinEvent": false, // Disables the level join events which will prevent the mod from showing the level you are in "logState": false, // Enables developer logging of the state json being sent to Discord }

在鱼乐云资源中心浏览该资源,登录后可一键安装到你的游戏服务器。

返回资源中心