Skip to content

C20C01/TextDisplayGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

文本展示实体生成工具

一个网页,可以比较方便地生成召唤文本展示实体的命令。

文本展示实体

介绍文本展示实体

/summon minecraft:text_display ~0 ~0.5 ~-0.49 {text:'["", {"text":"文本展示实体(Text Display)", "color":"dark_green","bold":true}, "\\n\\n于", {"text":"1.19.4", "italic":true,"color":"dark_blue"}, "版本中加入,为展示", {"text":"大量文本", "bold":true,"color":"gold"}, "提供了新的手段。\\n\\n它支持基本的", {"text":"文本效果", "bold":true,"color":"gold"}, "(", {"text":"颜", "color":"dark_red"}, {"text":"色", "color":"light_purple"}, "、", {"text":"粗体", "bold":true}, "、", {"text":"斜体", "italic":true}, "等),同时提供了许多", {"text":"个性化选项", "bold":true,"color":"gold"}, "(", {"text":"背景颜色", "underlined":true,"color":"light_purple"}, "、", {"text":"文本对齐的方式", "underlined":true,"color":"yellow"}, "、", {"text":"整体的缩放", "underlined":true,"color":"aqua"}, "等),适用于公示信息、展示说明等需要大量文本的场景。"]', brightness:{block:15,sky:15}, background:-1778384896, alignment:"left", see_through:true, width:1f, height:1f, view_range:0.5f}

从1.12.5开始,文本组件不再使用Json,所以要用下面的命令:

/summon minecraft:text_display ~0 ~0.5 ~-0.49 {text:["", {"text":"文本展示实体(Text Display)", "color":"dark_green","bold":true}, "\n\n于", {"text":"1.19.4", "italic":true,"color":"dark_blue"}, "版本中加入,为展示", {"text":"大量文本", "bold":true,"color":"gold"}, "提供了新的手段。\n\n它支持基本的", {"text":"文本效果", "bold":true,"color":"gold"}, "(", {"text":"颜", "color":"dark_red"}, {"text":"色", "color":"light_purple"}, "、", {"text":"粗体", "bold":true}, "、", {"text":"斜体", "italic":true}, "等),同时提供了许多", {"text":"个性化选项", "bold":true,"color":"gold"}, "(", {"text":"背景颜色", "underlined":true,"color":"light_purple"}, "、", {"text":"文本对齐的方式", "underlined":true,"color":"yellow"}, "、", {"text":"整体的缩放", "underlined":true,"color":"aqua"}, "等),适用于公示信息、展示说明等需要大量文本的场景。"], brightness:{block:15,sky:15}, background:-1778384896, alignment:"left", see_through:true, width:1f, height:1f, view_range:0.5f}

提示

  • 将鼠标悬停在画着点点线的文本上,可以获得对应的提示信息。
  • 行宽为文本的最大宽度,单位长度约为1/40格。
  • 文本栏中可以粘贴外部富文本,但可能无法正确生成。
  • 自带的富文本编辑器可能无法正确显示复杂文本的实际效果。
  • 使用Unifont字体可以让文本栏的预览效果更加接近实际效果。

使用Unifont字体

其他用法

  • 纯色背景:将文本不透明度调为0,并将背景颜色调为所需的颜色。
  • 标记点:勾选隔墙可见,并将背景的不透明度调为0,将固定轴设为center,适当调整文本不透明度剔除条件
  • ......

About

一个网页,可以比较方便地生成召唤文本展示实体的命令。

Resources

Stars

Watchers

Forks