1 print("Initializing nodes")
3 minetest.register_node("main:stone", {
6 groups = {stone = 1, hard = 1, pickaxe = 1, hand = 4},
7 sounds = main.stoneSound(),
11 local ores = {"coal","iron","gold","diamond"}
12 for id,ore in pairs(ores) do
13 minetest.register_node("main:"..ore.."ore", {
14 description = ore:gsub("^%l", string.upper).." Ore",
15 tiles = {"stone.png^"..ore.."ore.png"},
16 groups = {stone = id, hard = id, pickaxe = 1, hand = 4},
17 sounds = main.stoneSound(),
21 minetest.register_node("main:cobble", {
22 description = "Cobblestone",
23 tiles = {"cobble.png"},
24 groups = {stone = 2, hard = 1, pickaxe = 2, hand = 4},
25 sounds = main.stoneSound(),
28 minetest.register_node("main:dirt", {
31 groups = {dirt = 1, soft = 1, shovel = 1, hand = 1},
32 sounds = main.grassSound(),
35 minetest.register_node("main:grass", {
36 description = "Grass",
37 tiles = {"grass.png"},
38 groups = {dirt = 1, soft = 1, shovel = 1, hand = 1},
39 sounds = main.grassSound(),
43 minetest.register_node("main:sand", {
46 groups = {dirt = 1, sand = 1, soft = 1, shovel = 1, hand = 1},
47 sounds = main.sandSound(),
50 minetest.register_node("main:tree", {
52 tiles = {"treeCore.png","treeCore.png","treeOut.png","treeOut.png","treeOut.png","treeOut.png"},
53 groups = {wood = 2, tree = 1, hard = 1, axe = 1, hand = 3},
54 sounds = main.woodSound(),
57 minetest.register_node("main:wood", {
60 groups = {wood = 1, hard = 1, axe = 1, hand = 3},
61 sounds = main.woodSound(),
64 minetest.register_node("main:leaves", {
65 description = "Leaves",
66 drawtype = "allfaces_optional",
71 is_ground_content = false,
72 tiles = {"leaves.png"},
73 groups = {leaves = 1, plant = 1, axe = 1, hand = 0, leafdecay = 1},
74 sounds = main.grassSound(),
79 -- Only drop if using a tool whose name is identical to one
81 tools = {"main:shears"},
83 items = {"main:leaves"},
84 -- Whether all items in the dropped item list inherit the
85 -- hardware coloring palette color from the dug node.
86 -- Default is 'false'.
87 --inherit_color = true,
90 -- Only drop if using a tool whose name is identical to one
92 tools = {"main:shears"},
94 items = {"main:stick"},
95 -- Whether all items in the dropped item list inherit the
96 -- hardware coloring palette color from the dug node.
97 -- Default is 'false'.
98 --inherit_color = true,
101 -- Only drop if using a tool whose name is identical to one
103 tools = {"main:shears"},
105 items = {"main:apple"},
106 -- Whether all items in the dropped item list inherit the
107 -- hardware coloring palette color from the dug node.
108 -- Default is 'false'.
109 --inherit_color = true,
115 minetest.register_node("main:waterSource", {
116 description = "Water Source",
121 name = "waterSource.png",
122 backface_culling = false,
124 type = "vertical_frames",
131 name = "waterSource.png",
132 backface_culling = true,
134 type = "vertical_frames",
147 is_ground_content = false,
150 liquidtype = "source",
151 liquid_alternative_flowing = "main:waterFlow",
152 liquid_alternative_source = "main:waterSource",
153 liquid_viscosity = 1,
154 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
155 groups = {water = 1, liquid = 1, cools_lava = 1, bucket = 1, source = 1},
156 --sounds = default.node_sound_water_defaults(),
159 minetest.register_node("main:waterFlow", {
160 description = "Water Flow",
161 drawtype = "flowingliquid",
163 tiles = {"water.png"},
166 name = "waterFlow.png",
167 backface_culling = false,
169 type = "vertical_frames",
176 name = "waterFlow.png",
177 backface_culling = true,
179 type = "vertical_frames",
188 paramtype2 = "flowingliquid",
193 is_ground_content = false,
196 liquidtype = "flowing",
197 liquid_alternative_flowing = "main:waterFlow",
198 liquid_alternative_source = "main:waterSource",
199 liquid_viscosity = 1,
200 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
201 groups = {water = 1, liquid = 1, notInCreative = 1, cools_lava = 1},
202 --sounds = default.node_sound_water_defaults(),
207 minetest.register_node("default:lava_source", {
208 description = S("Lava Source"),
212 name = "default_lava_source_animated.png",
213 backface_culling = false,
215 type = "vertical_frames",
222 name = "default_lava_source_animated.png",
223 backface_culling = true,
225 type = "vertical_frames",
233 light_source = default.LIGHT_MAX - 1,
238 is_ground_content = false,
241 liquidtype = "source",
242 liquid_alternative_flowing = "default:lava_flowing",
243 liquid_alternative_source = "default:lava_source",
244 liquid_viscosity = 7,
245 liquid_renewable = false,
246 damage_per_second = 4 * 2,
247 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
248 groups = {lava = 3, liquid = 2, igniter = 1},
251 minetest.register_node("default:lava_flowing", {
252 description = S("Flowing Lava"),
253 drawtype = "flowingliquid",
254 tiles = {"default_lava.png"},
257 name = "default_lava_flowing_animated.png",
258 backface_culling = false,
260 type = "vertical_frames",
267 name = "default_lava_flowing_animated.png",
268 backface_culling = true,
270 type = "vertical_frames",
278 paramtype2 = "flowingliquid",
279 light_source = default.LIGHT_MAX - 1,
284 is_ground_content = false,
287 liquidtype = "flowing",
288 liquid_alternative_flowing = "default:lava_flowing",
289 liquid_alternative_source = "default:lava_source",
290 liquid_viscosity = 7,
291 liquid_renewable = false,
292 damage_per_second = 4 * 2,
293 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
294 groups = {lava = 3, liquid = 2, igniter = 1,
295 not_in_creative_inventory = 1},