
core.register_tool("zombies4test:zpick", {
    description = "Z Pick",
    inventory_image = "zpick.png",
    tool_capabilities = {
        full_punch_interval = 1.0,
        max_drop_level = 0,
        groupcaps = {
            unbreakable = {times = {[1] = 0.1}, uses = 1000, maxlevel = 1},
        },
        damage_groups = {fleshy = 1},
    },
})




---- HOSPITAL BLOCK :

core.register_node("zombies4test:whiteblock", {
    description = "White Block",
    tiles = {"white_block.png"},
    drop = "zombies4test:whiteblock",
    groups = {unbreakable = 1},
    sounds = {footstep = {name = "stone_step", gain = 0.5}},
  
        can_dig = function(pos, player)
        local wielded_item = player:get_wielded_item()
        return wielded_item:get_name() == "zombies4test:zpick"
        end
})




core.register_node("zombies4test:whiteblock_dirty", {
	description = "White Block dirty",
	tiles = {"white_block_dirty.png"},
	groups = {unbreakable = 1},
	
	paramtype2 = "facedir",
	----groups = {cracky = 3},
        drop = "zombies4test:whiteblock_dirty",
       
        sounds = {footstep = {name = "stone_step", gain = 0.5}},
        
        can_dig = function(pos, player)
        local wielded_item = player:get_wielded_item()
        return wielded_item:get_name() == "zombies4test:zpick"
        end
	
})

core.register_node("zombies4test:greenblock", {
	description = "Green Block",
	tiles = {"green_node.png"},
	groups = {unbreakable = 1},
	paramtype2 = "facedir",
	----groups = {cracky = 3},
        drop = "zombies4test:greenblock",
        
        sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
        can_dig = function(pos, player)
          local wielded_item = player:get_wielded_item()
          return wielded_item:get_name() == "zombies4test:zpick"
        end
	
})

core.register_node("zombies4test:redblock", {
	description = "Red Block",
	tiles = {"red_node.png"},
	groups = {unbreakable = 1},
	paramtype2 = "facedir",
	----groups = {cracky = 3},
        drop = "zombies4test:redblock",
       
        sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
        can_dig = function(pos, player)
          local wielded_item = player:get_wielded_item()
          return wielded_item:get_name() == "zombies4test:zpick"
        end	
	
})

core.register_node("zombies4test:grayblock", {
	description = "Gray Block",
	tiles = {"gray_node.png"},
	groups = {unbreakable = 1},
	paramtype2 = "facedir",
	----groups = {cracky = 3},
        drop = "zombies4test:grayblock",
       
        sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
	
	
	can_dig = function(pos, player)
          local wielded_item = player:get_wielded_item()
          return wielded_item:get_name() == "zombies4test:zpick"
        end
})




---- SIDEWALK :
core.register_node("zombies4test:sidewalk", {
	description = "Sidewalk",
	tiles = {"sidewalk.png"},
	paramtype2 = "facedir",
	groups = {cracky = 3},
        drop = "zombies4test:sidewalk",
        
         sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
	
})




---- BRICK MOTEL :
core.register_node("zombies4test:brick_motel", {
	description = "Brick Motel",
	tiles = {"brick_motel.png"},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:brick_motel",
        
         sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
	
})


--- BRICK Home :
core.register_node("zombies4test:brick_homes", {
	description = "Brick Homes",
	tiles = {"brick_home.png"},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:brick_motel",
        
         sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
	
})



---- FLOOR BLOCK :
core.register_node("zombies4test:floor_block", {
	description = "Floor Block",
	tiles = {"floor_block.png"},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:floor_block",
 	
 	 sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
	
})

---- MEDICAL TENT :
core.register_node("zombies4test:medicaltentblock", {
	description = "Medical Tent Block",
	tiles = {"medical_tent_block.png"},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:medicaltentblock",
       
        sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
	
})


---- WOOD TENT :
core.register_node("zombies4test:wood_cabin", {
	description = "Wood Cabin",
	tiles = {"wood_cabin.png"},
	groups = {unbreakable = 1},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:wood_cabin",
        
         sounds = {        
		footstep = {name = "wood_steep", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
         can_dig = function(pos, player)
          local wielded_item = player:get_wielded_item()
          return wielded_item:get_name() == "zombies4test:zpick"
        end
	
})

core.register_node("zombies4test:wood_cabin_2", {
	description = "Wood Cabin 2",
	tiles = {"wood_cabin_2.png"},
	groups = {unbreakable = 1},
	paramtype2 = "facedir",
	--groups = {cracky = 3},
        drop = "zombies4test:wood_cabin",
        
        sounds = {        
		footstep = {name = "wood_steep", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
         can_dig = function(pos, player)
          local wielded_item = player:get_wielded_item()
          return wielded_item:get_name() == "zombies4test:zpick"
        end
	
})

-- STRIS ============================================================

--[[
core.register_node("zombies4test:stair_coal", {
    description = "Stair Coal",
    tiles = {"default_coal_block.png"},
    drawtype = "nodebox",
    paramtype = "light",
    paramtype2 = "facedir",
    --groups = {cracky = 3},
    drop = "zombies4test:stair_coal",
    
    sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
        type = "fixed",
        fixed = {
            {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
            {-0.5, 0, 0, 0.5, 0.5, 0.5},
        },
    },
    
       on_place = core.rotate_node,
})

]]


core.register_node("zombies4test:stair_wood_cabin", {
    description = "Stair Wood Cabin",
    tiles = {"wood_cabin.png"},
    drawtype = "nodebox",
    paramtype = "light",
    paramtype2 = "facedir",
    --groups = {cracky = 3},
    drop = "zombies4test:stair_wood_cabin",
    
    sounds = {        
		footstep = {name = "wood_steep", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
        type = "fixed",
        fixed = {
            {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
            {-0.5, 0, 0, 0.5, 0.5, 0.5},
        },
    },
    
       on_place = core.rotate_node,
})


core.register_node("zombies4test:stair_wood_cabin_2", {
    description = "Stair Wood Cabin 2",
    tiles = {"wood_cabin_2.png"},
    drawtype = "nodebox",
    paramtype = "light",
    paramtype2 = "facedir",
    --groups = {cracky = 3},
    drop = "zombies4test:stair_wood_cabin_2",
    
    sounds = {        
		footstep = {name = "wood_steep", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
        type = "fixed",
        fixed = {
            {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
            {-0.5, 0, 0, 0.5, 0.5, 0.5},
        },
    },
    
       on_place = core.rotate_node,
})


core.register_node("zombies4test:motel_glass", {
    description = "Motel Glass",
    tiles = {"motel_glass.png"}, 
    is_ground_content = true,
    groups = {cracky = 1, oddly_breakable_by_hand = 1,glass=1},    
    use_texture_alpha = "blend",
    sunlight_propagates = false,
    drawtype = "glasslike",
    paramtype = "light",
    --light_source = 0,
    
    sounds = {        
		footstep = {name = "", gain = 0.5},
		dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         }
         
})


core.register_node("zombies4test:zgray_stair", {
    description = "z Gray Stair",
    tiles = {"gray_node.png"}, -- Certifique-se de ter a textura correspondente
    --groups = {choppy = 2, oddly_breakable_by_hand = 2},
    paramtype2 = "facedir",
    drawtype = "nodebox",
    
    sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
			type = "fixed",
			fixed = {
				{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
				{-0.5, 0.0, 0.0, 0.5, 0.5, 0.5},
			},
		},
    on_place = core.rotate_node,
})


core.register_node("zombies4test:zgreen_stair", {
    description = "Z Green Stair",
    tiles = {"medical_tent_block.png"}, -- Certifique-se de ter a textura correspondente
    --groups = {choppy = 2, oddly_breakable_by_hand = 2},
    paramtype2 = "facedir",
    drawtype = "nodebox",
    
      sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
			type = "fixed",
			fixed = {
				{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
				{-0.5, 0.0, 0.0, 0.5, 0.5, 0.5},
			},
		},
    on_place = core.rotate_node,
})


core.register_node("zombies4test:zred_stair", {
    description = "Z Red Stair",
    tiles = {"red_node.png"}, -- Certifique-se de ter a textura correspondente
    --groups = {choppy = 2, oddly_breakable_by_hand = 2},
    paramtype2 = "facedir",
    drawtype = "nodebox",
    
      sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
			type = "fixed",
			fixed = {
				{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
				{-0.5, 0.0, 0.0, 0.5, 0.5, 0.5},
			},
		},
   on_place = core.rotate_node,
})




core.register_node("zombies4test:sidewalk_stair", {
    description = "Z sidewalk Stair",
    tiles = {"sidewalk.png"}, -- Certifique-se de ter a textura correspondente
    --groups = {choppy = 2, oddly_breakable_by_hand = 2},
    paramtype2 = "facedir",
    drawtype = "nodebox",
    
      sounds = {        
		footstep = {name = "stone_step", gain = 0.5},
		--dig = {name = "", gain = 0.5},
		--dug = {name = "", gain = 1.0},
		--place = {name = "", gain = 1.0},
         },
         
    node_box = {
			type = "fixed",
			fixed = {
				{-0.5, -0.5, -0.5, 0.5, 0.0, 0.5},
				{-0.5, 0.0, 0.0, 0.5, 0.5, 0.5},
			},
		},
    on_place = core.rotate_node,
})





