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(),
18 --light_source = 14,--debugging ore spawn
22 minetest.register_node("main:cobble", {
23 description = "Cobblestone",
24 tiles = {"cobble.png"},
25 groups = {stone = 2, hard = 1, pickaxe = 2, hand = 4},
26 sounds = main.stoneSound(),
29 minetest.register_node("main:dirt", {
32 groups = {dirt = 1, soft = 1, shovel = 1, hand = 1},
33 sounds = main.grassSound(),
36 minetest.register_node("main:grass", {
37 description = "Grass",
38 tiles = {"grass.png"},
39 groups = {dirt = 1, soft = 1, shovel = 1, hand = 1},
40 sounds = main.grassSound(),
44 minetest.register_node("main:sand", {
47 groups = {dirt = 1, sand = 1, soft = 1, shovel = 1, hand = 1},
48 sounds = main.sandSound(),
51 minetest.register_node("main:tree", {
53 tiles = {"treeCore.png","treeCore.png","treeOut.png","treeOut.png","treeOut.png","treeOut.png"},
54 groups = {wood = 2, tree = 1, hard = 1, axe = 1, hand = 3},
55 sounds = main.woodSound(),
58 minetest.register_node("main:wood", {
61 groups = {wood = 1, hard = 1, axe = 1, hand = 3},
62 sounds = main.woodSound(),
65 minetest.register_node("main:leaves", {
66 description = "Leaves",
67 drawtype = "allfaces_optional",
72 is_ground_content = false,
73 tiles = {"leaves.png"},
74 groups = {leaves = 1, plant = 1, axe = 1, hand = 0, leafdecay = 1},
75 sounds = main.grassSound(),
80 -- Only drop if using a tool whose name is identical to one
82 tools = {"main:shears"},
84 items = {"main:leaves"},
85 -- Whether all items in the dropped item list inherit the
86 -- hardware coloring palette color from the dug node.
87 -- Default is 'false'.
88 --inherit_color = true,
91 -- Only drop if using a tool whose name is identical to one
93 tools = {"main:shears"},
95 items = {"main:stick"},
96 -- Whether all items in the dropped item list inherit the
97 -- hardware coloring palette color from the dug node.
98 -- Default is 'false'.
99 --inherit_color = true,
102 -- Only drop if using a tool whose name is identical to one
104 tools = {"main:shears"},
106 items = {"main:apple"},
107 -- Whether all items in the dropped item list inherit the
108 -- hardware coloring palette color from the dug node.
109 -- Default is 'false'.
110 --inherit_color = true,
116 minetest.register_node("main:waterSource", {
117 description = "Water Source",
122 name = "waterSource.png",
123 backface_culling = false,
125 type = "vertical_frames",
132 name = "waterSource.png",
133 backface_culling = true,
135 type = "vertical_frames",
148 is_ground_content = false,
151 liquidtype = "source",
152 liquid_alternative_flowing = "main:waterFlow",
153 liquid_alternative_source = "main:waterSource",
154 liquid_viscosity = 1,
155 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
156 groups = {water = 1, liquid = 1, cools_lava = 1, bucket = 1, source = 1},
157 --sounds = default.node_sound_water_defaults(),
160 minetest.register_node("main:waterFlow", {
161 description = "Water Flow",
162 drawtype = "flowingliquid",
164 tiles = {"water.png"},
167 name = "waterFlow.png",
168 backface_culling = false,
170 type = "vertical_frames",
177 name = "waterFlow.png",
178 backface_culling = true,
180 type = "vertical_frames",
189 paramtype2 = "flowingliquid",
194 is_ground_content = false,
197 liquidtype = "flowing",
198 liquid_alternative_flowing = "main:waterFlow",
199 liquid_alternative_source = "main:waterSource",
200 liquid_viscosity = 1,
201 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
202 groups = {water = 1, liquid = 1, notInCreative = 1, cools_lava = 1},
203 --sounds = default.node_sound_water_defaults(),
208 minetest.register_node("default:lava_source", {
209 description = S("Lava Source"),
213 name = "default_lava_source_animated.png",
214 backface_culling = false,
216 type = "vertical_frames",
223 name = "default_lava_source_animated.png",
224 backface_culling = true,
226 type = "vertical_frames",
234 light_source = default.LIGHT_MAX - 1,
239 is_ground_content = false,
242 liquidtype = "source",
243 liquid_alternative_flowing = "default:lava_flowing",
244 liquid_alternative_source = "default:lava_source",
245 liquid_viscosity = 7,
246 liquid_renewable = false,
247 damage_per_second = 4 * 2,
248 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
249 groups = {lava = 3, liquid = 2, igniter = 1},
252 minetest.register_node("default:lava_flowing", {
253 description = S("Flowing Lava"),
254 drawtype = "flowingliquid",
255 tiles = {"default_lava.png"},
258 name = "default_lava_flowing_animated.png",
259 backface_culling = false,
261 type = "vertical_frames",
268 name = "default_lava_flowing_animated.png",
269 backface_culling = true,
271 type = "vertical_frames",
279 paramtype2 = "flowingliquid",
280 light_source = default.LIGHT_MAX - 1,
285 is_ground_content = false,
288 liquidtype = "flowing",
289 liquid_alternative_flowing = "default:lava_flowing",
290 liquid_alternative_source = "default:lava_source",
291 liquid_viscosity = 7,
292 liquid_renewable = false,
293 damage_per_second = 4 * 2,
294 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
295 groups = {lava = 3, liquid = 2, igniter = 1,
296 not_in_creative_inventory = 1},