介绍
Neilon
Neilon is a Fabric text library to aid in working with Minecraft text.
Featureset
- Literal text
- Translation text
- Keybinding text
- Basic text styling (bold, italic, underlined, strikethrough, magic)
- Colors
- Click actions
- Command running
- Command suggestions
- Opening URLs
- Copy to clipboard
- Hover events
- Text
- Item
- Entity
- QOL text methods
- Repeat
- Keybinding
- Translation
- Color
- QOL features
- Automatic command click fixer, no longer requiring
/in front - Automatic URL fixer, no longer requiring
https://in front
Planned
- Gradients
Usage
See the wiki,
or directly contribute to our wiki
Update policy
Unless we see high demand, or we need it ourselves, we will follow the latest Minecraft version by looking
at Create Fabric, as this mod is used primarily for
the SnackBag Create mod server.
We try our best to not introduce breaking changes unless truly necessary. Methods will rather be marked as deprecated
Code example
NText.assemble()
.text("[Epic Button]")
.color(Color.RED)
.hover("What will this do?")
.click(ClickType.RUN, "kill @s")
.text(" ")
.text("[Another Button]")
.color(Color.GREEN)
.hover(NText.of("I suspect this won't be any better.", Color.GREEN))
.click(ClickType.COPY, "i like trains")
.build();
For reference, this is how it would look like when using vanilla code
Text.literal("[Epic Button]")
.styled(style -> style
.withColor(Formatting.RED)
.withHoverEvent(new HoverEvent(
HoverEvent.Action.SHOW_TEXT,
Text.literal("What will this do?")
))
.withClickEvent(new ClickEvent(
ClickEvent.Action.RUN_COMMAND,
"kill @s"
))
)
.append(" ")
.append(Text.literal("[Another Button]")
.styled(style -> style
.withColor(Formatting.GREEN)
.withHoverEvent(new HoverEvent(
HoverEvent.Action.SHOW_TEXT,
Text.literal("I suspect this won't be any better.")
.styled(s -> s.withColor(Formatting.GREEN))
))
.withClickEvent(new ClickEvent(
ClickEvent.Action.COPY_TO_CLIPBOARD,
"i like trains"
))
)
);
常见问题
Neilon (Text Library) 支持哪些 Minecraft 版本?
Neilon (Text Library) 支持 Minecraft Java 版 1.20.1–1.21.11,共 17 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Neilon (Text Library) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
JXSnack 的其他作品
查看全部 →
TT20 (TPS Fixer)
TT20 helps reduce lag by optimizing how ticks work when the server's TPS is low.
Better Walls
Fixes connections between fences, walls, panes, bars and nether fences
Better Walls
Fixes connections between fences, walls, panes, bars and nether fences
Create: Coins Arise
Create: Coins Arise is a Create: Numismatics addon which aims to add a balanced way of producing coins and giving coins more functionality.
评论
登录后评论和评分