BlossomLib
BlossomLib 是一个为 Blossom 系列模组构建的 Minecraft Fabric 库类模组。
目录
依赖项
- Fabric API (CurseForge / Modrinth), 或者 Quilt Standard Libraries (Modrinth) 如果使用 Quilt
- fabric-permissions-api / LuckPerms / 等。(可选)
- server-translations-api(已嵌入)
配置
在至少运行一次包含该模组的服务器后,可以找到此库的配置文件 config/BlossomMods/BlossomLib.json。
logging: LoggingConfig - 与 BlossomMods 日志记录相关的设置
baseTeleportation: TeleportationConfig - 默认传送设置
colors: Colors - 文本颜色
dimNameOverrides: Map<String, String> - 维度名称覆盖映射表,例如设置为
{ "minecraft:the_nether": "The Underworld" } 可将下界显示为 The Underworld
enableMC124177Fix: boolean - 启用对 MC-124177 的修复 / CrossDimTPFix
LoggingConfig
consoleLogLevel: String (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL) - 控制台输出的 BlossomMods 日志级别
fileLogLevel: String (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL) - 文件输出的 BlossomMods 日志级别
fileLogPath: String - 放置 BlossomMods 日志文件的位置
fileLogAppend: boolean - 是否在服务器启动时保留旧的 BlossomMods 日志
disableCustomLogger: boolean - 如果发生模组不兼容,是否完全绕过自定义日志记录器
TeleportationConfig
bossBar: BossBar - 修改 Boss 栏的设置
titleMessage: TitleMessage - 修改标题消息的设置
actionBarMessageEnabled: boolean - 是否在倒计时期间在行动栏中显示消息
fovEffectBefore: CubicBezierCurve - 传送前的视野 (FOV) 动画
fovEffectAfter: CubicBezierCurve - 传送后的视野 (FOV) 动画
cancelOnMove: boolean - 如果玩家移动,是否取消倒计时
particleAnimation: ParticleAnimation - 使用哪种粒子动画
BossBar
enabled: boolean - 是否启用 Boss 栏
color: String (pink, blue, red, green, yellow, purple, white) - Boss 栏的颜色
textColor: String (有效文本颜色) - Boss 栏名称的颜色
TitleMessage
titleCounting: TitleConfig* - 修改计数标题显示的设置
subtitleCounting: TitleConfig* - 修改计数副标题显示的设置
titleDone: TitleConfig - 修改完成标题显示的设置
subitleDone: TitleConfig - 修改完成副标题显示的设置
TitleConfig
color: String (有效文本颜色) - 标题/副标题的颜色
modifiers: String - 字符 b - 粗体, i - 斜体, u - 下划线, o - 混淆, s - 删除线,可以按任意顺序出现
*counterColor: String (有效文本颜色) - 标题/副标题中计数的颜色
CubicBezierCurve
enabled: boolean - 是否播放动画
values: float[4] - 定义三次贝塞尔曲线的 4 个值;第 1 和第 3 个值必须在 0 到 1 之间,否则会出现奇怪的情况!
start: float - 起始值
end: float - 最终值
stepCount: int - 动画应生成的步数
Colors
这些颜色仅应用于 Blossom 模组的聊天响应
base: String - 大多数文本响应所使用的文本颜色
warn: String - 警告消息所使用的文本颜色
error: String - 错误消息所使用的文本颜色
success: String - 成功消息所使用的文本颜色
variable: String - 变量所使用的文本颜色
player: String - 玩家名称所使用的文本颜色
command: String - 命令所使用的文本颜色
commandDescription: String - 命令描述所使用的文本颜色
命令及其权限
/tpcancel- 取消任何正在进行的传送/倒计时 权限:blossom.tpcancel(默认:true)/blossomlib- 库专用命令 权限:blossom.lib.base-command(默认:OP 等级 2)reload-config- 从配置文件重新加载并应用配置 权限blossom.lib.base-command.reload-config(默认:OP 等级 3)clear-countdowns [<player>]- 清除所有或特定玩家的倒计时 权限blossom.lib.base-command.clear.countdowns(默认:OP 等级 2)clear-cooldowns [<player>] [<type>]- 清除所有或特定玩家的特定类型冷却时间 权限blossom.lib.base-command.clear.cooldowns(默认:OP 等级 2)debug- 调试命令 权限blossom.lib.base-command.debug(默认:OP 等级 4)countdown <standStill>- 创建任意倒计时teleport <standStill> [<cooldown>] <pos> <rot>- 创建任意传送fov <multiplier>- 设置玩家视野
仅显示包含可用参数的按键,如需完整列表,请查看
src/main/resources/data/blossom/lang/en_us.json
blossom.countdown.boss_bar.name: 1 个参数 - 剩余秒数blossom.countdown.action_bar.counting: 1 个参数 - 剩余秒数blossom.countdown.title.counting.title: 1 个参数 - 剩余秒数blossom.countdown.title.counting.subtitle: 1 个参数 - 剩余秒数blossom.clear-countdowns.one: 1 个参数 - 倒计时被清除的玩家blossom.clear-cooldowns.one: 1 个参数 - 冷却时间被清除的玩家blossom.clear-cooldowns.type: 2 个参数 - 冷却时间被清除的玩家,被清除的冷却时间类型blossom.debug.countdown.start: 1 个参数 - 停滞时间blossom.debug.teleport.no-cooldown: 1 个参数 - 停滞时间blossom.debug.teleport.cooldown: 2 个参数 - 停滞时间,冷却时间blossom.config-reload: 1 个参数 - 模块名称blossom.text.command.display: 1 个参数 - 显示文本blossom.text.command.plain: 1 个参数 - 显示文本/执行的命令blossom.text.command.description: 2 个参数 - 显示文本/执行的命令,描述
zh_cn(简体中文)、zh_tw(繁体中文)- 由 @BackWheel 添加
ko_kr(韩语)- 由 @biryeongtrain 添加
es_mx(西班牙语,墨西哥)- 由 @FabrizioCoder 添加
fr_fr(法语)- 由 @WalTho 添加
BlossomLib
BlossomLib is a Minecraft Fabric library mod build for the Blossom-series mods.
Table of contents
Dependencies
- Fabric API (CurseForge / Modrinth), or Quilt Standard Libraries (Modrinth) if using Quilt
- fabric-permissions-api / LuckPerms / etc. (Optional)
- server-translations-api (Embedded)
Config
This library's config file can be found at config/BlossomMods/BlossomLib.json, after running the server with
the mod at least once.
logging: LoggingConfig - settings to do with BlossomMods logging
baseTeleportation: TeleportationConfig - default teleportation settings
colors: Colors - text colors
dimNameOverrides: Map<String, String> - a map of dimension name overrides, for example set to
{ "minecraft:the_nether": "The Underworld" } to display The Nether as The Underworld
enableMC124177Fix: boolean - Enable a fix for MC-124177 / CrossDimTPFix
LoggingConfig
consoleLogLevel: String (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL) - BlossomMods logging level
for the console output
fileLogLevel: String (OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL) - BlossomMods logging level
for the file output
fileLogPath: String - where to put the BlossomMods log file
fileLogAppend: boolean - whether to keep the old BlossomMods logs on server startup
disableCustomLogger: boolean - whether to completely bypass the custom logger in case of a mod incompatibility
TeleportationConfig
bossBar: BossBar - settings altering the boss bar
titleMessage: TitleMessage - settings altering the title message
actionBarMessageEnabled: boolean - whether to show a message in the action bar when counting down
fovEffectBefore: CubicBezierCurve - FOV animation before the teleportation
fovEffectAfter: CubicBezierCurve - FOV animation after the teleportation
cancelOnMove: boolean - whether to cancel the countdown if the player moves
particleAnimation: ParticleAnimation - which particle animation to use
BossBar
enabled: boolean - whether the boss bar is enabled
color: String (pink, blue, red, green, yellow, purple, white) - the color of the boss bar
textColor: String (valid text color) - the color of the boss bar name
TitleMessage
titleCounting: TitleConfig* - settings altering the display of the counting Title
subtitleCounting: TitleConfig* - settings altering the display of the counting Subtitle
titleDone: TitleConfig - settings altering the display of the done Title
subitleDone: TitleConfig - settings altering the display of the done Subtitle
TitleConfig
color: String (valid text color) - color of the title / subtitle
modifiers: String - characters b - bold, i - italics, u - underline, o - obfuscated, s - strikethrough, can
appear in any order
*counterColor: String (valid text color) - color of the counter in the title / subtitle
CubicBezierCurve
enabled: boolean - whether to even play the animation at all
values: float[4] - 4 values defining the cubic-bezier curve; 1st & 3rd values must be between 1 and 0, weird
things will happen if they're not!
start: float - beginning value
end: float - final value
stepCount: int - how many steps the animation should generate
Colors
These colors will be only applied to Blossom mods chat responses
base: String - the text color in which most text responses will be
warn: String - the text color in which warning messages will be
error: String - the text color in which error messages will be
success: String - the text color in which success messages will be
variable: String - the text color in which variables will be
player: String - the text color in which player names will be
command: String - the text color in which commands will be
commandDescription: String - the text color in which command descriptions will be
Commands & their permissions
/tpcancel- cancel any ongoing teleport / countdown
Permission:blossom.tpcancel(default: true)/blossomlib- library specific commands
Permission:blossom.lib.base-command(default: OP level 2)reload-config- reload and apply config from the config file
Permissionblossom.lib.base-command.reload-config(default: OP level 3)clear-countdowns [<player>]- clear all or specific players countdowns
Permissionblossom.lib.base-command.clear.countdowns(default: OP level 2)clear-cooldowns [<player>] [<type>]- clear all or specific players specific type cooldowns
Permissionblossom.lib.base-command.clear.cooldowns(default: OP level 2)debug- debug commands
Permissionblossom.lib.base-command.debug(default: OP level 4)countdown <standStill>- create an arbitrary countdownteleport <standStill> [<cooldown>] <pos> <rot>- create an arbitrary teleportfov <multiplier>- set player FOV
Translation keys
only keys with available arguments are shown, for full list, please see
src/main/resources/data/blossom/lang/en_us.json
blossom.countdown.boss_bar.name: 1 argument - seconds remainingblossom.countdown.action_bar.counting: 1 argument - seconds remainingblossom.countdown.title.counting.title: 1 argument - seconds remainingblossom.countdown.title.counting.subtitle: 1 argument - seconds remainingblossom.clear-countdowns.one: 1 argument - player whose countdown was clearedblossom.clear-cooldowns.one: 1 argument - player whose cooldown was clearedblossom.clear-cooldowns.type: 2 arguments - player whose cooldown was cleared, type of cleared cooldownblossom.debug.countdown.start: 1 argument - standstill timeblossom.debug.teleport.no-cooldown: 1 argument - standstill timeblossom.debug.teleport.cooldown: 2 arguments - standstill time, cooldown timeblossom.config-reload: 1 argument - module nameblossom.text.command.display: 1 argument - display textblossom.text.command.plain: 1 argument - display text/command runblossom.text.command.description: 2 arguments - display text/command run, description
zh_cn (Chinese, Simplified), zh_tw (Chinese, Traditional) - added by @BackWheel
ko_kr (Korean) - added by @biryeongtrain
es_mx (Spanish, Mexico) - added by @FabrizioCoder
fr_fr (French) - added by @WalTho
下载 BlossomLib
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
下载 BlossomLib
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlossomLib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 更新以支持 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧