From: Calinou Date: Sun, 30 Nov 2014 08:05:10 +0000 (+0100) Subject: Add 3D signs X-Git-Tag: 0.4.11~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75dfcdb1e7f841258fb9c785459856a17d8f7065;p=oweals%2Fminetest_game.git Add 3D signs --- diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 5bbe79d2..31d8aa6e 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -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 = - --wall_bottom = - --wall_side = + 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 index 00000000..be5e916a Binary files /dev/null and b/mods/default/textures/default_sign.png differ