aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracmgit <undertakers_help@yahoo.com>2016-07-30 14:56:44 +0200
committeracmgit <undertakers_help@yahoo.com>2016-07-30 14:56:44 +0200
commit4ad5a1c82327f0194b098de269a2c05d2a10a1dc (patch)
tree60faf260935b61c91f2eef1a625e0f060f661ea9
parent6fa4db8a87d04fb193cf6b900525aeb3b1fe7eba (diff)
downloadbillboard-4ad5a1c82327f0194b098de269a2c05d2a10a1dc.tar.gz
billboard-4ad5a1c82327f0194b098de269a2c05d2a10a1dc.tar.bz2
billboard-4ad5a1c82327f0194b098de269a2c05d2a10a1dc.zip
Billboard added, Nodes has the Entry for the visual scale.
-rw-r--r--init.lua8
-rw-r--r--nodes.lua12
-rw-r--r--textures/bb_sign_wall_wood_blue_yellow.pngbin0 -> 154606 bytes
3 files changed, 12 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index 8dc3e60..8fda972 100644
--- a/init.lua
+++ b/init.lua
@@ -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 = {
diff --git a/nodes.lua b/nodes.lua
index 6b06440..ca64ca1 100644
--- a/nodes.lua
+++ b/nodes.lua
@@ -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 }
}
diff --git a/textures/bb_sign_wall_wood_blue_yellow.png b/textures/bb_sign_wall_wood_blue_yellow.png
new file mode 100644
index 0000000..a6df1ba
--- /dev/null
+++ b/textures/bb_sign_wall_wood_blue_yellow.png
Binary files differ