- Tested Minecraft Versions:
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...)
- 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
- Return a list of entries for display on a specific page
- Specify page height
- Line wrap multiple strings
- Useful if you want to limit total page width not just entries per page.
- Center Justified
- Center your text
- Trim strings to a max length and show an ellipsis
- JSON Support
- Adds simple tag based JSON support to chat, narrate, and announce messages
- Extract MessageConstructors.yml from the downloaded zip file and place it in your plugins/Denizen/scripts folder.
- Reload your scripts /denizen reload scripts
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.
This script is written for use with the Denizen Scripting Engine.
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
[Denizen] MessageConstructorLibrary 0.43
A set of utilities to make displaying text pretty, uniform, and easy
- I msgSuggest you update! Oct 28, 2017
- Answer to the Ultimate Question of Life, the Universe, and Everything Aug 13, 2017
- Keeping up with latest Denizen code Sep 2, 2016