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:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
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)
47 tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
48 items = {"nether:glowstone_dust"},
51 tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
52 items = {"nether:glowstone_dust"},
55 tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
56 items = {"nether:glowstone_dust"},
59 tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
60 items = {"nether:glowstone_dust"},
64 tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"},
65 items = {"nether:glowstone_dust"},
71 minetest.register_node("nether:obsidian", {
72 description = "Obsidian",
73 tiles = {"obsidian.png"},
74 groups = {obsidian = 1, pathable = 1},
75 --groups = {stone = 1, pathable = 1}, --leave this here for debug
76 sounds = main.stoneSound(),
77 is_ground_content = false,
78 after_destruct = function(pos, oldnode)
79 destroy_nether_portal(pos)
85 minetest.register_node("nether:lava", {
90 name = "lava_source.png",
91 backface_culling = false,
93 type = "vertical_frames",
100 name = "lava_source.png",
101 backface_culling = true,
103 type = "vertical_frames",
116 is_ground_content = false,
119 liquidtype = "source",
120 liquid_alternative_flowing = "nether:lavaflow",
121 liquid_alternative_source = "nether:lava",
122 liquid_viscosity = 1,
123 liquid_renewable = true,
124 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
125 groups = {lava = 3, liquid = 2, igniter = 1, fire=1,hurt_inside=1},
128 minetest.register_node("nether:lavaflow", {
129 description = "Flowing Lava",
130 drawtype = "flowingliquid",
131 tiles = {"lava_flow.png"},
134 name = "lava_flow.png",
135 backface_culling = false,
137 type = "vertical_frames",
144 name = "lava_flow.png",
145 backface_culling = true,
147 type = "vertical_frames",
161 paramtype2 = "flowingliquid",
167 is_ground_content = false,
170 liquidtype = "flowing",
171 liquid_alternative_flowing = "nether:lavaflow",
172 liquid_alternative_source = "nether:lava",
173 liquid_viscosity = 1,
174 liquid_renewable = true,
175 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
176 groups = {lava = 3, liquid = 2, igniter = 1, fire=1,hurt_inside=1},
179 local ores = {"redstone_","coal","iron","gold","diamond"}
180 local tool = {"main:woodpick","main:stonepick","main:ironpick","main:goldpick","main:diamondpick"}
181 for id,ore in pairs(ores) do
186 local tool_required = {}
188 table.insert(tool_required, tool[i])
198 tools = tool_required,
199 items = {"nether:"..ore.."ore"},
203 if ore == "diamond" then
209 tools = tool_required,
210 items = {"main:diamond"},
214 elseif ore == "coal" then
220 tools = tool_required,
221 items = {"main:coal"},
225 elseif ore == "redstone_" then
228 tools = tool_required,
231 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
232 items = {"redstone:dust"},
235 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
236 items = {"redstone:dust"},
239 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
240 items = {"redstone:dust"},
243 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
244 items = {"redstone:dust"},
248 tools = {"main:ironpick","main:goldpick","main:diamondpick"},
249 items = {"redstone:dust"},
255 minetest.register_node("nether:"..ore.."ore", {
256 description = ore:gsub("^%l", string.upper).." Ore",
257 tiles = {"netherrack.png^"..ore.."ore.png"},
258 groups = {netherrack = id, pathable = 1, experience = id*2},
259 sounds = main.stoneSound(),
262 after_destruct = function(pos, oldnode)
263 if math.random() > 0.95 then
264 minetest.sound_play("tnt_ignite")
265 minetest.after(1.5, function(pos)
273 local colorize_ratio = 125
274 minetest.register_node("nether:tree", {
275 description = "Nether Tree",
276 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},
277 groups = {wood = 1, tree = 1, pathable = 1},
278 sounds = main.woodSound(),
279 --set metadata so treecapitator doesn't destroy houses
280 on_place = function(itemstack, placer, pointed_thing)
281 if not pointed_thing.type == "node" then
285 local sneak = placer:get_player_control().sneak
286 local noddef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
287 if not sneak and noddef.on_rightclick then
288 minetest.item_place(itemstack, placer, pointed_thing)
292 local pos = pointed_thing.above
293 minetest.item_place_node(itemstack, placer, pointed_thing)
294 local meta = minetest.get_meta(pos)
295 meta:set_string("placed", "true")
299 --treecapitator - move treecapitator into own file using override
300 on_dig = function(pos, node, digger)
302 --check if wielding axe?
304 local meta = minetest.get_meta(pos)
305 if not meta:contains("placed") then
308 local name = minetest.get_node(vector.new(pos.x,pos.y+y,pos.z)).name
310 if name == "nether:tree" then
311 minetest.node_dig(vector.new(pos.x,pos.y+y,pos.z), node, digger)
315 minetest.node_dig(pos, node, digger)
320 minetest.register_node("nether:wood", {
321 description = "Nether Wood",
322 tiles = {"wood.png^[colorize:red:"..colorize_ratio},
323 groups = {wood = 1, pathable = 1},
324 sounds = main.woodSound(),
329 minetest.register_node("nether:leaves", {
330 description = "Nether Leaves",
331 drawtype = "allfaces_optional",
336 is_ground_content = false,
337 tiles = {"leaves.png^[colorize:red:"..colorize_ratio},
338 groups = {leaves = 1, leafdecay = 1},
339 sounds = main.grassSound(),
345 -- Only drop if using a tool whose name is identical to one
348 items = {"main:sapling"},
349 -- Whether all items in the dropped item list inherit the
350 -- hardware coloring palette color from the dug node.
351 -- Default is 'false'.
352 --inherit_color = true,
355 -- Only drop if using a tool whose name is identical to one
357 tools = {"main:shears"},
359 items = {"main:leaves"},
360 -- Whether all items in the dropped item list inherit the
361 -- hardware coloring palette color from the dug node.
362 -- Default is 'false'.
363 --inherit_color = true,
366 -- Only drop if using a tool whose name is identical to one
368 tools = {"main:shears"},
370 items = {"main:stick"},
371 -- Whether all items in the dropped item list inherit the
372 -- hardware coloring palette color from the dug node.
373 -- Default is 'false'.
374 --inherit_color = true,
377 -- Only drop if using a tool whose name is identical to one
379 tools = {"main:shears"},
381 items = {"main:apple"}, --golden apples
382 -- Whether all items in the dropped item list inherit the
383 -- hardware coloring palette color from the dug node.
384 -- Default is 'false'.
385 --inherit_color = true,