1
0
Fork
You've already forked prestibags
1
Prestibags Luanti Mod
  • Lua 100%
Find a file
2026年01月01日 10:39:12 +10:00
doc/screenshots Initial content 2013年03月07日 15:48:55 -08:00
locale Convert bag columns to a setting 2026年01月01日 10:39:12 +10:00
models Initial content 2013年03月07日 15:48:55 -08:00
sounds Initial content 2013年03月07日 15:48:55 -08:00
textures Use in game hsl colorization instead of having separate images 2025年03月14日 10:18:22 +10:00
.cdb.json Add CDB file 2025年07月20日 14:34:23 +10:00
.gitattributes Add .gitattributes 2025年07月18日 12:40:12 +10:00
.luacheckrc Add support for dyeing bags 2025年12月31日 11:43:00 +10:00
.luaformatrc Use lua-format 2025年05月18日 12:24:38 +10:00
.luarc.json Change minetest to luanti or core, tidy text files 2025年05月10日 10:04:48 +10:00
CC-BY-SA-4.0.md Improve copyright, attribution, and licensing 2025年07月23日 09:52:42 +10:00
colors.jpg Use jpg for screenshots 2025年07月19日 11:10:05 +10:00
GPL.md Improve copyright, attribution, and licensing 2025年07月23日 09:52:42 +10:00
init.lua Convert bag columns to a setting 2026年01月01日 10:39:12 +10:00
LICENSE.md Fix typo in license 2025年07月27日 08:46:41 +10:00
mod.conf Add support for dyeing bags 2025年12月31日 11:43:00 +10:00
README.md Convert bag columns to a setting 2026年01月01日 10:39:12 +10:00
settings.lua Convert bag columns to a setting 2026年01月01日 10:39:12 +10:00
settingtypes.txt Convert bag columns to a setting 2026年01月01日 10:39:12 +10:00

Prestibags Luanti Mod

ContentDB

Prestibags are simple bags that act like chests you can pick up. They do not modify the player's normal inventory formspec, so they will interfere with any mods that do. Here are some of their features:

  • Retain their inventory when picked up or unloaded/reloaded by the server.
  • Can be stored in other bags, nested as deeply as you like.
  • Are NOT owned, so any player can open them and pick them up.
  • Are flammable, so don't put them near lava or fire!
  • Fit in spaces with non-solid nodes (e.g. water, torches), but don't build solid stuff on top of them!

Note that bags are "active entities", although they are non-physical and act in many ways like nodes. This means that the "/clearobjects" command will destroy them, and they can potentially take damage from sources other than fire. They will show wear like a tool when taken into inventory if they have taken any damage.

Luanti Forum

This mod is a fork of the original mod by prestidigitator https://forum.luanti.org/viewtopic.php?t=5026.

Screenshot of coloured bags

Required Luanti Version

  • 5.10.0

Dependencies

Required

  • None

Optional

Settings

  • prestibags_can_dye_bags This setting enables the ability for players to change bag colors after crafting them. This defaults to true.

    To dye a bag you place the bag down, have a dye selected in your hot bar, and right click the bag to apply the dye.

    A log message will be displayed to notify a player if they try and apply an unsupported dye.

    If a player right clicks the bag while using an unsupported dye, or the same color dye as the bag, then the normal formspec will be shown.

    If you have the world_settings mod enabled then you will be able to control this setting separately for each world.

    It is safe to change this setting at anytime.

  • prestibags_num_cols the number of columns a bag has in it's inventory. Defaults to 3.

    Bags can be put in to bags so they default of 3 is pretty OP for the resources required to make them. Increasing this by any significant amount will further this imbalance.

    If you have the world_settings mod enabled then you will be able to control this setting separately for each world. This will permit you to change the global setting without affecting worlds that have been started with the world settings mod enabled.

    DANGER: If you decrease this setting players will lose items in slots they can no longer access!

    It is safe to increase this setting at anytime. Decreasing it is dangerous as noted above.

Craft Recipes

(W = "group:wool"):

— W —
W — W
W W W

Git Repositories

Change History

  • Unreleased

    • Use all 15 MTG wools for bags
    • Add support for dyeing bags Issue #3
    • Convert bag columns to a setting Issue #2
  • v2.0.1

    • Improve Copyright attribution.
  • v2.0.0

    • Added mod.conf with mod information
    • Updated to latest Luanti standards
    • Tidied code
    • Fixed bags disappearing
    • Support inventories with different rows and columns
    • Added borders to inventory slots
    • Added colored bags
    • Added Mineclonia support
    • Added translation support
    • Changed license
  • Version 1.0

    • Released 2013年03月07日.
    • First working version.

All content, including source code, textures, models, and sounds, are 100% original content by the mod authors (prestidigitator and Codiac).

Authors

  • prestidigitator (as registered on forum.luanti.org)
  • Codiac (as registered on forum.luanti.org)

Coloring Images

The colors are applied in game using hsl colorization.

The original mod by prestidigitator was licensed WTFPL. This was changed for version 2.0.0.

See LICENSE.md for more details.

Source Code License

The source code in this mod is licensed under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Media License

The images and image sources in this mod are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0).