-
Notifications
You must be signed in to change notification settings - Fork 37
/
shingles.lua
97 lines (90 loc) · 2.75 KB
/
shingles.lua
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
-- Various kidns of shingles
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
minetest.register_node("homedecor:skylight", {
description = S("Glass Skylight"),
drawtype = "raillike",
tiles = { "default_glass.png" },
wield_image = "default_glass.png",
inventory_image = "homedecor_skylight_inv.png",
paramtype = "light",
sunlight_propagates = true,
walkable = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node("homedecor:skylight_frosted", {
description = S("Glass Skylight"),
drawtype = "raillike",
tiles = { "homedecor_skylight_frosted.png" },
wield_image = "homedecor_skylight_frosted.png",
inventory_image = "homedecor_skylight_frosted_inv.png",
paramtype = "light",
sunlight_propagates = true,
use_texture_alpha = true,
walkable = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node("homedecor:shingles_wood", {
description = S("Wood Shingles"),
drawtype = "raillike",
tiles = { "homedecor_shingles_wood.png" },
wield_image = "homedecor_shingles_wood.png",
inventory_image = "homedecor_shingles_wood_inv.png",
paramtype = "light",
sunlight_propagates = false,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node("homedecor:shingles_asphalt", {
description = S("Asphalt Shingles"),
drawtype = "raillike",
tiles = { "homedecor_shingles_asphalt.png" },
wield_image = "homedecor_shingles_asphalt.png",
inventory_image = "homedecor_shingles_asphalt_inv.png",
paramtype = "light",
sunlight_propagates = false,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})
minetest.register_node("homedecor:shingles_terracotta", {
description = S("Terracotta Roofing"),
drawtype = "raillike",
tiles = { "homedecor_shingles_terracotta.png" },
wield_image = "homedecor_shingles_terracotta.png",
inventory_image = "homedecor_shingles_terracotta_inv.png",
paramtype = "light",
sunlight_propagates = false,
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 }
}
})