1
0
Fork 0

Make signs attached nodes

objects
Wuzzy 2017-07-25 03:06:25 +02:00
parent 7d9aa28054
commit 8d71f77f8b
5 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ local signs_yard = {
{delta = {x = m, y = 0, z = 0}, yaw = math.pi / 2}, {delta = {x = m, y = 0, z = 0}, yaw = math.pi / 2},
} }
local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1, material_wood=1} local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1, material_wood=1, attached_node=1}
local destruct_sign = function(pos) local destruct_sign = function(pos)
local objects = minetest.get_objects_inside_radius(pos, 0.5) local objects = minetest.get_objects_inside_radius(pos, 0.5)
@ -208,10 +208,10 @@ minetest.register_node("mcl_signs:wall_sign", {
node_placement_prediction = "", node_placement_prediction = "",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "wallmounted",
drawtype = "nodebox", drawtype = "nodebox",
node_box = {type = "fixed", fixed = {-7/16, -1/16, 7/16, 7/16, 7/16, 0.498}}, node_box = {type = "wallmounted", wall_side = {-0.499, -1/16, -7/16, -7/16, 7/16, 7/16}},
tiles = {"signs_top.png", "signs_bottom.png", "signs_side.png", "signs_side.png", "signs_back.png", "signs_front.png"}, tiles = {"signs_wall.png"},
groups = sign_groups, groups = sign_groups,
stack_max = 16, stack_max = 16,
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
@ -267,7 +267,7 @@ minetest.register_node("mcl_signs:wall_sign", {
sign_info = signs_yard[fdir + 1] sign_info = signs_yard[fdir + 1]
else else
place_pos = above place_pos = above
local _, success = minetest.item_place_node(itemstack, placer, pointed_thing, fdir) local _, success = minetest.item_place_node(itemstack, placer, pointed_thing, wdir)
if not success then if not success then
return itemstack return itemstack
end end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 124 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B