-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
149 lines (125 loc) · 4.44 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
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
145
146
147
148
149
-- [MOD] Stack Slabs [1.0] [stackslabs] by TumeniNodes 06-24-2016
stackslabs = {}
-- Register stackslabs.
-- Node will be called stackslabs:top_slab_<subname>
function stackslabs.register_top_slab(subname, recipeitem, groups, images, description, sounds)
groups.topslab = 1
minetest.register_node(":stackslabs:top_slab" .. subname, {
description = description,
drawtype = "nodebox",
tiles = images,
paramtype = "light",
sunlight_propogates = true,
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
sounds = sounds,
node_box = {
type = "fixed",
fixed = {
{-0.5, -1, -0.5, 0.5, -0.5, 0.5},
}
}
})
end
-- Register top slab
stackslabs.register_top_slab("wood", "default:wood",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
{"default_wood.png"},
"Wooden Top Slab",
default.node_sound_wood_defaults())
stackslabs.register_top_slab("junglewood", "default:junglewood",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
{"default_junglewood.png"},
"Junglewood Top Slab",
default.node_sound_wood_defaults())
stackslabs.register_top_slab("pine_wood", "default:pine_wood",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
{"default_pine_wood.png"},
"Pine Wood Top Slab",
default.node_sound_wood_defaults())
stackslabs.register_top_slab("acacia_wood", "default:acacia_wood",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
{"default_acacia_wood.png"},
"Acacia Wood Top Slab",
default.node_sound_wood_defaults())
stackslabs.register_top_slab("aspen_wood", "default:aspen_wood",
{snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
{"default_aspen_wood.png"},
"Aspen Wood Top Slab",
default.node_sound_wood_defaults())
stackslabs.register_top_slab("stone", "default:stone",
{cracky = 3},
{"default_stone.png"},
"Stone Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("cobble", "default:cobble",
{cracky = 3},
{"default_cobble.png"},
"Cobblestone Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("stonebrick", "default:stonebrick",
{cracky = 3},
{"default_stone_brick.png"},
"Stone Brick Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("desert_stone", "default:desert_stone",
{cracky = 3},
{"default_desert_stone.png"},
"Desertstone Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("desert_cobble", "default:desert_cobble",
{cracky = 3},
{"default_desert_cobble.png"},
"Desert Cobblestone Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("desert_stonebrick", "default:desert_stonebrick",
{cracky = 3},
{"default_desert_stone_brick.png"},
"Desert Stone Brick Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("sandstone", "default:sandstone",
{crumbly = 1, cracky = 3},
{"default_sandstone.png"},
"Sandstone Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("sandstonebrick", "default:sandstonebrick",
{cracky = 2},
{"default_sandstone_brick.png"},
"Sandstone Brick Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("obsidian", "default:obsidian",
{cracky = 1, level = 2},
{"default_obsidian.png"},
"Obsidian Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("obsidianbrick", "default:obsidianbrick",
{cracky = 1, level = 2},
{"default_obsidian_brick.png"},
"Obsidian Brick Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("brick", "default:brick",
{cracky = 3},
{"default_brick.png"},
"Brick Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("steelblock", "default:steelblock",
{cracky = 1, level = 2},
{"default_steel_block.png"},
"Steel Block Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("copperblock", "default:copperblock",
{cracky = 1, level = 2},
{"default_copper_block.png"},
"Copper Block Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("bronzeblock", "default:bronzeblock",
{cracky = 1, level = 2},
{"default_bronze_block.png"},
"Bronze Block Top Slab",
default.node_sound_stone_defaults())
stackslabs.register_top_slab("goldblock", "default:goldblock",
{cracky = 1},
{"default_gold_block.png"},
"Gold Block Top Slab",
default.node_sound_stone_defaults())