Convert fences to NDT_CONNECTED.
authorAuke Kok <sofar@foo-projects.org>
Tue, 15 Dec 2015 05:49:20 +0000 (21:49 -0800)
committerparamat <mat.gregory@virginmedia.com>
Sun, 13 Mar 2016 04:10:51 +0000 (04:10 +0000)
commitd979293f1448882e3a2eb0f7a3ecbaaf6b189d36
tree1b1122bbb438146c3542a9c468a8564b3e8a343c
parent676822d28659732d620506c25836bbdd06ceba23
Convert fences to NDT_CONNECTED.

This changes the drawtype of fences to NDT_CONNECTED nodebox drawtype.

These nodes are drawn by the client with the needed connections on
the fly as the scene is drawn. There is no logic needed by mods to
modify the nodes.

These fences connect to (1) other fences, (2) planks and (3) tree
trunks, but nothing else. They do not connect to stone, dirt, wool,
etc. This is done by the "connects_to" parameter, which takes groups
and node names.

Due to the way textures are wrapped, we can make these nodes look a
lot better by giving them a special tile.

This change requires minetest/minetest#3503.
mods/default/functions.lua
mods/default/nodes.lua
mods/default/textures/default_fence_acacia_wood.png [new file with mode: 0644]
mods/default/textures/default_fence_aspen_wood.png [new file with mode: 0644]
mods/default/textures/default_fence_junglewood.png [new file with mode: 0644]
mods/default/textures/default_fence_pine_wood.png [new file with mode: 0644]
mods/default/textures/default_fence_wood.png [new file with mode: 0644]