Skip to content

Commit ad0680f

Browse files
committed
Add 3D signs @Calinou
1 parent 34744ae commit ad0680f

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

mods/default/nodes.lua

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -576,25 +576,23 @@ minetest.register_node("default:torch", {
576576

577577
minetest.register_node("default:sign_wall", {
578578
description = "Sign",
579-
drawtype = "signlike",
580-
tiles = {"default_sign_wall.png"},
579+
drawtype = "nodebox",
580+
tiles = {"default_sign.png"},
581581
inventory_image = "default_sign_wall.png",
582582
wield_image = "default_sign_wall.png",
583583
paramtype = "light",
584584
paramtype2 = "wallmounted",
585585
sunlight_propagates = true,
586586
is_ground_content = false,
587-
walkable = false,
588-
selection_box = {
589-
type = "wallmounted",
590-
wall_side = { -0.5,-0.3,-0.4,-0.4,0.3,0.4 },
591-
--wall_top = <default>
592-
--wall_bottom = <default>
593-
},
587+
node_box = {
588+
type = "wallmounted",
589+
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
590+
wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
591+
wall_side = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
592+
},
594593
groups = {choppy=2,dig_immediate=2,attached_node=1},
595594
sounds = default.node_sound_defaults(),
596595
on_construct = function(pos)
597-
--local n = minetest.get_node(pos)
598596
local meta = minetest.get_meta(pos)
599597
meta:set_string("formspec", "field[text;;${text}]")
600598
meta:set_string("infotext", "\"\"")
699 Bytes
Loading

0 commit comments

Comments
 (0)