promotional bannermobile promotional banner

StayLapis

Keeps your lapis lazuli inside the enchanting table when you close the UI
item image

Description

JOIN_OUR_DISCORD MODRINTH

A simple utility mod that keeps lapis lazuli inside the enchanting table instead of returning it to your inventory when the menu is closed. Reopen the same table later, and your stored lapis will still be right where you left it.

Install on the server (or in singleplayer) — client installation is optional. Vanilla clients can join and use it seamlessly.

Dependencies: Fabric needs Fabric API and Architectury API. NeoForge needs Architectury API. Forge needs no additional dependencies.

Free to use in any modpack — public or private, no permission needed.

What it does

  • Prevents lapis from popping back into your inventory when you close the enchanting interface.
  • Safely stores the remaining lapis inside that specific enchanting table.
  • Instantly restores the lapis into the slot when you or another player open the same table again.
  • Ties the stored lapis to the exact block position and dimension of the table.
  • Saves the stored lapis every time it changes, so a server crash while the table is open doesn't lose it.

Details

  • One table, one owner at a time — whoever opens the table first gets the stored lapis. A player opening it at the same moment sees an empty slot and gets their own lapis back on close.
  • Breaking a table — lapis in an open table's slot is returned to that player. Stored lapis is discarded with the table and never passes to a new table placed in the same spot.
  • Storage — lapis is kept per world in the staylapis/ folder. If a storage file is damaged, the problem is logged, the file is left untouched, and tables in that dimension simply hand your lapis back until it's fixed.
  • Penchant (optional) — on Fabric 1.21.1, StayLapis works with Penchant's reworked enchanting table. A book placed to remove an enchantment is never kept and always comes back to you. Other loaders and versions don't support Penchant.

Feedback

Please report any bugs, errors, or feature suggestions on Discord: https://discord.gg/HTkn94BXmA

More mods by Nikrecs: AutoLapis · RemoveEnchantmentIncompatibility

My other mods that I recommend.

StayLapis Team

profile avatar
Owner
Rising Builder tier icon
  • 10
    Followers
  • 44
    Projects
  • 650.0K
    Downloads

I help build the community

More from NikrecsView all

  • SitOnEverything project image

    SitOnEverything

    Sit on almost any block or entity with configurable seat positions, vanilla presets, and quick hotkey support.

    • 5.1K
    • October 23, 2026
  • PathSpeed project image

    PathSpeed

    Walk faster on paths and roads — a server-side speed boost where every block gets its own speed, so better road materials are genuinely faster. Works on vanilla clients with no client install.

    • 7.5K
    • October 15, 2026
  • LeashAll project image

    LeashAll

    Allows you to attach leads to every living entity (even player) in the game.

    • 26.3K
    • October 9, 2026
  • ElytraHUD+ project image

    ElytraHUD+

    Minimalist elytra HUD — durability, rockets, and flight speed at a glance. Fully customizable with a live preview.

    • 4.1K
    • October 8, 2026
  • SitOnEverything project image

    SitOnEverything

    Sit on almost any block or entity with configurable seat positions, vanilla presets, and quick hotkey support.

    • 5.1K
    • October 23, 2026
  • PathSpeed project image

    PathSpeed

    Walk faster on paths and roads — a server-side speed boost where every block gets its own speed, so better road materials are genuinely faster. Works on vanilla clients with no client install.

    • 7.5K
    • October 15, 2026
  • LeashAll project image

    LeashAll

    Allows you to attach leads to every living entity (even player) in the game.

    • 26.3K
    • October 9, 2026
  • ElytraHUD+ project image

    ElytraHUD+

    Minimalist elytra HUD — durability, rockets, and flight speed at a glance. Fully customizable with a live preview.

    • 4.1K
    • October 8, 2026