-
Notifications
You must be signed in to change notification settings - Fork 1
/
castle_doors.lua
144 lines (132 loc) · 3.88 KB
/
castle_doors.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
--NORMALS DOORS
minetest.register_craft({
output = "castle:jail_door",
recipe = {
{"castle:jailbars", "castle:jailbars"},
{"castle:jailbars", "castle:jailbars"},
{"castle:jailbars", "castle:jailbars"}
}
})
doors:register_door("castle:jail_door", {
description = "Jail Door",
inventory_image = "castle_jail_door_inv.png",
groups = {cracky=2,door=1},
tiles_bottom = {"castle_jail_door_bottom.png", "door_jail.png"},
tiles_top = {"castle_jail_door_top.png", "door_jail.png"},
only_placer_can_open = false,
})
minetest.register_craft({
output = "castle:oak_door",
recipe = {
{"default:tree", "default:tree"},
{"default:tree", "default:tree"},
{"default:tree", "default:tree"}
}
})
doors:register_door("castle:oak_door", {
description = "Oak Door",
inventory_image = "castle_oak_door_inv.png",
groups = {choppy=2,door=1},
tiles_bottom = {"castle_oak_door_bottom.png", "door_oak.png"},
tiles_top = {"castle_oak_door_top.png", "door_oak.png"},
only_placer_can_open = false,
})
--MOSSY DOORS
minetest.register_craft({
output = "castle:mossy_jail_door",
recipe = {
{"castle:jail_door", ""},
{"", ""},
{"", ""}
}
})
doors:register_door("castle:mossy_jail_door", {
description = "Mossy Jail Door",
inventory_image = "mossy_castle_jail_door_inv.png",
groups = {cracky=2,door=1},
tiles_bottom = {"mossy_castle_jail_door_bottom.png", "door_jail.png"},
tiles_top = {"castle_jail_door_top.png", "door_jail.png"},
only_placer_can_open = false,
})
minetest.register_craft({
output = "castle:mossy_oak_door",
recipe = {
{"castle:oak_door", ""},
{"", ""},
{"", ""}
}
})
doors:register_door("castle:mossy_oak_door", {
description = "Mossy Oak Door",
inventory_image = "mossy_castle_oak_door_inv.png",
groups = {choppy=2,door=1},
tiles_bottom = {"mossy_castle_oak_door_bottom.png", "door_oak.png"},
tiles_top = {"castle_oak_door_top.png", "door_oak.png"},
only_placer_can_open = false,
})
--LOCKED DOORS
minetest.register_craft({
output = "castle:jail_door",
recipe = {
{"castle:jailbars", "castle:jailbars"},
{"castle:jailbars", "castle:jailbars"},
{"castle:jailbars", "castle:jailbars"}
}
})
doors:register_door("castle:lock_jail_door", {
description = "Locked Jail Door",
inventory_image = "lock_castle_jail_door_inv.png",
groups = {cracky=2,door=1},
tiles_bottom = {"lock_castle_jail_door_bottom.png", "door_jail.png"},
tiles_top = {"castle_jail_door_top.png", "door_jail.png"},
only_placer_can_open = true,
})
minetest.register_craft({
output = "castle:oak_door",
recipe = {
{"default:tree", "default:tree"},
{"default:tree", "default:tree"},
{"default:tree", "default:tree"}
}
})
doors:register_door("castle:lock_oak_door", {
description = "Locked Oak Door",
inventory_image = "lock_castle_oak_door_inv.png",
groups = {choppy=2,door=1},
tiles_bottom = {"lock_castle_oak_door_bottom.png", "door_oak.png"},
tiles_top = {"castle_oak_door_top.png", "door_oak.png"},
only_placer_can_open = true,
})
--LOCKED MOSSY DOORS
minetest.register_craft({
output = "castle:lock_mossy_jail_door",
recipe = {
{"castle:lock_jail_door", ""},
{"", ""},
{"", ""}
}
})
doors:register_door("castle:lock_mossy_jail_door", {
description = "Locked Mossy Jail Door",
inventory_image = "lock_mossy_castle_jail_door_inv.png",
groups = {cracky=2,door=1},
tiles_bottom = {"lock_mossy_castle_jail_door_bottom.png", "door_jail.png"},
tiles_top = {"castle_jail_door_top.png", "door_jail.png"},
only_placer_can_open = true,
})
minetest.register_craft({
output = "castle:lock_mossy_oak_door",
recipe = {
{"castle:lock_oak_door", ""},
{"", ""},
{"", ""}
}
})
doors:register_door("castle:lock_mossy_oak_door", {
description = "Locked Mossy Oak Door",
inventory_image = "lock_mossy_castle_oak_door_inv.png",
groups = {choppy=2,door=1},
tiles_bottom = {"lock_mossy_castle_oak_door_bottom.png", "door_oak.png"},
tiles_top = {"castle_oak_door_top.png", "door_oak.png"},
only_placer_can_open = true,
})