截图
介绍
中文介绍正在准备中,下面暂时显示原文。
NUMBER CONVERTER
A library datapack to make long numbers or scores readable.
Convert a value
Example command
function nc:convert/value {value:"1874"}
output
command: data get storage minecraft:number_converter
output: {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"}}
Directly convert the score
Example command
scoreboard players set tpcoffline your_objective 6452326
function nc:convert/score {name:"tpcoffline",objective:"your_objective"}
output
command: data get storage minecraft:number_converter
output: {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"}}
Example usage
_- Write the player’s “money” score in chat._
command
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}
output

常见问题
Number Converter 支持哪些 Minecraft 版本?
Number Converter 支持 Minecraft Java 版 1.21.5。下载时注意选择和你游戏版本一致的文件。
Number Converter 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
CrafTea 的其他作品
查看全部 →
Thirst Bar
by CrafTea, 3geE
Adds a thirst bar to the game.
2.9万
1 个月前
Modrinth
Glass Hotbar Connected
by CrafTea, 3geE
This resource pack changes the hotbar background to glass.
2.8万
3 个月前
Modrinth
Dennis Painting On Java Mod
by CrafTea, 3geE
Adds the Dennis(Good Boy) painting from Bedrock Edition to Java Edition.
1.3万
1 年前
Modrinth
Coordinate Bar
by 3geE, CrafTea
Displays your current coordinates in the action bar.
1.1万
1 年前
Modrinth
评论
登录后评论和评分