-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
67 lines (59 loc) · 1.91 KB
/
init.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
dofile(minetest.get_modpath("doors_modular").."/functions.lua")
doors_modular:register_door("doors_modular:door_wood", {
description = "Wooden Door",
inventory_image = "doors_modular_wood_b.png",
groups = {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=2, door=1},
tiles = {"doors_modular_wood_b.png"},
})
minetest.register_craft({
output = "doors_modular:door_wood_1 2",
recipe = {
{"group:wood", "group:wood", ""},
{"group:wood", "group:wood", "group:stick"},
{"group:wood", "group:wood", ""}
}
})
doors_modular:register_door("doors_modular:door_wood_window", {
description = "Wooden Window",
inventory_image = "doors_modular_wood_a.png",
groups = {snappy=1, choppy=2, oddly_breakable_by_hand=2, flammable=2, door=1},
tiles = {"doors_modular_wood_a.png"},
})
minetest.register_craft({
output = "doors_modular:door_wood_window_1 2",
recipe = {
{"group:wood", "group:wood"},
{"group:stick", "group:stick"},
{"group:wood", "group:wood"}
}
})
doors_modular:register_door("doors_modular:door_steel", {
description = "Steel Door",
inventory_image = "doors_modular_steel_b.png",
groups = {snappy=1, cracky=1, door=1},
tiles = {"doors_modular_steel_b.png"},
only_placer_can_open = true,
})
minetest.register_craft({
output = "doors_modular:door_steel",
recipe = {
{"default:steel_ingot", "default:steel_ingot", ""},
{"default:steel_ingot", "default:steel_ingot", "group:stick"},
{"default:steel_ingot", "default:steel_ingot", ""}
}
})
doors_modular:register_door("doors_modular:steel_bars", {
description = "Steel Bars",
inventory_image = "doors_modular_steel_bars.png",
groups = {snappy=1, cracky=1, door=1},
tiles = {"doors_modular_steel_bars.png"},
only_placer_can_open = true,
})
minetest.register_craft({
output = "doors_modular:door_steel",
recipe = {
{"default:steel_ingot", "default:steel_ingot"},
{"default:stick", "default:stick"},
{"default:steel_ingot", "default:steel_ingot"}
}
})