Lavender

Lavender

Mod

A Guidebook API and alternative to Patchouli

Client and server LibraryUtility

114.4k downloads
61 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...
Filter versions...
Filter channels...

Fixes

  • Lavender now bundles a newer version of the lavender-md markdown library to fix parsing of multiple parameters in the owo-ui template syntax

Fixes

  • Lavender book items now check for invalid book IDs on the client, removing the constant "<Player> tried to open unknown book with id <id>" logging on servers
  • The get-lavender-book command is now client-side (to make it work properly when playing on a dedicated server) and expands to an appropriate invocation of the vanilla /give command when executed

Fixes

  • Resource condition matching for book contents (entries and categories), which was disabled during the port to 1.21, has been readded

This release is primarily a port to 1.21 - support for older versions will be dropped. Additionally, structure preview rendering now works properly in Fabulous! graphics mode (#2)

Changes

  • This build uses a somewhat more robust method of tracking the which the ALT key has been pressed when trying to open an item's associated entry - this should lead to better compatibility with mods like EMI

Fixes

  • Offhand book rendering should now work properly with Iris shaderpacks

This build is a straightforward port of 0.1.7 for 1.20.3+

Fixes

  • Navigating to the associated entry of an item no longer crashes if that entry is not visible to the player

Fixes

  • Referencing an invalid item in the icon of an entry/category no longer crashes the game
  • More edge cases with page wrapping in the entry have been resolved
  • Exceptions which occur during compilation of an embedded owo-ui model no longer crash the game
  • Categories which contain only other categories and no entries no longer incorrectly display as empty
  • Nested markdown which starts with a formatting syntax (eg. a keybind at the beginning of a list item) no longer applies its formatting to the entire nested section

Additions

  • The name displayed by the dynamic book can now be changed from the default "Book" by specifying the dynamic_book_name property in the book's definition. This property expects a Minecraft text object (which includes literal strings)

This build is a direct backport of 0.1.4 for 1.20.3, refer to the previous changelog for feature information

Additions

  • Categories can now be nested into each other by specifying a parent identifier in their frontmatter

Additions

  • Entries which the player did not read yet are now highlighted in the book to improve discovery
  • Categories and entries can now use a GUI sprite instead of an item for their icon through the icon_sprite frontmatter property
  • Translation keys can now be embedded into entries and categories using the new %{translation.key.here}% syntax

Fixes

  • Page-wrapping of the elements in entry indices is now fixed, stopping entries with multiline titles from pushing others off the page

Fixes

  • The size at which the offhand book preview is rendered no longer depends on the GUI scale
  • When clicking on a link and then going back to the book, the navigation history (including, importantly, the landing page) is no longer lost

Project members

glisco

Member

Details

Licensed MIT
Published 8 months ago
Updated 25 days ago