介绍
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
Nanite 的其他作品
查看全部 →Better Compatibility Checker
将默认的服务器兼容性检查改为比较整合包版本
Yeetus Experimentus
禁用创建或加载世界时出现的实验性设置弹窗。
Accelerated Decay
加快树叶腐烂速度
Just Hammers
为游戏添加了能够进行 3×3、3×3×3、5×5×1、5×5×3,甚至 5×5×5 范围挖掘的锤子!非常酷。
评论
登录后评论和评分