PlayerBiomes
- 使用 /whatbiome 查找你所在的生物群系
- 向玩家发送特定于玩家的生物群系名称翻译
- 使用 PlaceholderAPI 占位符以多种格式获取玩家所在生物群系的名称
- 提供与客户端看到的完全相同的名称,这意味着它支持自定义生物群系(如 Terralith、Incendium 等数据包)
命令
/playerbiomes reload (别名 /pb reload):
权限:playerbiomes.command.reload(默认为 false)
描述:重载 PlayerBiomes 的配置,并刷新翻译缓存。
/whatbiome (别名 /whereami):
权限:playerbiomes.command.whatbiome(默认为 true)
描述:显示执行命令的玩家当前所在的生物群系名称。
配置
(config.yml)
选项旁边的注释中描述了相关说明。这里是最新的 config.yml
在 plugins/PlayerBiomes/ 文件夹内,可以创建一个名为 lang 的文件夹,并在其中放置多个命名为 <locale>.json 的 JSON 文件,这些文件包含该语言环境的生物群系名称翻译。你可以选择从 Minecraft Java 客户端 .jar 文件中提取这些文件,或者从托管这些文件的网站动态下载。默认情况下禁用下载功能。请阅读配置文件以获取更多信息。
占位符
[客户端使用的 Fabric Mod Caxton 用于渲染泰米尔字体 (使用的资源包)。快去看看吧!]
%playerbiomes_biome_raw%:
提供生物群系的完整命名空间 ID
示例:
"minecraft:jungle"
"terralith:moonlight_grove"
"terralith:caves/deep_caves"
"incendium:weeping_valley"
%playerbiomes_biome_name% 和 %playerbiomes_biome_name_english%:
提供生物群系的首字母大写名称(移除命名空间 ID 中的内部路径)
示例:
minecraft:jungle 变为 "Jungle"
terralith:moonlight_grove 变为 "Moonlight Grove"
terralith:caves/deep_caves 变为 "Deep Caves"
incendium:weeping_valley 变为 "Weeping Valley"
%playerbiomes_biome_namespace%:
提供生物群系命名空间的首字母大写名称
示例:
minecraft:jungle 变为 "Minecraft"
terralith:moonlight_grove 变为 "Terralith"
terralith:caves/deep_caves 变为 "Terralith"
incendium:weeping_valley 变为 "Incendium"。
%playerbiomes_biome_formatted% 和 %playerbiomes_biome_formatted_english%:
以以下格式提供生物群系的完整命名空间 ID:<Namespace>: <Biome Name Capitalized>
示例:
minecraft:jungle 变为 "Minecraft: Jungle"
terralith:moonlight_grove 变为 "Terralith: Moonlight Grove"
terralith:caves/deep_caves 变为 "Terralith: Deep Caves"
incendium:weeping_valley 变为 "Incendium: Weeping Valley"
以 _english 结尾的占位符使用旧方法,该方法直接使用字符串操作从命名键获取名称。
支持和功能请求仅可在 SpigotMC Resource Discussion Tab / Discord 中进行!请勿使用 Issues 标签页。
感谢 @mfnalex 和 @RoughlyUnderscore 对本插件初始版本的帮助!感谢 @si6gma (Discord) 在字符串操作方面提供的帮助 (< 6.0.0 版本)!
本插件利用 JeffLib 库来获取 1.19.3 之前游戏版本的生物群系命名键。
构建步骤:
- 克隆项目(选择你需要的版本/分支)
- 使用
mvn install进行构建
PlayerBiomes
- Use /whatbiome to find what biome you are in
- Send player-specific translations of biome names to players
- Get the player's biome name formatted in various ways using PlaceholderAPI placeholders
- Gives you the exact same name that the client sees which means it supports custom biomes (datapacks like Terralith, Incendium, etc.)
Commands
/playerbiomes reload (alias /pb reload):
Permission: playerbiomes.command.reload (false by default)
Description: Reloads the configuration of PlayerBiomes, and refreshes the translation cache.
/whatbiome (alias /whereami):
Permission: playerbiomes.command.whatbiome (true by default)
Description: Displays the name of the current biome of the player running the command.
Configuration
(config.yml)
Options are described in comments beside them. Here is the latest config.yml
Inside the plugins/PlayerBiomes/ folder, a folder named lang can be created and in it, can be multiple json files named <locale>.json that contain translations of biome names for that locale. You can either extract these from the Minecraft Java client .jar file
, or download these on the fly from a website that hosts those files. Downloading is disabled by default. Read the config for more info.
Placeholders
[Fabric Mod Caxton used on Client to render the Tamil font (Resource Pack Used). Check it out!]
%playerbiomes_biome_raw%:
Gives the complete namespaced ID of the biome
Examples:
"minecraft:jungle"
"terralith:moonlight_grove"
"terralith:caves/deep_caves"
"incendium:weeping_valley"
%playerbiomes_biome_name% and %playerbiomes_biome_name_english%:
Gives the Capitalized name of the biome (Removes the internal path of biomes from the Namespaced ID)
Examples:
minecraft:jungle becomes "Jungle"
terralith:moonlight_grove becomes "Moonlight Grove"
terralith:caves/deep_caves becomes "Deep Caves"
incendium:weeping_valley becomes "Weeping Valley"
%playerbiomes_biome_namespace%:
Gives the Capitalized nameSPACE of the biome
Examples:
minecraft:jungle becomes "Minecraft"
terralith:moonlight_grove becomes "Terralith"
terralith:caves/deep_caves becomes "Terralith"
incendium:weeping_valley becomes "Incendium".
%playerbiomes_biome_formatted% and %playerbiomes_biome_formatted_english%:
Gives the full namespaced ID of the biome in the format: <Namespace>: <Biome Name Capitalized>
Examples:
minecraft:jungle becomes "Minecraft: Jungle"
terralith:moonlight_grove becomes "Terralith: Moonlight Grove"
terralith:caves/deep_caves becomes "Terralith: Deep Caves"
incendium:weeping_valley becomes "Incendium: Weeping Valley"
Placeholders ending with _english use the old method that gets the name from the namespaced key directly using string manipulation.
Support and Feature Requests in SpigotMC Resource Discussion Tab / Discord only! Do NOT use the issues tab for this.
Thanks @mfnalex and @RoughlyUnderscore for helping with the initial version of this plugin! Thanks to @si6gma (Discord) for help with string manipulation (< 6.0.0)!
The plugin utilizes the JeffLib library for getting the biome namespaced key for game versions older than 1.19.3.
Building:
- Clone the project (the version/branch of your choice)
- Build using
mvn install
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PlayerBiomes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新内容
- 支持 Folia 服务器
- 就这些了
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧