fz-survival-datapack/data/fz/functions/logger/load.mcfunction

14 lines
1.3 KiB
Mcfunction
Raw Normal View History

2022-06-23 15:43:39 +08:00
# 调用者:#fz:logger/load
##### 使用方式形如tellraw @a [{"nbt": "exception.load_without_install_exception", "interpret": true, "storage": "fz:logger"}, {"text": "计分板"}]
## 前缀
### 根
data modify storage fz:logger root set value '[{"text": "", "color": "white"} {"text": "[", "color": "dark_gray"}, {"text": "FZD", "color": "gold"}, {"text": "]", "color": "dark_gray"}]'
### 不同日志等级
data modify storage fz:logger level.debug set value '[{"text": "", "color": "dark_aqua"}, {"nbt": "root", "interpret": true, "storage": "fz:logger"}, {"text": "[调试]"}]'
data modify storage fz:logger level.info set value '[{"text": "", "color": "green"}, {"nbt": "root", "interpret": true, "storage": "fz:logger"}, {"text": "[信息]"}]'
data modify storage fz:logger level.warn set value '[{"text": "", "color": "yellow"}, {"nbt": "root", "interpret": true, "storage": "fz:logger"}, {"text": "[警告]"}]'
data modify storage fz:logger level.error set value '[{"text": "", "color": "red"}, {"nbt": "root", "interpret": true, "storage": "fz:logger"}, {"text": "[错误]"}]'
## 异常
2022-06-20 11:09:16 +08:00
data modify storage fz:logger exception.load_without_install_exception set value '[{"nbt": "log.error", "interpret": true, "storage": "fz:logger"}, {"text": "模块在未安装时被加载:"}]'