commit | author | age
|
0ca19d
|
1 |
-- Minetest 0.4.6 mod: extranodes |
R |
2 |
-- namespace: technic |
39c41a
|
3 |
-- Boilerplate to support localized strings if intllib mod is installed. |
41a10a
|
4 |
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end |
0ca19d
|
5 |
|
1d81e6
|
6 |
-- register stairsplus/circular_saw nodes |
T |
7 |
-- we skip blast resistant concrete and uranium intentionally |
|
8 |
-- chrome seems to be too hard of a metal to be actually sawable |
|
9 |
|
581afe
|
10 |
stairsplus:register_all("technic", "marble", "technic:marble", { |
T |
11 |
description=S("Marble"), |
1d81e6
|
12 |
groups={cracky=3, not_in_creative_inventory=1}, |
581afe
|
13 |
tiles={"technic_marble.png"}, |
T |
14 |
}) |
0ca19d
|
15 |
|
581afe
|
16 |
stairsplus:register_all("technic", "marble_bricks", "technic:marble_bricks", { |
T |
17 |
description=S("Marble Bricks"), |
1d81e6
|
18 |
groups={cracky=3, not_in_creative_inventory=1}, |
581afe
|
19 |
tiles={"technic_marble_bricks.png"}, |
T |
20 |
}) |
0ca19d
|
21 |
|
581afe
|
22 |
stairsplus:register_all("technic", "granite", "technic:granite", { |
T |
23 |
description=S("Granite"), |
|
24 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
25 |
tiles={"technic_granite.png"}, |
|
26 |
}) |
0ca19d
|
27 |
|
581afe
|
28 |
stairsplus:register_all("technic", "concrete", "technic:concrete", { |
T |
29 |
description=S("Concrete"), |
|
30 |
groups={cracky=3, not_in_creative_inventory=1}, |
|
31 |
tiles={"technic_concrete_block.png"}, |
|
32 |
}) |
994d40
|
33 |
|
1d81e6
|
34 |
stairsplus:register_all("technic", "zinc_block", "technic:zinc_block", { |
T |
35 |
description=S("Zinc Block"), |
|
36 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
37 |
tiles={"technic_zinc_block.png"}, |
|
38 |
}) |
|
39 |
|
|
40 |
stairsplus:register_all("technic", "cast_iron_block", "technic:cast_iron_block", { |
|
41 |
description=S("Cast Iron Block"), |
|
42 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
43 |
tiles={"technic_cast_iron_block.png"}, |
|
44 |
}) |
|
45 |
|
|
46 |
stairsplus:register_all("technic", "carbon_steel_block", "technic:carbon_steel_block", { |
|
47 |
description=S("Carbon Steel Block"), |
|
48 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
49 |
tiles={"technic_carbon_steel_block.png"}, |
|
50 |
}) |
|
51 |
|
|
52 |
stairsplus:register_all("technic", "stainless_steel_block", "technic:stainless_steel_block", { |
|
53 |
description=S("Stainless Steel Block"), |
|
54 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
55 |
tiles={"technic_stainless_steel_block.png"}, |
|
56 |
}) |
|
57 |
|
|
58 |
stairsplus:register_all("technic", "brass_block", "technic:brass_block", { |
|
59 |
description=S("Brass Block"), |
|
60 |
groups={cracky=1, not_in_creative_inventory=1}, |
|
61 |
tiles={"technic_brass_block.png"}, |
|
62 |
}) |
|
63 |
|
994d40
|
64 |
function register_technic_stairs_alias(modname, origname, newmod, newname) |
R |
65 |
minetest.register_alias(modname .. ":slab_" .. origname, newmod..":slab_" .. newname) |
|
66 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_inverted", newmod..":slab_" .. newname .. "_inverted") |
|
67 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_wall", newmod..":slab_" .. newname .. "_wall") |
|
68 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter", newmod..":slab_" .. newname .. "_quarter") |
|
69 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter_inverted", newmod..":slab_" .. newname .. "_quarter_inverted") |
|
70 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_quarter_wall", newmod..":slab_" .. newname .. "_quarter_wall") |
|
71 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter", newmod..":slab_" .. newname .. "_three_quarter") |
|
72 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter_inverted", newmod..":slab_" .. newname .. "_three_quarter_inverted") |
|
73 |
minetest.register_alias(modname .. ":slab_" .. origname .. "_three_quarter_wall", newmod..":slab_" .. newname .. "_three_quarter_wall") |
|
74 |
minetest.register_alias(modname .. ":stair_" .. origname, newmod..":stair_" .. newname) |
|
75 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_inverted", newmod..":stair_" .. newname .. "_inverted") |
|
76 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_wall", newmod..":stair_" .. newname .. "_wall") |
|
77 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half", newmod..":stair_" .. newname .. "_wall_half") |
|
78 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half_inverted", newmod..":stair_" .. newname .. "_wall_half_inverted") |
|
79 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_half", newmod..":stair_" .. newname .. "_half") |
|
80 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_half_inverted", newmod..":stair_" .. newname .. "_half_inverted") |
|
81 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_right_half", newmod..":stair_" .. newname .. "_right_half") |
|
82 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_right_half_inverted", newmod..":stair_" .. newname .. "_right_half_inverted") |
|
83 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half", newmod..":stair_" .. newname .. "_wall_half") |
|
84 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_wall_half_inverted", newmod..":stair_" .. newname .. "_wall_half_inverted") |
|
85 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_inner", newmod..":stair_" .. newname .. "_inner") |
|
86 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_inner_inverted", newmod..":stair_" .. newname .. "_inner_inverted") |
|
87 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_outer", newmod..":stair_" .. newname .. "_outer") |
|
88 |
minetest.register_alias(modname .. ":stair_" .. origname .. "_outer_inverted", newmod..":stair_" .. newname .. "_outer_inverted") |
|
89 |
minetest.register_alias(modname .. ":panel_" .. origname .. "_bottom", newmod..":panel_" .. newname .. "_bottom") |
|
90 |
minetest.register_alias(modname .. ":panel_" .. origname .. "_top", newmod..":panel_" .. newname .. "_top") |
|
91 |
minetest.register_alias(modname .. ":panel_" .. origname .. "_vertical", newmod..":panel_" .. newname .. "_vertical") |
|
92 |
minetest.register_alias(modname .. ":micro_" .. origname .. "_bottom", newmod..":micro_" .. newname .. "_bottom") |
|
93 |
minetest.register_alias(modname .. ":micro_" .. origname .. "_top", newmod..":micro_" .. newname .. "_top") |
724f1a
|
94 |
end |
994d40
|
95 |
|
R |
96 |
register_technic_stairs_alias("stairsplus", "concrete", "technic", "concrete") |
dca23b
|
97 |
register_technic_stairs_alias("stairsplus", "marble", "technic", "marble") |
R |
98 |
register_technic_stairs_alias("stairsplus", "granite", "technic", "granite") |
|
99 |
register_technic_stairs_alias("stairsplus", "marble_bricks", "technic", "marble_bricks") |