StayLapis

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

Description

JOIN OUR DISCORD MODRINTH

Lapis you leave in an enchanting table stays there after you close it. Next time you open the table, it's already in the slot, so you don't put it back every time.

Server-side: install it on the server or in singleplayer; players don't need it.

Dependencies: Fabric needs Fabric API and Architectury API. NeoForge needs Architectury API. Forge needs nothing else.

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

What it does

  • Each table keeps its own lapis, shared by every player who uses it.
  • A server crash while the table is open doesn't lose the lapis.
  • Works with Penchant's reworked enchanting table too (see Details).

For modpack authors

  • Lapis is stored per world in <world>/staylapis/, next to level.dat, with one JSON file per dimension.
  • If a file is damaged, the error and the file's path go to the log, and the file is left untouched. Until it's fixed, tables in that dimension work like vanilla: leftover lapis comes back on close. To fix it:
    1. Stop the server and keep a copy of the file.
    2. Restore it from a backup. Without one, fix the JSON by hand or delete the file; that dimension's tables then start empty.
    3. Start the server again. In singleplayer, restart Minecraft fully.

Details

  • One player at a time: while someone has a table open, anyone else who opens it sees an empty slot, enchants with their own lapis and takes the rest back on close. To get the table's stored lapis, they reopen it after the first player closes it.
  • Breaking a table: lapis in an open table's slot goes back to that player. Stored lapis disappears with the table and doesn't pass to a new table placed in the same spot.
  • Penchant (optional): supported on Fabric 1.21.1, 1.21.11, 26.1.2, 26.2 and 26.3, and on NeoForge 1.21.1 and 26.1.2. A book placed to remove an enchantment is never stored and always comes back to you.
  • With AutoLapis: AutoLapis tops the slot up from your inventory, and StayLapis keeps what's left in the table for next time.

Feedback

Please report any bugs, errors, or feature suggestions on Discord.

More mods by Nikrecs: AutoLapis · RemoveEnchantmentIncompatibility

My other mods that I recommend.

StayLapis Team

profile avatar
Owner
Rising Builder tier icon
  • 11
    Followers
  • 45
    Projects
  • 916.9K
    Downloads

I help build the community

More from NikrecsView all

  • AutoLapis project image

    AutoLapis

    Automatically moves lapis lazuli from your inventory into the enchanting table slot when you open it

    • 1.4K
    • November 30, 2026
  • DeathLogPlus project image

    DeathLogPlus

    Records your deaths with cause, location, date/time, and inventory snapshot.

    • 4.1K
    • November 29, 2026
  • Custom Sandwiches project image

    Custom Sandwiches

    Turn any food into custom sandwiches with ingredient-based hunger, saturation, and effects.

    • 1.1K
    • November 29, 2026
  • ElytraHUD+ project image

    ElytraHUD+

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

    • 5.7K
    • November 28, 2026
  • AutoLapis project image

    AutoLapis

    Automatically moves lapis lazuli from your inventory into the enchanting table slot when you open it

    • 1.4K
    • November 30, 2026
  • DeathLogPlus project image

    DeathLogPlus

    Records your deaths with cause, location, date/time, and inventory snapshot.

    • 4.1K
    • November 29, 2026
  • Custom Sandwiches project image

    Custom Sandwiches

    Turn any food into custom sandwiches with ingredient-based hunger, saturation, and effects.

    • 1.1K
    • November 29, 2026
  • ElytraHUD+ project image

    ElytraHUD+

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

    • 5.7K
    • November 28, 2026