Neilon (Text Library)
No reviews yet
FabricMC text library to aid working with Minecraft's text system
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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
- Automatic command click fixer, no longer requiring
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"
))
)
);
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers