1
1
Fork
You've already forked luanti_storage_console
0
client-provided clientside mod which adds a few commands to manage multiple inventory-based storage units at once
  • Lua 100%
2026年05月27日 11:42:23 +02:00
init.lua insert, peek 2026年05月27日 11:38:03 +02:00
LICENSE Initial commit 2026年05月23日 00:44:18 +02:00
mod.conf Upload files to "/" 2026年05月23日 01:16:09 +02:00
README.md document insert, peek 2026年05月27日 11:42:23 +02:00
screenshot.png Upload files to "/" 2026年05月23日 00:57:54 +02:00

storageconsole

Client-provided clientside mod for Luanti which adds a few commands to manage multiple inventory-based storage units at once

Installation

  1. Create the clientmods directory in the luanti home directory (Menu → About → Open User Data Directory) if it's not present already
  2. Create the mods.conf file in the clientmods directory if it's not present already
  3. Add load_mod_storageconsole = true to a new line in the file

Commands

List management

  • .storecon_add <inventory name> adds specified pointed node inventory to internal storage list (<inventory name> is usually main, certain mods may have other inventory names or separate inventories in general, one may have to look in the mods' source code)
  • .storecon_remove <inventory index> removes specified inventory entry in internal storage list
  • .storecon_reset clears internal storage list
  • .storecon_show shows storage console GUI (As seen in #Usage)
  • .storecon_peek <inventory name> shows limited storage console GUI with only the player inventory and the pointed node's inventory according to <inventory name> (Shown inventories can be much larger here)
  • .storecon_add_raw <inventory list location>;<inventory name> adds specified inventory directly, requires knowledge of Luanti inventory locations
  • .storecon_get <inventory index> returns an inventory in the above format
  • .storecon_swap <index 1> <index 2> swaps specified inventories in internal storage list
  • .storecon_insert <index> <target> inserts a specified inventory to a specified pos, while maintaining the order of everything else
  • .storecon_locate <inventory index> highlights inventory at given index (Only works for node/{current player} inventories)

Saving/loading

  • .storecon_save <save name> saves internal storage list to persistent mod storage
  • .storecon_load <save name> loads internal storage list from persistent mod storage while overwriting internal storage list (empty saves fail, use .storecon_reset)
  • .storecon_append <save name> loads internal storage list from persistent mod storage while appending to internal storage list (empty saves fail, use .storecon_reset)
  • .storecon_get_saves returns saved slots
  • .storecon_set_startup <save name> sets a save to load on startup (empty saves load to an empty list)
  • .storecon_get_startup returns the save that loads on startup

Usage

Player inventory list at the top of a formspec graphical user interface, with four other chest inventories in a scroll container containing assorted items. The player inventory list is highlighted. The inventories have buttons to their right with which to select them.

click on the selector buttons to change the selected and highlighted inventory the highlighted inventory is the one where shift-clicking actions take items

Limitations

  • Only accessible inventories can be modified, inaccessible ones (out of reach, protected) are read-only
    • Hold reach-enhancing tools to increase access range, like a multitools multitool
  • Formspec exit callbacks aren't called for the accessed nodes, so stuff like technic chest autosort doesn't worrk