Lavender

Lavender

Mod

A Guidebook API and alternative to Patchouli

Client and server LibraryUtility

311.9k downloads
76 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...

Additions

Fixes

  • Recipes with empty slots in their subgrid (eg. the vanilla clock or stairs recipes) no longer cause a crash when displayed in a book

Additions

  • Lavender can now display toasts when a new entry is unlocked in a book (backported by enjarai). To configure this for a book, add a new_entries_toast object to the book definition and populate it as follows:
    "new_entries_toast": {
      "icon_stack": "mymod:my_book_item",
      "book_name": "A Book Title",
      "background_sprite": "mymod:a_sprite_id" // this is optional, lavender supplies a unique texture by default
    }
    
  • Entries now support declaring extra search terms in an array under additional_search_terms in the entry frontmatter (implemented by enjarai)

This is a straightforward port to 1.21.4 - support for older versions will be dropped

This is a straightforward port to 1.21.2 - support for older versions will be dropped

Fixes

  • Wrapping of the entry index on the landing page should now work correctly in the presence of nested categories

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

Project members

glisco

Member

Details

Licensed MIT
Published a year ago
Updated 10 days ago