Rename painting description
This commit is contained in:
parent
827d7c7eb2
commit
1a88bce60d
|
@ -21,9 +21,16 @@ if n == 1 then
|
||||||
groups = {choppy=2, dig_immediate=3, picture=1, deco_block=1}
|
groups = {choppy=2, dig_immediate=3, picture=1, deco_block=1}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local desc
|
||||||
|
if n == 1 then
|
||||||
|
desc = "Painting"
|
||||||
|
else
|
||||||
|
desc = "Painting ("..n..")"
|
||||||
|
end
|
||||||
|
|
||||||
-- inivisible node
|
-- inivisible node
|
||||||
minetest.register_node("gemalde:node_"..n.."", {
|
minetest.register_node("gemalde:node_"..n.."", {
|
||||||
description = "Painting #"..n.."",
|
description = desc,
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
tiles = {"gemalde_"..n..".png"},
|
tiles = {"gemalde_"..n..".png"},
|
||||||
visual_scale = 3.0,
|
visual_scale = 3.0,
|
||||||
|
@ -37,6 +44,7 @@ minetest.register_node("gemalde:node_"..n.."", {
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
},
|
},
|
||||||
|
drop = "gemalde:node_1",
|
||||||
groups = groups,
|
groups = groups,
|
||||||
|
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user