-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.lua
More file actions
58 lines (48 loc) · 1.16 KB
/
init.lua
File metadata and controls
58 lines (48 loc) · 1.16 KB
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
-- Ice Brick
minetest.register_node("ice:brick", {
description = "Ice Brick",
tiles = {
"ice_brick_tb.png",
"ice_brick_tb.png",
"ice_brick_sides.png"
},
is_ground_content = false,
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky = 3, cools_lava = 1, slippery = 3},
sounds = default.node_sound_ice_defaults(),
})
minetest.register_craft{
output = "ice:brick",
recipe = {
{"default:ice", "default:ice"},
{"default:ice", "default:ice"}
}
}
-- Ice Brick Wall
walls.register(
"ice:wall",
"Ice Brick Wall",
"ice_brick_sides.png",
"ice:brick",
default.node_sound_ice_defaults()
)
-- Fix groups (ice is not stone)
minetest.override_item("ice:wall", {
groups = {cracky = 3, cools_lava = 1, slippery = 3, wall = 1}
})
-- Ice Door
doors.register("ice:door", {
tiles = {"ice_door.png"},
description = "Ice Door",
inventory_image = "ice_door_inv.png",
groups = {cracky = 3, cools_lava = 1, slippery = 3},
sounds = default.node_sound_ice_defaults(),
sound_open = "doors_glass_door_open",
sound_close = "doors_glass_door_close",
recipe = {
{"default:ice", "default:ice"},
{"default:ice", "default:ice"},
{"default:ice", "default:ice"},
}
})