minetest_game/mods
Auke Kok 011ad78b42 Improve Chest appearance - opening chests.
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.
2017-05-01 19:36:35 +01:00
..
beds Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
boats Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
bones Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
bucket Bucket: Allow buckets to trigger the on_punch of entities and nodes 2016-11-02 12:39:56 +00:00
carts Carts: Make rail recipes more generous 2017-04-11 03:57:01 +01:00
creative Creative: Automatic item colorization for creative mode 2017-04-23 23:05:06 +01:00
default Improve Chest appearance - opening chests. 2017-05-01 19:36:35 +01:00
doors Doors: place sound when placing a door. 2017-04-28 21:52:59 -07:00
dye Remove dye craft recipe conflict. 2017-04-26 20:19:59 -07:00
farming Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
fire Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
flowers Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
give_initial_stuff Change WTFPL to MIT (part 3) 2016-09-07 04:44:53 +01:00
killme Add /killme chat command 2017-01-07 22:01:19 +00:00
screwdriver Screwdriver: Allow non-native rotations if supported by targeted node 2017-04-11 03:58:13 +01:00
sethome Sethome: Migrate sethome mod to player attributes. 2017-03-15 22:18:36 +00:00
sfinv sfinv: Fix wrong tab being highlighted 2017-03-07 06:43:18 +00:00
stairs Stairs: Improve stair and slab rotation on placement 2017-04-11 08:33:30 +01:00
tnt TNT: Clarify new TNT receipe 2017-03-14 19:05:49 +00:00
vessels Do not show item overlay if slot is occupied by item (bookshelf, vessels shelf) 2016-11-14 20:03:49 +01:00
walls Licenses: (Part 4) Remove overlooked WTFPL text. Cleanup 2016-09-08 06:17:05 +01:00
wool Change WTFPL to MIT (part 3) 2016-09-07 04:44:53 +01:00
xpanes Xpanes: Improve bars texture 2016-12-04 06:35:39 +00:00