Number Converter

数据包

· 作者 tpcoffline

使长数字和分数更易读。

0 本站下载 0 关注 更新于 1 年前

最新 1.0 · 1.21.5 · 数据包

一键开服(送7天)

数字转换器

一个用于使长数字或分数更易读的库数据包。

转换数值

示例命令

function nc:convert/value {value:"1874"}

输出

命令: data get storage minecraft:number_converter

输出: {output:{decimal_number:8,main_number:1,negative:0b,number:"1.8k",
number_without_suffix:"1.8",old_number:1874,positive:1b,prefix:"+",suffix:"k"}}

直接转换计分板分数

示例命令

scoreboard players set tpcoffline your_objective 6452326
function nc:convert/score {name:"tpcoffline",objective:"your_objective"}

输出

命令: data get storage minecraft:number_converter

输出: {output:{decimal_number:4,main_number:6,negative:0b,number:"6.4m",number_without_suffix:"6.4",
old_number:6452326,positive:1b,prefix:"+",suffix:"m"}}

使用示例

- 在聊天栏中显示玩家的“金钱”分数。

命令

scoreboard players set tpcoffline money 567428
function nc:convert/score {name:"tpcoffline",objective:"money"}
tellraw @a {"nbt":"output.number","storage":"number_converter","color":"gold","bold":true}

输出

游戏内截图

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源