minetest.register_node("nether:bedrock", { description = "Bedrock", tiles = {"bedrock.png"}, groups = {unbreakable = 1, pathable = 1}, sounds = main.stoneSound(), is_ground_content = false, --light_source = 14, --debugging }) minetest.register_node("nether:netherrack", { description = "Netherrack", tiles = {"netherrack.png"}, groups = {netherrack = 1, pathable = 1}, sounds = main.stoneSound(), is_ground_content = false, light_source = 7, drop = { max_items = 1, items= { { rarity = 0, tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:netherrack"}, }, }, }, }) minetest.register_node("nether:glowstone", { description = "Glowstone", tiles = {"glowstone.png"}, groups = {glass = 1, pathable = 1}, sounds = main.stoneSound({ footstep = {name = "glass_footstep", gain = 0.4}, dug = {name = "break_glass", gain = 0.4}, }), is_ground_content = false, light_source = 12, after_destruct = function(pos, oldnode) destroy_aether_portal(pos) end, drop = { max_items = 5, items= { { tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:glowstone_dust"}, }, { tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:glowstone_dust"}, }, { tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:glowstone_dust"}, }, { tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:glowstone_dust"}, }, { rarity = 5, tools = {"main:woodpick","main:coalpick","main:stonepick","main:ironpick","main:lapispick","main:goldpick","main:diamondpick","main:emeraldpick","main:sapphirepick","main:rubypick"}, items = {"nether:glowstone_dust"}, }, }, } }) minetest.register_node("nether:obsidian", { description = "Obsidian", tiles = {"obsidian.png"}, groups = {obsidian = 1, pathable = 1}, --groups = {stone = 1, pathable = 1}, --leave this here for debug sounds = main.stoneSound(), is_ground_content = false, after_destruct = function(pos, oldnode) destroy_nether_portal(pos) end, --light_source = 7, }) minetest.register_node("nether:lava", { description = "Lava", drawtype = "liquid", tiles = { { name = "lava_source.png", backface_culling = false, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 2.0, }, }, { name = "lava_source.png", backface_culling = true, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 2.0, }, }, }, paramtype = "light", light_source = 13, walkable = false, pointable = false, diggable = false, buildable_to = true, is_ground_content = false, drop = "", drowning = 1, liquidtype = "source", liquid_alternative_flowing = "nether:lavaflow", liquid_alternative_source = "nether:lava", liquid_viscosity = 1, liquid_renewable = true, post_effect_color = {a = 191, r = 255, g = 64, b = 0}, groups = {lava = 3, liquid = 2, igniter = 1, fire=1,hurt_inside=1}, }) minetest.register_node("nether:lavaflow", { description = "Flowing Lava", drawtype = "flowingliquid", tiles = {"lava_flow.png"}, special_tiles = { { name = "lava_flow.png", backface_culling = false, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3, }, }, { name = "lava_flow.png", backface_culling = true, animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3, }, }, }, selection_box = { type = "fixed", fixed = { {0, 0, 0, 0, 0, 0}, }, }, paramtype = "light", paramtype2 = "flowingliquid", light_source = 13, walkable = false, pointable = false, diggable = false, buildable_to = true, is_ground_content = false, drop = "", drowning = 1, liquidtype = "flowing", liquid_alternative_flowing = "nether:lavaflow", liquid_alternative_source = "nether:lava", liquid_viscosity = 1, liquid_renewable = true, post_effect_color = {a = 191, r = 255, g = 64, b = 0}, groups = {lava = 3, liquid = 2, igniter = 1, fire=1,hurt_inside=1}, }) local colorize_ratio = 125 minetest.register_node("nether:tree", { description = "Nether Tree", 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}, groups = {wood = 1, tree = 1, pathable = 1}, sounds = main.woodSound(), --set metadata so treecapitator doesn't destroy houses on_place = function(itemstack, placer, pointed_thing) if not pointed_thing.type == "node" then return end local sneak = placer:get_player_control().sneak local noddef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name] if not sneak and noddef.on_rightclick then minetest.item_place(itemstack, placer, pointed_thing) return end local pos = pointed_thing.above minetest.item_place_node(itemstack, placer, pointed_thing) local meta = minetest.get_meta(pos) meta:set_string("placed", "true") return(itemstack) end, light_source = 7, --treecapitator - move treecapitator into own file using override on_dig = function(pos, node, digger) --check if wielding axe? local meta = minetest.get_meta(pos) if not meta:contains("placed") then --remove tree for y = -6,6 do local name = minetest.get_node(vector.new(pos.x,pos.y+y,pos.z)).name --print(y) if name == "nether:tree" then minetest.node_dig(vector.new(pos.x,pos.y+y,pos.z), node, digger) end end else minetest.node_dig(pos, node, digger) end end }) minetest.register_node("nether:wood", { description = "Nether Wood", tiles = {"wood.png^[colorize:red:"..colorize_ratio}, groups = {wood = 1, pathable = 1}, sounds = main.woodSound(), light_source = 7, }) minetest.register_node("nether:leaves", { description = "Nether Leaves", drawtype = "allfaces_optional", waving = 1, walkable = false, climbable = true, paramtype = "light", is_ground_content = false, tiles = {"leaves.png^[colorize:red:"..colorize_ratio}, groups = {leaves = 1, leafdecay = 1}, sounds = main.grassSound(), light_source = 7, drop = { max_items = 1, items= { { -- Only drop if using a tool whose name is identical to one -- of these. rarity = 10, items = {"main:sapling"}, -- Whether all items in the dropped item list inherit the -- hardware coloring palette color from the dug node. -- Default is 'false'. --inherit_color = true, }, { -- Only drop if using a tool whose name is identical to one -- of these. tools = {"main:shears"}, rarity = 2, items = {"main:leaves"}, -- Whether all items in the dropped item list inherit the -- hardware coloring palette color from the dug node. -- Default is 'false'. --inherit_color = true, }, { -- Only drop if using a tool whose name is identical to one -- of these. tools = {"main:shears"}, rarity = 2, items = {"main:stick"}, -- Whether all items in the dropped item list inherit the -- hardware coloring palette color from the dug node. -- Default is 'false'. --inherit_color = true, }, { -- Only drop if using a tool whose name is identical to one -- of these. tools = {"main:shears"}, rarity = 6, items = {"main:apple"}, --golden apples -- Whether all items in the dropped item list inherit the -- hardware coloring palette color from the dug node. -- Default is 'false'. --inherit_color = true, }, }, }, })