mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11:05 +01:00
Rename painting description
This commit is contained in:
parent
827d7c7eb2
commit
1a88bce60d
1 changed files with 9 additions and 1 deletions
|
@ -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 a new issue