client-provided clientside mod which adds a few commands to manage multiple inventory-based storage units at once
- Lua 100%
| init.lua | insert, peek | |
| LICENSE | Initial commit | |
| mod.conf | Upload files to "/" | |
| README.md | document insert, peek | |
| screenshot.png | Upload files to "/" | |
storageconsole
Client-provided clientside mod for Luanti which adds a few commands to manage multiple inventory-based storage units at once
Installation
- Create the
clientmodsdirectory in the luanti home directory (Menu → About → Open User Data Directory) if it's not present already - Create the
mods.conffile in theclientmodsdirectory if it's not present already - Add
load_mod_storageconsole = trueto 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 usuallymain, 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_resetclears internal storage list.storecon_showshows 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_savesreturns saved slots.storecon_set_startup <save name>sets a save to load on startup (empty saves load to an empty list).storecon_get_startupreturns the save that loads on startup
Usage
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
multitoolsmultitool
- Hold reach-enhancing tools to increase access range, like a
- Formspec exit callbacks aren't called for the accessed nodes, so stuff like technic chest autosort doesn't worrk