core.register_node("btmt:stalactite_and_stalagmite_1", {
	description = "speleothem 1 ",
	tiles = {"default_stone.png"},
	groups = {cracky = 3,fall_damage_add_percent = 10},
        drop = "btmt:pebble",
        sounds = default.node_sound_stone_defaults(),
        
        drawtype = "nodebox",
   	paramtype = "light",
   	damage_per_second = 4,
	
	node_box = {
        type = "fixed",
        fixed = {{-0.3, -0.5, -0.3, 0.3, 0.5 ,0.3}}}	
})

core.register_node("btmt:stalactite_and_stalagmite_2", {
	description = "speleothem 2 ",
	tiles = {"default_stone.png"},
	groups = {cracky = 3,fall_damage_add_percent = 20},
        sounds = default.node_sound_stone_defaults(),
        drop = "btmt:pebble",
        drawtype = "nodebox",
   	paramtype = "light",
   	damage_per_second = 4,
	
	node_box = {
        type = "fixed",
        fixed = {{-0.2, -0.5, -0.2, 0.2, 0.5 ,0.2}}}	
})

core.register_node("btmt:stalactite_and_stalagmite_3", {
	description = "speleothem 3 ",
	tiles = {"default_stone.png"},	
	groups = {cracky = 3,fall_damage_add_percent = 30},
        drop = "btmt:pebble",
        sounds = default.node_sound_stone_defaults(),        
        drawtype = "nodebox",
   	paramtype = "light",
	damage_per_second = 4,
	
	node_box = {
        type = "fixed",
        fixed = {{-0.1, -0.5, -0.1, 0.1, 0.5 ,0.1}}}	
})

core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:stone"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_ceilings",
    y_max = -20,
    y_min = -2000,
    schematic = core.get_modpath("btmt").."/schematics/stalactites.mts",
   place_offset_y = 0,
})

core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:stone"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    y_max = -20,
    y_min = -2000,
    schematic = core.get_modpath("btmt").."/schematics/stalagmites.mts",
   place_offset_y = 0,
})

core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:stone"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_ceilings",
    y_max = -20,
    y_min = -2000,
    schematic = core.get_modpath("btmt").."/schematics/stalactites_small.mts",
   place_offset_y = 0,
})

core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:stone"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    y_max = -20,
    y_min = -2000,
    schematic = core.get_modpath("btmt").."/schematics/stalagmites_small.mts",
   place_offset_y = 0,
})

-- ICE SPYKES :
core.register_node("btmt:ice_spike", {
    description = "Ice Spike",
    drawtype = "plantlike",
    tiles = {"ice_spike.png"},
    visual_scale = 2,
    damage_per_second = 1,
    walkable = false,
    buildable_to = true,
    paramtype = "light",
    sunlight_propagates = true,
    groups = {cracky = 3, oddly_breakable_by_hand = 3},
    sounds = default.node_sound_glass_defaults(),
    drops = " ",

    selection_box = {
        type = "fixed",
        fixed = {-0.2,-0.2,-0.2,0.2,1.5,0.2},
    },
})

core.register_node("btmt:ice_spike_floor", {
    description = "Ice Spike Floor",
    drawtype = "plantlike",
    tiles = {"ice_spike_floor.png"},
    visual_scale = 2,
    damage_per_second = 1,
    walkable = false,
    buildable_to = true,
    paramtype = "light",
    sunlight_propagates = true,
    groups = {cracky = 3, oddly_breakable_by_hand = 3},
    sounds = default.node_sound_glass_defaults(),
    drops = " ",

    selection_box = {
        type = "fixed",
         fixed = {-0.2,-0.5,-0.2,0.2,0.2,0.2},
    },
})

minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:cave_ice"},
    sidelen = 16,
    place_offset_y = 1,
    biomes = {"icesheet","icesheet_under","underground"},
    flags = "place_center_x,place_center_z,force_placement,all_ceilings",
    fill_ratio = 0.06,
    y_max = 11,
    y_min = -100,
    decoration = "btmt:ice_spike",
})

minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:cave_ice"},
    sidelen = 16,
    place_offset_y = 0,
    biomes = {"icesheet","icesheet_under","underground"},
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    fill_ratio = 0.06,
    y_max = 1,
    y_min = -100,
    decoration = "btmt:ice_spike_floor",
})

--- DESERT CAVES :
core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:desert_sand"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    y_max = 0,
    y_min = -32,
    schematic = core.get_modpath("btmt").."/schematics/cactus_w_flower.mts",
   place_offset_y = 0,
})


core.register_decoration({
    deco_type = "schematic",
    place_on = {"default:desert_sand"},
    sidelen = 16,
    fill_ratio = 0.02,
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    y_max = 0,
    y_min = -32,
    schematic = core.get_modpath("btmt").."/schematics/small_cactus_w_flower.mts",
   place_offset_y = 0,
})

minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:desert_sand"},
    sidelen = 16,
    place_offset_y = 0,
    biomes = {"desert"},
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    fill_ratio = 0.06,
    y_max = 1,
    y_min = -100,
    decoration = "default:dry_shrub",
})
---- VEGETAÇÃO CAVERNA :
minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:stone"},
    sidelen = 16,
    place_offset_y = 0,
    biomes = {"underground"},
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    fill_ratio = 0.005,
    y_max = -5,
    y_min = -100,
    decoration = "flowers:mushroom_brown",
})

minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:stone"},
    sidelen = 16,
    place_offset_y = 0,
    biomes = {"underground"},
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    fill_ratio = 0.005,
    y_max = -5,
    y_min = -100,
    decoration = "flowers:mushroom_red",
})

minetest.register_decoration({
    deco_type = "simple",
    place_on = {"default:stone","default:mossycobble","default:dirt_with_grass"},
    sidelen = 16,
    place_offset_y = 0,
    biomes = {"underground","rainforest","grassland","deciduous_forest"},
    flags = "place_center_x,place_center_z,force_placement,all_floors",
    fill_ratio = 0.005,
    y_max = 2000,
    y_min = -150,
    decoration = "default:grass_5",
})


