summaryrefslogtreecommitdiff
path: root/glooptest/parts_module/init.lua
blob: b1a9202ebd7232ef07071cdeeb6bdd21b695b262 (plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
glooptest.parts_module = {}
glooptest.debug("MESSAGE","Loading Parts Module Now!")

minetest.register_craftitem("glooptest:chainlink", {
	description = "Chainlink",
	inventory_image = "glooptest_chainlink.png"
})

minetest.register_craft({
	output = "glooptest:chainlink 8",
	recipe = {
		{"", "default:steel_ingot", ""},
		{"default:steel_ingot", "", "default:steel_ingot"},
		{"", "default:steel_ingot", ""}
	}
})

minetest.register_node("glooptest:crystal_glass", {
	description = "Crystal Glass",
	drawtype = "allfaces",
	tiles = {"glooptest_crystal_glass.png"},
	inventory_image = minetest.inventorycube("glooptest_crystal_glass.png"),
	paramtype = "light",
	sunlight_propagates = true,
	groups = {cracky=3},
	sounds = default.node_sound_glass_defaults(),
})

minetest.register_craft({
	output = "glooptest:crystal_glass 4",
	recipe = {
		{"default:glass", "default:desert_stone"},
		{"default:desert_stone", "default:glass"},
	}
})

minetest.register_craft({
	output = "glooptest:crystal_glass 4",
	recipe = {
		{"default:desert_stone", "default:glass"},
		{"default:glass", "default:desert_stone"},
	}
})

minetest.register_node("glooptest:reinforced_crystal_glass", {
	description = "Steel-Reinforced Crystal Glass",
	drawtype = "allfaces",
	tiles = {"glooptest_reinforced_crystal_glass.png"},
	inventory_image = minetest.inventorycube("glooptest_reinforced_crystal_glass.png"),
	paramtype = "light",
	sunlight_propagates = true,
	groups = {cracky=2},
	sounds = default.node_sound_glass_defaults(),
})

minetest.register_craft({
	output = "glooptest:reinforced_crystal_glass 8",
	recipe = {
		{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
		{"glooptest:crystal_glass", "default:steel_ingot", "glooptest:crystal_glass"},
		{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
	}
})

if LOAD_ORE_MODULE == true then

	minetest.register_node("glooptest:akalin_crystal_glass", {
		description = "Akalin-Reinforced Crystal Glass",
		drawtype = "allfaces",
		tiles = {"glooptest_akalin_crystal_glass.png"},
		inventory_image = minetest.inventorycube("glooptest_akalin_crystal_glass.png"),
		paramtype = "light",
		sunlight_propagates = true,
		groups = {cracky=2},
		sounds = default.node_sound_glass_defaults(),
	})
	
	minetest.register_craft({
		output = "glooptest:akalin_crystal_glass 8",
		recipe = {
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:akalin_ingot", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
		}
	})
	
	minetest.register_node("glooptest:heavy_crystal_glass", {
		description = "Heavily Reinforced Crystal Glass",
		drawtype = "allfaces",
		tiles = {"glooptest_reinforced_akalin_crystal_glass.png"},
		inventory_image = minetest.inventorycube("glooptest_reinforced_akalin_crystal_glass.png"),
		paramtype = "light",
		sunlight_propagates = true,
		groups = {cracky=1},
		sounds = default.node_sound_glass_defaults(),
	})
	
	minetest.register_craft({
		output = "glooptest:heavy_crystal_glass 4",
		recipe = {
			{"glooptest:reinforced_crystal_glass", "glooptest:akalin_crystal_glass"},
			{"glooptest:akalin_crystal_glass", "glooptest:reinforced_crystal_glass"},
		}
	})
	
	minetest.register_craft({
		output = "glooptest:heavy_crystal_glass 4",
		recipe = {
			{"glooptest:akalin_crystal_glass", "glooptest:reinforced_crystal_glass"},
			{"glooptest:reinforced_crystal_glass", "glooptest:akalin_crystal_glass"},
		}
	})
	
	minetest.register_node("glooptest:alatro_crystal_glass", {
		description = "Alatro-Reinforced Crystal Glass",
		drawtype = "allfaces",
		tiles = {"glooptest_alatro_crystal_glass.png"},
		use_texture_alpha = true,
		inventory_image = minetest.inventorycube("glooptest_alatro_crystal_glass.png"),
		paramtype = "light",
		groups = {cracky=2},
		sounds = default.node_sound_glass_defaults(),
	})
	
	minetest.register_craft({
		output = "glooptest:alatro_crystal_glass 8",
		recipe = {
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:alatro_ingot", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
		}
	})

	minetest.register_node("glooptest:arol_crystal_glass", {
		description = "Arol-Reinforced Crystal Glass",
		drawtype = "allfaces",
		tiles = {"glooptest_arol_crystal_glass.png"},
		inventory_image = minetest.inventorycube("glooptest_arol_crystal_glass.png"),
		paramtype = "light",
		sunlight_propagates = true,
		groups = {cracky=1},
		sounds = default.node_sound_glass_defaults(),
	})
	
	minetest.register_craft({
		output = "glooptest:arol_crystal_glass 8",
		recipe = {
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:arol_ingot", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
		}
	})
	
	minetest.register_node("glooptest:talinite_crystal_glass", {
		description = "Talinite-Reinforced Crystal Glass",
		drawtype = "allfaces",
		tiles = {"glooptest_talinite_crystal_glass.png"},
		inventory_image = minetest.inventorycube("glooptest_talinite_crystal_glass.png"),
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 14,
		groups = {cracky=2},
		sounds = default.node_sound_glass_defaults(),
	})
	
	minetest.register_craft({
		output = "glooptest:talinite_crystal_glass 8",
		recipe = {
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:talinite_ingot", "glooptest:crystal_glass"},
			{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
		}
	})
end