42cc19efbcead59000fdbe79662ef82a7e6ae05d
[advtrains_subwayblocks.git] / init.lua
1 minetest.register_node("advtrains_subwayblocks:mr", { description = "Mountain Railway",
2 tiles = {"advtrains_subwayblocks_mr_top.png", "advtrains_subwayblocks_mr_top.png","advtrains_subwayblocks_mr.png","advtrains_subwayblocks_mr.png","advtrains_subwayblocks_mr.png","advtrains_subwayblocks_mr.png"},
3 groups = {cracky=3},
4 light_source=10,
5 paramtype=light,
6 })
7 minetest.register_node("advtrains_subwayblocks:germany", { description = "German subway sign",
8 tiles = {"advtrains_subwayblocks_u_top.png", "advtrains_subwayblocks_u_top.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png"},
9 groups = {cracky=3},
10 light_source=10,
11 paramtype=light,
12 })
13 for _,i in ipairs({1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }) do
14 minetest.register_node("advtrains_subwayblocks:line"..i, {
15 description = "Line "..i,
16 tiles={"advtrains_subwayblocks_line"..i..".png"},
17 drawtype = "nodebox",
18 paramtype2 = "wallmounted",
19 legacy_wallmounted = true,
20 paramtype=light,
21 light_source=12,
22 sunlight_propagates = true,
23 is_ground_content = false,
24 walkable = false,
25
26 groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3},
27 node_box = {
28 type = "wallmounted",
29 wall_top ={-0.5, -0.25, -0.25, -0.4375, 0.25, 0.25},
30 wall_bottom = {-0.5, -0.25, -0.25, -0.4375, 0.25, 0.25},
31 wall_side = {-0.5, -0.25, -0.25, -0.4375, 0.25, 0.25},
32
33 }
34
35 })
36 end