一个高度可自定义的服务端 Minecraft 模组,可在玩家列表中查看玩家当前所处的维度。
> 现在支持 Fabric、Forge 和 NeoForge!
>
> Fabric 版本需要 Fabric API(CurseForge 或 Modrinth)
Dimension Viewer 应该兼容所有维度。但在某些情况下,悬停时显示的模组名称可能格式不正确,因为该模组使用 modid 来判断某个维度来自哪个模组。
会修改玩家列表名称格式(甚至常规显示名称)的模组很可能会与本模组产生冲突,不过目前我想不到有哪些可以用来测试。如果你发现任何问题,请提交 issue!谢谢!
现在可以为模组添加的维度单独设置颜色。
1.4.0 版本新增
现在可以为维度名称设置别名,从而修改每个维度显示的名称。
2.1.0 版本新增
无需修改配置文件,也可以通过斜杠命令配置模组!
通过修改配置文件,你可以按维度更改文本颜色*、允许在聊天消息中显示维度,并更改维度的整体显示格式,还可以使用 Minecraft 文本格式,例如下划线、粗体和斜体。
对于 (Neo)Forge,配置文件位于 [Server Folder]/config/dimensionviewer-common.toml;对于 Fabric,位于 [Server Folder]/config/dimensionviewer.json。
所做的任何更改都会在保存配置文件后立即生效。
下面是一个配置示例:
配置示例与设置说明
listFormat - 字符串%d - 维度(必需)%i - 斜体%b - 粗体%u - 下划线%s - 删除线%o - 混淆文本%% - 字面量 %% 后面的任意字符都会被解释为 token 并移除,所以如果你想在名称中使用百分号,请使用 %%
dimensionPosition - 字符串PREPEND - 位于玩家名称之前APPEND - 位于玩家名称之后defaultColor - 字符串PERDIMCOLOR 为 false,或某个未在 MODDED_DIMS 中定义的自定义维度出现时,设置要使用的默认字体颜色DARKRED, RED, GOLD, YELLOW, DARKGREEN, GREEN, AQUA, DARKAQUA, DARKBLUE, BLUE, LIGHTPURPLE, DARKPURPLE, WHITE, GRAY, DARK_GRAY, BLACK
CUSTOM_COLORS 中定义的任意自定义颜色名称overworldColor, netherColor 和 endColor - 字符串perDimColor 设置为 true 时,用于更改原版维度的颜色defaultColor 相同的输入perDimColor - 布尔值DEFAULT_COLOR 中定义的同一种颜色dimInChatName - 布尔值enableAliases - 布尔值DIM_ALIASES 中条目匹配的维度,其显示名称都会替换为别名名称。moddedDimensions - 字符串数组modid:dim_id color
twilightforest:twilight_forest GOLD
dimensionAliases - 字符串数组modid:dim_id New Name(允许空格)Overworld 替换为 The Grasslands,可使用 minecraft:overworld The Grasslands
ENABLE_ALIASES 为 false,则不会生效listFormat)minecraft:overworld %b%d
customColors [VERSION 2.0.0+] - 字符串数组COLORNAME #HEX 表示十六进制颜色,或 COLORNAME r000 g000 b000 表示 RGB 颜色。HOT_PINK #C62F75
FUTURE_PURPLE r152 g154 b255
(Neo)Forge 示例
(Neo)Forge 配置文件中为每个设置项以及该设置项可用的有效选项都附带了注释。
#Customization Settings
[customization]
#The color to use for the dimension font if perDimColorPath is false.
#(In the event of a modded dimension being entered, this color will be used as a fallback)
fontColor = "DARK_AQUA"
#Global toggle for dimension aliases. Requires aliases to be set below.
enableAliases = true
#Format that will be used to display the dimension in the tab list with the use of tokens:
# %d - Dimension Name
# %i - Italic font
# %b - Bold font
# %u - Underline font
# %o - Obfuscated font
# %s - Strikethrough font
listFormat = "%i"
#Whether the dimension should be placed before or after the player name
#Allowed Values: PREPEND, APPEND
dimensionPosition = "APPEND"
#Should each dimension have its own color?
perDimColor = true
#Per-Dimension Customization
[customization.dimension]
#Color to use for the Overworld
#Allowed Values: DARK_RED, RED, GOLD, YELLOW, DARK_GREEN, GREEN, AQUA, DARK_AQUA, DARK_BLUE, BLUE, LIGHT_PURPLE, DARK_PURPLE, WHITE, GRAY, DARK_GRAY, BLACK
overworldColor = "DARK_GREEN"
#Color to use for the Nether
#Allowed Values: DARK_RED, RED, GOLD, YELLOW, DARK_GREEN, GREEN, AQUA, DARK_AQUA, DARK_BLUE, BLUE, LIGHT_PURPLE, DARK_PURPLE, WHITE, GRAY, DARK_GRAY, BLACK
netherColor = "DARK_RED"
#Color to use for the End
#Allowed Values: DARK_RED, RED, GOLD, YELLOW, DARK_GREEN, GREEN, AQUA, DARK_AQUA, DARK_BLUE, BLUE, LIGHT_PURPLE, DARK_PURPLE, WHITE, GRAY, DARK_GRAY, BLACK
endColor = "FUTURE_PURPLE"
#Chat-related Customization
[customization.chat]
#Should a users' current dimension be added to chat messages?
dimInChatName = true
#Add a hover effect in chat that will display which mod added the dimension
#Requires 'dimInChatName' to be set to true
chatDimHover = true
#Modded Dimension Customization
[customization.modded]
#A list of aliases to use instead of the original dimension ID.
#Uses the format 'modid:dim_id New Name'.
#For example, to replace 'Overworld' with 'Grasslands' you would use 'minecraft:overworld Grasslands'
dimensionAliases = ["minecraft:the_end ULTIMA THULE"]
#A list of modded dimension resource IDs and a color in the format of "modid:dim_id color"
#For example, Twilight Forest in Gold would be "twilightforest:twilight_forest GOLD"
#Will throw an exception if the color is not valid
#Allowed Values: DARK_RED, RED, GOLD, YELLOW, DARK_GREEN, GREEN, AQUA, DARK_AQUA, DARK_BLUE, BLUE, LIGHT_PURPLE, DARK_PURPLE, WHITE, GRAY, DARK_GRAY, BLACK
moddedDimensionIds = ["twilightforest:twilight_forest GOLD"]
#Extra Customization
[customization.extra]
#Custom colors can be defined here.
#Uses the format 'COLOR_NAME #HEX' or 'COLOR_NAME r000 g000 b000'
#If a custom color of the same name already exists the server will reject the newest one.
#The name must be uppercase and can only contain letters and underscores.
custom_colors = ["HOT_PINK #C62F75", "FUTURE_PURPLE r152 g154 b255"]
Fabric 配置
由于 Fabric 配置文件的保存与加载功能需要手动编写,因此其存储和布局方式与 (Neo)Forge 配置文件不同。设置项本身完全相同,只是遗憾的是没有注释。
这是我未来会尝试改进的地方。
{
"listFormat": "%i",
"dimensionPosition": "APPEND",
"defaultColor": "HOT_PINK",
"overworldColor": "DARK_GREEN",
"netherColor": "FUTURE_PURPLE",
"endColor": "HOT_PINK",
"perDimColor": true,
"dimInChatName": true,
"chatDimHover": true,
"enableAliases": true,
"moddedDimensions": ["twilightforest:twilight_forest GOLD"],
"dimensionAliases": ["minecraft:overworld %bThe Grasslands", "minecraft:the_nether %u%d", "minecraft:the_end %oEnd"],
"customColors": ["HOT_PINK #C62F75", "FUTURE_PURPLE r152 g154 b255"]
}
查看更新日志
Version 2.1.0
Version 2.0.0
Version 1.4.0
Version 1.3.1
Version 1.3.0
refreshPlayerList 更改为 refreshplayerlist,以更贴近原版命令风格。Version 1.2.0
(我也不记得为什么我是从 1.2.0 开始的……)
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:172,096 | 历史访问人次:272,286
今日访问人数:9,074 | 今日访问人次:10,179
昨日访问人数:23,567 | 昨日访问人次:27,193
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6