2 minetest.register_node("nether:bedrock", {
3 description = "Bedrock",
4 tiles = {"bedrock.png"},
5 groups = {unbreakable = 1, pathable = 1},
6 sounds = main.stoneSound(),
7 is_ground_content = false,
8 --light_source = 14, --debugging
12 minetest.register_node("nether:netherrack", {
13 description = "Netherrack",
14 tiles = {"netherrack.png"},
15 groups = {netherrack = 1, pathable = 1},
16 sounds = main.stoneSound(),
17 is_ground_content = false,
24 tools = {"main:woodpick","main:stonepick","main:ironpick","main:goldpick","main:diamondpick"},
25 items = {"nether:netherrack"},
30 minetest.register_node("nether:glowstone", {
31 description = "Glowstone",
32 tiles = {"glowstone.png"},
33 groups = {glass = 1, pathable = 1},
34 sounds = main.stoneSound({
35 footstep = {name = "glass_footstep", gain = 0.4},
36 dug = {name = "break_glass", gain = 0.4},
38 is_ground_content = false,
40 after_destruct = function(pos, oldnode)
41 destroy_aether_portal(pos)
45 tools = tool_required,
48 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
49 items = {"nether:glowstone_dust"},
52 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
53 items = {"nether:glowstone_dust"},
56 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
57 items = {"nether:glowstone_dust"},
60 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
61 items = {"nether:glowstone_dust"},
65 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
66 items = {"nether:glowstone_dust"},
72 minetest.register_node("nether:obsidian", {
73 description = "Obsidian",
74 tiles = {"obsidian.png"},
75 groups = {stone = 5, pathable = 1},
76 --groups = {stone = 1, pathable = 1}, --leave this here for debug
77 sounds = main.stoneSound(),
78 is_ground_content = false,
79 after_destruct = function(pos, oldnode)
80 destroy_nether_portal(pos)
86 minetest.register_node("nether:lava", {
91 name = "lava_source.png",
92 backface_culling = false,
94 type = "vertical_frames",
101 name = "lava_source.png",
102 backface_culling = true,
104 type = "vertical_frames",
117 is_ground_content = false,
120 liquidtype = "source",
121 liquid_alternative_flowing = "nether:lavaflow",
122 liquid_alternative_source = "nether:lava",
123 liquid_viscosity = 1,
124 liquid_renewable = true,
125 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
126 groups = {lava = 3, liquid = 2, igniter = 1,hurt_inside=2},
129 minetest.register_node("nether:lavaflow", {
130 description = "Flowing Lava",
131 drawtype = "flowingliquid",
132 tiles = {"lava_flow.png"},
135 name = "lava_flow.png",
136 backface_culling = false,
138 type = "vertical_frames",
145 name = "lava_flow.png",
146 backface_culling = true,
148 type = "vertical_frames",
162 paramtype2 = "flowingliquid",
168 is_ground_content = false,
171 liquidtype = "flowing",
172 liquid_alternative_flowing = "nether:lavaflow",
173 liquid_alternative_source = "nether:lava",
174 liquid_viscosity = 1,
175 liquid_renewable = true,
176 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
177 groups = {lava = 3, liquid = 2, igniter = 1,hurt_inside=2},
180 local ores = {"redstone_","coal","iron","gold","diamond"}
181 local tool = {"main:woodpick","main:stonepick","main:ironpick","main:goldpick","main:diamondpick"}
182 for id,ore in pairs(ores) do
187 local tool_required = {}
189 table.insert(tool_required, tool[i])
199 tools = tool_required,
200 items = {"nether:"..ore.."ore"},
204 if ore == "diamond" then
210 tools = tool_required,
211 items = {"main:diamond"},
215 elseif ore == "coal" then
221 tools = tool_required,
222 items = {"main:coal"},
226 elseif ore == "redstone_" then
229 tools = tool_required,
232 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
233 items = {"redstone:dust"},
236 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
237 items = {"redstone:dust"},
240 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
241 items = {"redstone:dust"},
244 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
245 items = {"redstone:dust"},
249 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
250 items = {"redstone:dust"},
256 minetest.register_node("nether:"..ore.."ore", {
257 description = ore:gsub("^%l", string.upper).." Ore",
258 tiles = {"netherrack.png^"..ore.."ore.png"},
259 groups = {netherrack = id, pathable = 1, experience = id*2},
260 sounds = main.stoneSound(),
263 after_destruct = function(pos, oldnode)
264 if math.random() > 0.95 then
265 minetest.sound_play("tnt_ignite")
266 minetest.after(3, function(pos)
274 local colorize_ratio = 125
275 minetest.register_node("nether:tree", {
276 description = "Nether Tree",
277 tiles = {"treeCore.png^[colorize:red:"..colorize_ratio,"treeCore.png^[colorize:red:"..colorize_ratio,"treeOut.png^[colorize:red:"..colorize_ratio,"treeOut.png^[colorize:red:"..colorize_ratio,"treeOut.png^[colorize:red:"..colorize_ratio,"treeOut.png^[colorize:red:"..colorize_ratio},
278 groups = {wood = 1, tree = 1, pathable = 1},
279 sounds = main.woodSound(),
280 --set metadata so treecapitator doesn't destroy houses
281 on_place = function(itemstack, placer, pointed_thing)
282 if not pointed_thing.type == "node" then
286 local sneak = placer:get_player_control().sneak
287 local noddef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
288 if not sneak and noddef.on_rightclick then
289 minetest.item_place(itemstack, placer, pointed_thing)
293 local pos = pointed_thing.above
294 minetest.item_place_node(itemstack, placer, pointed_thing)
295 local meta = minetest.get_meta(pos)
296 meta:set_string("placed", "true")
300 --treecapitator - move treecapitator into own file using override
301 on_dig = function(pos, node, digger)
303 --check if wielding axe?
305 local meta = minetest.get_meta(pos)
306 if not meta:contains("placed") then
309 local name = minetest.get_node(vector.new(pos.x,pos.y+y,pos.z)).name
311 if name == "nether:tree" then
312 minetest.node_dig(vector.new(pos.x,pos.y+y,pos.z), node, digger)
316 minetest.node_dig(pos, node, digger)
321 minetest.register_node("nether:wood", {
322 description = "Nether Wood",
323 tiles = {"wood.png^[colorize:red:"..colorize_ratio},
324 groups = {wood = 1, pathable = 1},
325 sounds = main.woodSound(),
330 minetest.register_node("nether:leaves", {
331 description = "Nether Leaves",
332 drawtype = "allfaces_optional",
337 is_ground_content = false,
338 tiles = {"leaves.png^[colorize:red:"..colorize_ratio},
339 groups = {leaves = 1, leafdecay = 1},
340 sounds = main.grassSound(),
346 -- Only drop if using a tool whose name is identical to one
349 items = {"main:sapling"},
350 -- Whether all items in the dropped item list inherit the
351 -- hardware coloring palette color from the dug node.
352 -- Default is 'false'.
353 --inherit_color = true,
356 -- Only drop if using a tool whose name is identical to one
358 tools = {"main:shears"},
360 items = {"main:leaves"},
361 -- Whether all items in the dropped item list inherit the
362 -- hardware coloring palette color from the dug node.
363 -- Default is 'false'.
364 --inherit_color = true,
367 -- Only drop if using a tool whose name is identical to one
369 tools = {"main:shears"},
371 items = {"main:stick"},
372 -- Whether all items in the dropped item list inherit the
373 -- hardware coloring palette color from the dug node.
374 -- Default is 'false'.
375 --inherit_color = true,
378 -- Only drop if using a tool whose name is identical to one
380 tools = {"main:shears"},
382 items = {"main:apple"}, --golden apples
383 -- Whether all items in the dropped item list inherit the
384 -- hardware coloring palette color from the dug node.
385 -- Default is 'false'.
386 --inherit_color = true,