aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: 88452b5b16cfeb5c025e30b254440df77419cab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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_"..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",
                visual_scale = 3.0,
		tiles = {
                                "bb_yellow_yellow.png"
                            },
		inventory_image = "bb_yellow_yellow.png",
		wield_image = "bb_yellow_yellow.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_yellow_yellow",
                    recipe = {
                                        {"group:stick", "group:stick", "group:stick"},
                                        {"default:sign_wall_wood", "wool:yellow", "wool:yellow"},
                                        {"group:stick", "group:stick", "group:stick"}
                                }
})

minetest.register_node("billboard:bb_black_yellow", {
		description = "Billboard black_yellow",
		drawtype = "signlike",
                visual_scale = 3.0,
		tiles = {
                                "bb_black_yellow.png"
                            },
		inventory_image = "bb_black_yellow.png",
		wield_image = "bb_black_yellow.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_black_yellow",
                    recipe = {
                                        {"group:stick", "group:stick", "group:stick"},
                                        {"default:sign_wall_wood", "wool:black", "wool:yellow"},
                                        {"group:stick", "group:stick", "group:stick"}
                                }
})

minetest.register_node("billboard:bb_green_blue", {
		description = "Billboard green_blue",
		drawtype = "signlike",
                visual_scale = 3.0,
		tiles = {
                                "bb_green_blue.png"
                            },
		inventory_image = "bb_green_blue.png",
		wield_image = "bb_green_blue.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_green_blue",
                    recipe = {
                                        {"group:stick", "group:stick", "group:stick"},
                                        {"default:sign_wall_wood", "wool:green", "wool:blue"},
                                        {"group:stick", "group:stick", "group:stick"}
                                }
})
]]