011ad78b42
Adds a mesh model that appears when a chest is opened. The chest stays visibly open as long as the player keeps it open. When the player closes the formspec, the chest returns back to the closed shape. While opening and closing, a sound plays. A second person inspecting the chest will trigger a second sound open. However, only after the last player closes the chest, does the chest actually visually close and is the sound close played. This keeps mesh updates to a minimum. While it's possible that a server shutting down may cause chests to remain open, this does not affect the chests' working matter, and opening or closing them should fix them. Old chests are converted to the new style by LBM. I previously had them converted on open but this was unreliable, and LBMs don't have that problem. Open chests cannot be dug up. This prevents people from keeping a chest open and digging it out as well, since closing a chest would place a chest back (swap) at the spot. We could protect against this, but it still messes up the client and causes a lot of "missing node inventory" error messages otherwise. It's unlikely but possible that a player lagging out causes a chest to stay "open" and thus unremovable by digging, but there are other ways of dealing with that - a server restart fixes that issue. If the lid of the chest is obstructed, the sounds continue to play, but the lid isn't opened. Obstructed means that a node is present above the chest lid, however, we ignore several node types like signs, torches (not 3d) and wallmounted nodeboxes (typically signs) since they don't pose any major obstruction in almost any case, and are typically found above chests. Additionally, the selection box of the opened chest does not include the lid, and so one can still interact with e.g. a sign behind an open lid. Due to the fact that chests now have 7+ textures, we can no longer use materials (limit: 6) to texture the chest, and so there is now a single UV mapped image that applies both to open and closed chests. While this does mean texture pack makers need to create it, this is extremely simple and consists of a simple cut'n'paste over the template and should be really easy to do. Only one texture file is now then used for both open and closed chests. |
||
---|---|---|
menu | ||
mods | ||
.gitignore | ||
.luacheckrc | ||
.travis.yml | ||
game_api.txt | ||
game.conf | ||
LICENSE.txt | ||
minetest.conf | ||
minetest.conf.example | ||
README.txt | ||
settingtypes.txt |
Minetest Game [minetest_game] ============================= The main subgame for the Minetest engine ======================================== To use this subgame with the Minetest engine, insert this repository as /games/minetest_game The Minetest engine can be found in: https://github.com/minetest/minetest/ Compatibility -------------- The Minetest Game github master HEAD is generally compatible with the github master HEAD of the Minetest engine. Additionally, when the Minetest engine is tagged to be a certain version (eg. 0.4.10), Minetest Game is tagged with the version too. When stable releases are made, Minetest Game is packaged and made available in http://minetest.net/download and in case the repository has grown too much, it may be reset. In that sense, this is not a "real" git repository. (Package maintainers please note!) Licensing --------- See LICENSE.txt