aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authoracmgit <undertakers_help@yahoo.com>2016-07-30 12:37:48 +0200
committeracmgit <undertakers_help@yahoo.com>2016-07-30 12:37:48 +0200
commit290d5133e2521fde18f32a1e985fedee71e37b36 (patch)
treebac38b89917112f1d07fe4e6d03a9c4e21d7db24 /init.lua
parentd17cbf89f77adf7b97071c3667d1ca7c1553c43f (diff)
downloadbillboard-290d5133e2521fde18f32a1e985fedee71e37b36.tar.gz
billboard-290d5133e2521fde18f32a1e985fedee71e37b36.tar.bz2
billboard-290d5133e2521fde18f32a1e985fedee71e37b36.zip
Nodelist added.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua63
1 files changed, 35 insertions, 28 deletions
diff --git a/init.lua b/init.lua
index 7403b2e..88452b5 100644
--- a/init.lua
+++ b/init.lua
@@ -1,34 +1,40 @@
-minetest.register_node("billboard:bb_white_white", {
- description = "Billboard white_white",
- drawtype = "signlike",
- visual_scale = 3.0,
- tiles = {
- "bb_white_white.png"
- },
- inventory_image = "bb_white_white.png",
- wield_image = "bb_white_white.png",
- paramtype = "light",
- paramtype2 = "wallmounted",
- sunlight_propagates = true,
- walkable = false,
- light_source = 1, -- reflecting a bit of light might be expected
- selection_box = {
- type = "wallmounted"
- },
- groups = {choppy=2,dig_immediate=3,attached_node=1, picture=1},
- legacy_wallmounted = true,
+dofile(minetest.get_modpath("billboard") .. "/nodes.lua")
-})
+for i,n in ipairs(bb_boardlist) do
+
+ minetest.register_node("billboard:bb_".. n[1].."_"..n[2], {
+ description = "Billboard " ..n[1].."_"..n[2],
+ drawtype = "signlike",
+ visual_scale = 3.0,
+ tiles = {
+ "bb_"..n[1].."_"..n[2]..".png"
+ },
+ inventory_image = "bb_"..n[1].."_"..n[2]..".png",
+ wield_image = "bb_"..n[1].."_"..n[2]..".png",
+ paramtype = "light",
+ paramtype2 = "wallmounted",
+ sunlight_propagates = true,
+ walkable = false,
+ light_source = 1, -- reflecting a bit of light might be expected
+ selection_box = {
+ type = "wallmounted"
+ },
+ groups = {choppy=2,dig_immediate=3,attached_node=1, picture=1},
+ legacy_wallmounted = true,
+
+ })
-minetest.register_craft({
- output = "billboard:bb_white_white",
- recipe = {
- {"group:stick", "group:stick", "group:stick"},
- {"default:sign_wall_wood", "wool:white", "wool:white"},
- {"group:stick", "group:stick", "group:stick"}
- }
-})
+ minetest.register_craft({
+ output = "billboard:bb_"..n[1].."_"..n[2],
+ recipe = {
+ {"group:stick", "group:stick", "group:stick"},
+ {"default:sign_wall_wood", "wool:"..n[1], "wool:"..n[2]},
+ {"group:stick", "group:stick", "group:stick"}
+ }
+ })
+end
+--[[
minetest.register_node("billboard:bb_yellow_yellow", {
description = "Billboard yellow_yellow",
drawtype = "signlike",
@@ -118,3 +124,4 @@ minetest.register_craft({
{"group:stick", "group:stick", "group:stick"}
}
})
+]]