nalc_game/mods
Auke Kok f600a9f645 New mesh door models, and extensive door API
This patch replaces the default door nodes with a new mesh model
and nodes.

Two new models were added that are 2 blocks high. One for left-hinge
and one for right-hinge doors. This allows us to make a single texture
fit on both models. The alternative would have been 1 model and 2
unmapped textures, which is more work for mod developers.

Doors work exactly like the old doors, including ownership, breaking
doors, opening and closing.

Under the hood, we can prevent the top part of the door from being
obstructed by placing an invisible node. This prevents liquids from
flowing through doors or people placing sand or other blocks in the
top half. The door code automatically places and removes these as
needed.

Metadata is used to store door state, just like the old version.

A doors API is added, it allows mods to use the API to open/close or
toggle door states without worrying about sounds, permissions and
other details. This is intended for e.g. mesecons. This API allows
mods to manipulate or inspect doors for players or for themselves.

In-game old door nodes are automatically converted using an ABM and
preserve ownership and orientation and state.

TNT blows up all doors and trapdoors except for the steel ones,
who can survive a blast. We return an itemstack in on_blast(),
which requires a TNT API patch which is also pending.

We enable backface culling for most of these doors, as this gives
the identical visual appearance that the old doors had. In the case
of the glass door, there's a slight twist.

The texture files used by the new doors have new names that do
not conflict with previous texture file names to avoid texture
pack conflicts.

Thanks to red-001 <red-001@users.noreply.github.com> for some
of the conversion code, cleanups, and extra textures.
2016-02-13 03:47:28 +00:00
..
beds Beds: Re-add commas at list ends 2015-11-14 05:18:11 +00:00
boats Follow naming conventions of textures and models in boats 2016-02-03 19:33:46 +00:00
bones Rename to Minetest Game 2015-09-30 23:33:12 +01:00
bucket Rename to Minetest Game 2015-09-30 23:33:12 +01:00
creative Creative: Extend search function to descriptions 2016-02-06 01:24:24 +00:00
default Default/schematics: Re-add force-placed root node to mapgen trees 2016-02-06 01:24:19 +00:00
doors New mesh door models, and extensive door API 2016-02-13 03:47:28 +00:00
dye Rename to Minetest Game 2015-09-30 23:33:12 +01:00
farming Rename to Minetest Game 2015-09-30 23:33:12 +01:00
fire Default, fire: Disable catch-up in some ABMs 2015-11-14 04:49:03 +00:00
flowers Replace aliased fertile mushrooms. 2016-01-08 00:24:05 +00:00
give_initial_stuff Remove / replace all print() calls 2013-11-17 11:55:46 +01:00
screwdriver Verify node type is facedir. 2015-12-25 15:37:17 +00:00
sethome Fix some undeclared global variables 2014-11-30 18:02:33 +01:00
stairs Stair and Slab groups. 2016-01-26 21:33:17 +00:00
tnt Fix TNT drops being placed inside nodes 2016-01-05 23:28:59 +00:00
vessels Rename to Minetest Game 2015-09-30 23:33:12 +01:00
wool ability to dye coloured wool white 2016-01-29 03:50:07 +00:00
xpanes Rename to Minetest Game 2015-09-30 23:33:12 +01:00