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
|
local node = {
name = "minetest_errata:mossystone",
short_name = "mossystone",
desc = "Mossy Stone",
tile = "default_stone.png^minetest_errata_moss_overlay.png",
}
minetest.register_node(node.name, {
description = node.desc,
tiles = {node.tile},
groups = {cracky = 3, stone = 1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
drop = "default:mossycobble",
})
minetest.register_craft({
output = node.name,
type = "shapeless",
recipe = {"default:junglegrass", "default:stone"},
})
-- Derivative blocks
if stairs and stairs.mod and stairs.mod == "redo" then
stairs.register_all(node.short_name, node.name,
{cracky = 3, stone = 1},
{node.tile},
node.desc .. " Stair",
node.desc .. " Slab",
default.node_sound_wood_defaults())
elseif minetest.global_exists("stairsplus") then
stairsplus:register_all("minetest_errata", node.short_name, node.name, {
description = node.desc,
tiles = {node.tile},
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_wood_defaults(),
})
else
stairs.register_stair_and_slab(node.short_name, node.name,
{cracky = 3, stone = 1},
{node.tile},
node.desc .. " Stair",
node.desc .. " Slab",
default.node_sound_wood_defaults())
end
|