[Denizen] MessageConstructorLibrary
0.43A set of utilities to make displaying text pretty, uniform, and easy
About:
This library provides a set of utilities to make displaying text pretty, uniform, and easy. Use nearly anywhere you need text formatting (chat box, GUIs, scoreboards, item lore...)
Features:
- Message Prefixer
- Pop-Up on hover shows your script title and 'Click for Help'
- Clicking the prefix runs /%title% help
- Long messages are automatically linewrapped
- Boxed Message
- Encapsulate your messages in a neat and tidy box format
- Messages sent through will be line wrapped and given a header and footer
- Header displays specified script title, page title, and page number(s)
- Titles support internal JSON implementation
- Page numbers are clickable to ease navigation
- Footer can show version info and button to updates when applicable
- Footer can display clickable buttons for your script authors
- Line Wrapping
- Turn a long string into a list of smaller strings limited in length
- Treats the <&nl> symbol as intended
- Supports internal JSON implementation
- Preserves the last color used from the previous line
- Pagination
- Return a list of entries for display on a specific page
- Specify page height
- Paragraphs
- Line wrap multiple strings
- Useful if you want to limit total page width not just entries per page.
- Center Justified
- Center your text
- Trimmed
- Trim strings to a max length and show an ellipsis
- JSON Support
- Adds simple tag based JSON support to chat, narrate, and announce messages
- Commands
- Hints
- Hovers
- Chats
Installation:
- Extract MessageConstructors.yml from the downloaded zip file and place it in your plugins/Denizen/scripts folder.
- Reload your scripts /denizen reload scripts
Usage:
If another script you have installed requires MessageConstructorLibrary as a dependency, simply installing it will be enough.
Detailed usage examples are included in the source for those scripters who wish to implement this in their own scripts.
Dependencies:
This script is written for use with the Denizen Scripting Engine.
Support:
For bleeding-edge code, bug reports, code contributions, and feature requests, visit the GitHub project.
You can also find me |Anthony| on irc.esper.net #denizen-dev
Has my work helped you in some way? Show your support by leaving feedback and some stars!
Feeling generous? Get me a coffee :D
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta