Billboard added, Nodes has the Entry for the visual scale.

master
acmgit 2016-07-30 14:56:44 +02:00
parent 6fa4db8a87
commit 4ad5a1c823
3 changed files with 12 additions and 8 deletions

View File

@ -1,11 +1,12 @@
dofile(minetest.get_modpath("billboard") .. "/nodes.lua")
for i,n in ipairs(bb_boardlist) do
-- Register the Node
minetest.register_node("billboard:bb_".. n[1].."_"..n[2].."_"..n[3], {
description = "Billboard " ..n[1].."_"..n[2].."_"..n[3],
drawtype = "signlike",
visual_scale = 3.0,
visual_scale = n[4],
tiles = {
"bb_"..n[1].."_"..n[2].."_"..n[3]..".png"
},
@ -23,7 +24,8 @@ for i,n in ipairs(bb_boardlist) do
legacy_wallmounted = true,
})
-- Register the Recipe for the Node
minetest.register_craft({
output = "billboard:bb_"..n[1].."_"..n[2].."_"..n[3],
recipe = {

View File

@ -1,7 +1,9 @@
bb_boardlist = {
{ "sign_wall_wood", "white", "white" },
{ "sign_wall_wood", "yellow", "yellow" },
{ "sign_wall_wood", "black", "yellow" },
{ "sign_wall_wood", "green", "blue" }
-- { default:, wool:, wool:, visual_scale }
{ "sign_wall_wood", "white", "white", 2.5 },
{ "sign_wall_wood", "yellow", "yellow", 3.0 },
{ "sign_wall_wood", "black", "yellow", 4.0 },
{ "sign_wall_wood", "green", "blue", 2.0 },
{ "sign_wall_wood", "blue", "yellow", 2.0 }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB