-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
49 lines (49 loc) · 1.47 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
minetest.register_node("girder:beam", {
description = "beam",
drawtype="mesh",
paramtype="light",
paramtype2="facedir",
mesh="girder_beam.obj",
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
sounds = xcompat.sounds.node_sound_metal_defaults(),
})
minetest.register_node("girder:girder_side", {
description = "beam",
drawtype="mesh",
paramtype="light",
paramtype2="facedir",
mesh="girder_girder_side.obj",
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
sounds = xcompat.sounds.node_sound_metal_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+2/16},
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, -0.5+2/16},
},
})
minetest.register_node("girder:plate", {
description = "beam",
drawtype="mesh",
paramtype="light",
paramtype2="facedir",
mesh="girder_plate.obj",
tiles = {"[combine:16x16^[noalpha^[colorize:grey"},
groups={oddly_breakable_by_hand=3},
is_ground_content = false,
sounds = xcompat.sounds.node_sound_metal_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+1/16, 0.5},
},
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+1/16, 0.5},
},
})