local register_node = minetest.register_node
local register_alias = minetest.register_alias

register_node('ketchuptest_nodes:dirt_with_uranium_grass', {
    description = 'Dirt with Uranium Grass',
    tiles = { 'uranium_grass_texture.png' },
    groups = { crumbly = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:mushroom_head', {
    description = 'Mushroom Head',
    tiles = { 'mushroom_head_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:mushroom_head_with_tomato', {
    description = 'Mushroom Head with Tomato',
    drop = 'ketchuptest_items:tomato',
    tiles = { 'mushroom_head_with_tomato_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:mushroom_tree', {
    description = 'Mushroom Tree',
    tiles = { 'mushroom_tree_texture.png' },
    groups = { tree = 1, oddly_breakable_by_hand = 2 },
    is_ground_content = true
})

minetest.register_node('ketchuptest_nodes:uranium_torch', {
	description = 'Uranium Torch',
	drawtype = 'plantlike',
	waving = 1,
	tiles = { 'uranium_torch_texture.png' },
	inventory_image = 'uranium_torch_texture.png',
	wield_image = 'uranium_torch_texture.png',
	sunlight_propagates = true,
	walkable = false,
	groups = { oddly_breakable_by_hand = 3 },
                  light_source = 10,
})

register_node('ketchuptest_nodes:uranium_ore', {
    description = 'Uranium Ore',
    drop = 'ketchuptest_items:uranium',
    tiles = { 'uranium_ore_texture.png' },
    groups = { cracky = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:mushroom_planks', {
    description = 'Mushroom Planks',
    tiles = { 'mushroom_planks_texture.png' },
    groups = { oddly_breakable_by_hand = 2 },
    is_ground_content = true
})

minetest.register_node('ketchuptest_nodes:campfire', {
	description = 'Campfire',
	drawtype = 'plantlike',
	tiles = {{
		name = "campfire_animated_texture.png",
		animation = {
			type = "vertical_frames",
			aspect_w = 16,
			aspect_h = 16,
			length = 0.3
		}}
	},
	damage_per_second = 8,
	inventory_image = 'campfire_texture.png',
	wield_image = 'campfire_texture.png',
	sunlight_propagates = true,
	walkable = false,
	groups = { oddly_breakable_by_hand = 3 },
                  light_source = 10,
})

minetest.register_node('ketchuptest_nodes:uranium_campfire', {
	description = 'Uranium Campfire',
	drawtype = 'plantlike',
	tiles = {{
		name = "uranium_campfire_animated_texture.png",
		animation = {
			type = "vertical_frames",
			aspect_w = 16,
			aspect_h = 16,
			length = 0.3
		}}
	},
	damage_per_second = 8,
	inventory_image = 'uranium_campfire_texture.png',
	wield_image = 'uranium_campfire_texture.png',
	sunlight_propagates = true,
	walkable = false,
	groups = { oddly_breakable_by_hand = 3 },
                  light_source = 10,
})

minetest.register_craft({
    output = "ketchuptest_nodes:uranium_torch 4",
    recipe = {
        {"ketchuptest_items:uranium"},
        {"ketchuptest_items:iron_rod"},
    }
})


minetest.register_craft({
	output = "ketchuptest_nodes:campfire",
	recipe = {
		{"ketchuptest_nodes:torch", "ketchuptest_nodes:torch", "ketchuptest_nodes:torch"},
		{"ketchuptest_items:stick", "ketchuptest_items:stick", "ketchuptest_items:stick"},
	}
})

minetest.register_craft({
	output = "ketchuptest_nodes:uranium_campfire",
	recipe = {
		{"ketchuptest_nodes:uranium_torch", "ketchuptest_nodes:uranium_torch", "ketchuptest_nodes:uranium_torch"},
		{"ketchuptest_items:iron_rod", "ketchuptest_items:iron_rod", "ketchuptest_items:iron_rod"},
	}
})

register_node('ketchuptest_nodes:cloud', {
    description = 'Cloud',
    tiles = { 'cloud_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:dirt_with_sakura_grass', {
    description = 'Dirt with Sakura Grass',
    tiles = { 'sakura_grass_texture.png' },
    groups = { crumbly = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:sakura_leaves', {
    description = 'Sakura Leaves',
    tiles = { 'sakura_leaves_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:sakura_leaves_with_cherry_tomato', {
    description = 'Sakura Leaves with Cherry Tomato',
    drop = 'ketchuptest_items:cherry_tomato',
    tiles = { 'sakura_leaves_with_cherry_tomato_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:sakura_tree', {
    description = 'Sakura Tree',
    tiles = { 'sakura_tree_texture.png' },
    groups = { tree = 1, oddly_breakable_by_hand = 2 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:sakura_planks', {
    description = 'Sakura Planks',
    tiles = { 'sakura_planks_texture.png' },
    groups = { oddly_breakable_by_hand = 2 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:marble', {
    description = 'Marble',
    tiles = { 'marble_texture.png' },
    groups = { cracky = 3 },
    is_ground_content = true
})

minetest.register_node('ketchuptest_nodes:marble_pillar', {
	description = 'Marble Pillar',
	drawtype = 'plantlike',
	paramtype = 'light',
	tiles = { 'marble_pillar_texture.png' },
	inventory_image = 'marble_pillar_texture.png',
	wield_image = 'marble_pillar_texture.png',
	sunlight_propagates = true,
	groups = { cracky = 3 },
})

minetest.register_node('ketchuptest_nodes:nightshade', {
	description = 'Nightshade',
	drawtype = 'plantlike',
	paramtype = 'light',
	tiles = { 'nightshade_texture.png' },
	inventory_image = 'nightshade_texture.png',
	wield_image = 'nightshade_texture.png',
	sunlight_propagates = true,
        walkable = false,
	groups = { oddly_breakable_by_hand = 3 },
})

register_node('ketchuptest_nodes:nightshade_petal', {
    description = 'Nightshade Petal',
    tiles = { 'nightshade_petal_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:nightshade_bricks', {
    description = 'Nightshade Bricks',
    tiles = { 'nightshade_bricks_texture.png' },
    groups = { cracky = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:stone_bricks', {
    description = 'Stone Bricks',
    tiles = { 'stone_bricks_texture.png' },
    groups = { cracky = 3 },
    is_ground_content = true
})

register_node('ketchuptest_nodes:cobblestone', {
    description = 'Cobblestone',
    tiles = { 'cobblestone_texture.png' },
    groups = { cracky = 3 },
    is_ground_content = true
})

minetest.register_craft({
    output = "ketchuptest_nodes:nightshade_bricks 2",
    recipe = {
        {"ketchuptest_nodes:nightshade_petal", "ketchuptest_nodes:nightshade_petal"},
        {"ketchuptest_nodes:nightshade_petal", "ketchuptest_nodes:nightshade_petal"},
    }
})

minetest.register_craft({
    output = "ketchuptest_nodes:cobblestone 2",
    recipe = {
        {"ketchuptest_nodes:stone", "ketchuptest_nodes:marble"},
        {"ketchuptest_nodes:marble", "ketchuptest_nodes:stone"},
    }
})

minetest.register_craft({
    output = "ketchuptest_nodes:cobblestone 2",
    recipe = {
        {"ketchuptest_nodes:marble", "ketchuptest_nodes:stone"},
        {"ketchuptest_nodes:stone", "ketchuptest_nodes:marble"},
    }
})

minetest.register_craft({
    output = "ketchuptest_nodes:stone_bricks 2",
    recipe = {
        {"ketchuptest_nodes:stone", "ketchuptest_nodes:stone"},
        {"ketchuptest_nodes:stone", "ketchuptest_nodes:stone"},
    }
})

minetest.register_craft({
    output = "ketchuptest_nodes:nightshade_petal ",
    recipe = {
        {"ketchuptest_nodes:nightshade", "ketchuptest_nodes:nightshade"},
        {"ketchuptest_nodes:nightshade", "ketchuptest_nodes:nightshade"},
    }
})

minetest.register_craft({
    output = "ketchuptest_nodes:marble_pillar 2",
    recipe = {
        {"ketchuptest_nodes:marble"},
        {"ketchuptest_nodes:marble"},
    }
})

register_node('ketchuptest_nodes:pollen', {
    description = 'Pollen',
    tiles = { 'pollen_texture.png' },
    groups = { oddly_breakable_by_hand = 3 },
    sunlight_propagates = true,
    paramtype = 'light',
    light_source = 10,
    is_ground_content = true
})

register_node('ketchuptest_nodes:nightshade_tree', {
    description = 'Nightshade Tree',
    tiles = { 'nightshade_tree_texture.png' },
    groups = { tree = 1, oddly_breakable_by_hand = 2 },
    is_ground_content = true
})