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
|
-- StreetsMod needs a special slab definition, so it needs its own register_stair_and_slab
streets.register_stair_and_slab = function(node,desc,tile,item)
minetest.register_node(":streets:"..node.."_stair",{
description = desc.."stair",
groups = {cracky = 3},
tiles = tile,
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
{-0.5, 0, 0, 0.5, 0.5, 0.5}
}
}
})
minetest.register_node(":streets:"..node.."_slab",{
description = desc.." slab",
groups = {cracky = 3},
tiles = tile,
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
}
}
})
minetest.register_craft({
output = "streets:"..node.."_stair 4",
recipe = {
{"","",item},
{"",item,item},
{item,item,item}
}
})
minetest.register_craft({
output = "streets:"..node.."_stair 4",
recipe = {
{item,"",""},
{item,item,""},
{item,item,item}
}
})
minetest.register_craft({
output = "streets:"..node.."_slab 3",
recipe = {
{"","",""},
{"","",""},
{item,item,item}
}
})
end
|