Add 3D signs
authorCalinou <calinou@opmbx.org>
Sun, 30 Nov 2014 08:05:10 +0000 (09:05 +0100)
committerPilzAdam <pilzadam@minetest.net>
Fri, 12 Dec 2014 15:10:30 +0000 (16:10 +0100)
mods/default/nodes.lua
mods/default/textures/default_sign.png [new file with mode: 0644]

index 5bbe79d2176c8b1bac5b2da2287d00eb5a2f4a74..31d8aa6e4ce2d932dfcfbd98caeae789d3d846f9 100644 (file)
@@ -694,8 +694,8 @@ minetest.register_node("default:torch", {
 
 minetest.register_node("default:sign_wall", {
        description = "Sign",
-       drawtype = "signlike",
-       tiles = {"default_sign_wall.png"},
+       drawtype = "nodebox",
+       tiles = {"default_sign.png"},
        inventory_image = "default_sign_wall.png",
        wield_image = "default_sign_wall.png",
        paramtype = "light",
@@ -703,11 +703,11 @@ minetest.register_node("default:sign_wall", {
        sunlight_propagates = true,
        is_ground_content = false,
        walkable = false,
-       selection_box = {
+       node_box = {
                type = "wallmounted",
-               --wall_top = <default>
-               --wall_bottom = <default>
-               --wall_side = <default>
+               wall_top    = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
+               wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
+               wall_side   = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
        },
        groups = {choppy=2,dig_immediate=2,attached_node=1},
        legacy_wallmounted = true,
diff --git a/mods/default/textures/default_sign.png b/mods/default/textures/default_sign.png
new file mode 100644 (file)
index 0000000..be5e916
Binary files /dev/null and b/mods/default/textures/default_sign.png differ