2017-05-17 17:57:14 +02:00
|
|
|
|
2015-09-01 17:15:24 +02:00
|
|
|
--
|
2019-08-29 19:51:23 +02:00
|
|
|
-- Node definitions of simple, non-interactive nodes
|
2017-05-17 17:57:14 +02:00
|
|
|
--
|
|
|
|
|
2019-08-28 17:31:41 +02:00
|
|
|
local S = minetest.get_translator("default")
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Ores
|
|
|
|
|
2017-05-17 23:48:21 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_sulfur",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Sulfur"),
|
2017-05-17 23:48:21 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_sulfur.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 23:48:21 +02:00
|
|
|
drop = "default:lump_sulfur",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_graphite",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Graphite"),
|
2017-05-17 23:48:21 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_graphite.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 23:48:21 +02:00
|
|
|
drop = "default:sheet_graphite",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_coal",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Coal"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_coal.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 17:57:14 +02:00
|
|
|
drop = "default:lump_coal",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_iron",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Iron"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_iron.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 2, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 17:57:14 +02:00
|
|
|
drop = "default:lump_iron",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-17 22:54:33 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_tin",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Tin"),
|
2017-05-17 22:54:33 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_tin.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 1, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 22:54:33 +02:00
|
|
|
drop = "default:lump_tin",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:stone_with_copper",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone with Copper"),
|
2017-05-17 22:54:33 +02:00
|
|
|
tiles = {"default_stone.png^default_mineral_copper.png"},
|
2019-06-23 23:04:20 +02:00
|
|
|
groups = {cracky = 1, stone = 1, not_in_craft_guide = 1},
|
2017-05-17 22:54:33 +02:00
|
|
|
drop = "default:lump_copper",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Stonelike
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:stone",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Stone"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
groups = {cracky = 2, stone = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = "default:cobble",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:cobble",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Cobble"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_cobbles.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
stack_max = 240,
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {cracky = 3, stone = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:reinforced_cobble",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Reinforced Cobble"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_reinforced_cobbles.png"},
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {cracky = 1, stone = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:gravel",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Gravel"),
|
2017-05-18 03:38:18 +02:00
|
|
|
tiles = {"default_gravel.png"},
|
|
|
|
groups = {crumbly = 2, falling_node = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name = "default_crunch_footstep", gain = 0.45},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Material blocks
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:block_coal",
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Coal Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_block_coal.png"},
|
2019-08-31 17:30:34 +02:00
|
|
|
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
2017-05-17 17:57:14 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:block_wrought_iron",
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Wrought Iron Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_block_wrought_iron.png"},
|
|
|
|
groups = {cracky = 2},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:block_steel",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Steel Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_block_steel.png"},
|
|
|
|
groups = {cracky = 2},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2017-05-17 17:57:14 +02:00
|
|
|
"default:block_carbon_steel",
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Carbon Steel Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_block_carbon_steel.png"},
|
|
|
|
groups = {cracky = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-17 17:57:14 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:block_bronze",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Bronze Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_block_bronze.png"},
|
|
|
|
groups = {cracky = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-17 17:57:14 +02:00
|
|
|
-- Soil
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_dirt.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
stack_max = 240,
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, normal_dirt = 1, plantable_soil = 1, fall_damage_add_percent = -5},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-04 00:17:00 +02:00
|
|
|
"default:dry_dirt",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dry Dirt"),
|
2019-09-05 22:12:02 +02:00
|
|
|
tiles = {"default_dry_dirt.png"},
|
2015-10-04 00:17:00 +02:00
|
|
|
stack_max = 240,
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, dry_dirt = 1, plantable_dry = 1, fall_damage_add_percent = -10},
|
2015-10-04 00:17:00 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-04 00:17:00 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_dirt",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Swamp Dirt"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_swamp_dirt.png"},
|
2015-10-03 22:36:01 +02:00
|
|
|
stack_max = 240,
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, swamp_dirt = 1, plantable_soil = 1, fall_damage_add_percent = -10},
|
2015-10-03 22:36:01 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:10:41 +02:00
|
|
|
"default:dirt_with_dry_grass",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt with Dry Grass"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {
|
|
|
|
"default_dry_grass.png",
|
|
|
|
"default_dirt.png",
|
|
|
|
"default_dirt.png^default_dry_grass_side.png"
|
|
|
|
},
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, normal_dirt = 1, plantable_sandy = 1, grass_cover = 1,
|
2019-06-23 23:04:20 +02:00
|
|
|
fall_damage_add_percent = -5, not_in_craft_guide = 1},
|
2015-10-02 02:10:41 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
2015-10-03 00:46:25 +02:00
|
|
|
{items = {"default:dry_grass 4"}, rarity = 12},
|
|
|
|
{items = {"default:dry_grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:dry_grass 1"}, rarity = 2},
|
2015-10-02 02:10:41 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
footstep = {name = "default_soft_footstep", gain = 0.3},
|
2017-05-15 23:45:04 +02:00
|
|
|
}),
|
|
|
|
})
|
2015-10-02 02:10:41 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:dirt_with_swamp_grass",
|
|
|
|
{
|
2019-09-26 14:08:26 +02:00
|
|
|
description = S("Swamp Dirt with Swamp Grass"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {
|
|
|
|
"default_swamp_grass.png",
|
|
|
|
"default_swamp_dirt.png",
|
|
|
|
"default_swamp_dirt.png^default_swamp_grass_side.png"
|
|
|
|
},
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, swamp_dirt = 1, plantable_soil = 1, grass_cover = 1,
|
2019-06-23 23:04:20 +02:00
|
|
|
fall_damage_add_percent = -5, not_in_craft_guide = 1},
|
2015-10-03 22:36:01 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
2015-10-03 22:37:51 +02:00
|
|
|
{items = {"default:swamp_dirt"}, rarity = 1},
|
2015-10-03 22:36:01 +02:00
|
|
|
{items = {"default:swamp_grass 6"}, rarity = 14},
|
|
|
|
{items = {"default:swamp_grass 3"}, rarity = 7},
|
|
|
|
{items = {"default:swamp_grass 2"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
footstep = {name = "default_soft_footstep", gain = 0.5},
|
2017-05-15 23:45:04 +02:00
|
|
|
}),
|
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt_with_grass",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt with Grass"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {
|
|
|
|
"default_grass.png",
|
|
|
|
"default_dirt.png",
|
|
|
|
"default_dirt.png^default_grass_side.png"
|
|
|
|
},
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, normal_dirt = 1, plantable_soil = 1, grass_cover = 1,
|
2019-06-23 23:04:20 +02:00
|
|
|
fall_damage_add_percent = -5, not_in_craft_guide = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
|
|
|
{items = {"default:grass 10"}, rarity = 30},
|
|
|
|
{items = {"default:grass 3"}, rarity = 9},
|
|
|
|
{items = {"default:grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:grass 1"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
footstep = {name = "default_soft_footstep", gain = 0.4},
|
2017-05-15 23:45:04 +02:00
|
|
|
}),
|
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 18:53:09 +02:00
|
|
|
"default:dirt_with_grass_footsteps",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt with Grass and Footsteps"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_grass_footstep.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
2019-09-05 21:05:37 +02:00
|
|
|
groups = {crumbly = 3, soil = 1, normal_dirt = 1, plantable_soil = 1, grass_cover = 1, fall_damage_add_percent = -5, not_in_craft_guide = 1},
|
2015-09-24 18:53:09 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
|
|
|
{items = {"default:grass 10"}, rarity = 30},
|
|
|
|
{items = {"default:grass 3"}, rarity = 9},
|
|
|
|
{items = {"default:grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:grass 1"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
2017-05-17 17:57:14 +02:00
|
|
|
footstep = {name = "default_soft_footstep", gain = 0.4},
|
2017-05-15 23:45:04 +02:00
|
|
|
}),
|
|
|
|
})
|
2015-09-24 18:53:09 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Paths
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt_path",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt Path"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_dirt.png"},
|
2019-09-05 18:49:38 +02:00
|
|
|
groups = {crumbly = 3, path = 1, fall_damage_add_percent = -10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-23 21:19:57 +02:00
|
|
|
"default:path_slab",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dirt Path Slab"),
|
2015-10-23 21:19:57 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
2019-09-03 18:31:55 +02:00
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -2/16, 0.5}
|
2015-10-23 21:19:57 +02:00
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_dirt.png"},
|
2019-09-04 14:18:57 +02:00
|
|
|
groups = {crumbly = 3, slab = 2, fall_damage_add_percent = -10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-23 21:19:57 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-23 21:19:57 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:heated_dirt_path",
|
|
|
|
{
|
2019-11-04 19:20:47 +01:00
|
|
|
description = S("Glowing Dirt Path"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
light_source = 6,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_dirt.png"},
|
2019-09-05 18:49:38 +02:00
|
|
|
groups = {crumbly = 3, path = 1, fall_damage_add_percent = -10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Brick
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:brick",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Brick Block"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_brick.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
is_ground_content = false,
|
|
|
|
groups = {cracky = 2},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Sand
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sand",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Sand"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_sand.png"},
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly = 3, falling_node = 1, sand = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_sand_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sandstone",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Sandstone"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_sandstone.png"},
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {crumbly = 2, cracky = 3, sandstone = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = "default:sand 2",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 18:53:09 +02:00
|
|
|
"default:compressed_sandstone",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Compressed Sandstone"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_compressed_sandstone_top.png", "default_compressed_sandstone_top.png", "default_compressed_sandstone.png"},
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {cracky = 2, sandstone = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-24 18:53:09 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-24 18:53:09 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Saplings
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2017-05-18 03:38:18 +02:00
|
|
|
"default:sapling",
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Sapling"),
|
2017-05-18 03:38:18 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles = {"default_sapling.png"},
|
|
|
|
inventory_image = "default_sapling_inventory.png",
|
|
|
|
wield_image = "default_sapling_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2019-09-06 15:51:59 +02:00
|
|
|
floodable = true,
|
2017-05-18 03:38:18 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
2019-09-24 02:53:21 +02:00
|
|
|
groups = {snappy = 2, handy = 1, attached_node = 1, sapling = 1},
|
2017-05-18 03:38:18 +02:00
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_defaults(),
|
2017-07-03 19:54:44 +02:00
|
|
|
|
|
|
|
on_timer = function(pos)
|
|
|
|
default.grow_sapling(pos, "apple")
|
|
|
|
end,
|
|
|
|
|
|
|
|
on_construct = function(pos)
|
2017-07-04 00:33:38 +02:00
|
|
|
default.begin_growing_sapling(pos)
|
2017-07-03 19:54:44 +02:00
|
|
|
end,
|
|
|
|
|
|
|
|
on_place = default.place_sapling,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sapling_oak",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Sapling"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_sapling_oak.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
inventory_image = "default_sapling_oak_inventory.png",
|
|
|
|
wield_image = "default_sapling_oak_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2019-09-06 15:51:59 +02:00
|
|
|
floodable = true,
|
2015-09-01 17:15:24 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
2019-09-24 02:53:21 +02:00
|
|
|
groups = {snappy = 2, handy = 1, attached_node = 1, sapling = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
2017-07-03 19:54:44 +02:00
|
|
|
|
|
|
|
on_timer = function(pos)
|
|
|
|
default.grow_sapling(pos, "oak")
|
|
|
|
end,
|
|
|
|
|
|
|
|
on_construct = function(pos)
|
2017-07-04 00:33:38 +02:00
|
|
|
default.begin_growing_sapling(pos)
|
2017-07-03 19:54:44 +02:00
|
|
|
end,
|
|
|
|
|
|
|
|
on_place = default.place_sapling,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:sapling_birch",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Birch Sapling"),
|
2017-05-18 03:38:18 +02:00
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles = {"default_sapling_birch.png"},
|
|
|
|
inventory_image = "default_sapling_birch_inventory.png",
|
|
|
|
wield_image = "default_sapling_birch_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
2019-09-06 15:51:59 +02:00
|
|
|
floodable = true,
|
2017-05-18 03:38:18 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
2019-09-24 02:53:21 +02:00
|
|
|
groups = {snappy = 2, handy = 1, attached_node = 1, sapling = 1},
|
2017-05-18 03:38:18 +02:00
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_defaults(),
|
2017-07-03 19:54:44 +02:00
|
|
|
|
|
|
|
on_timer = function(pos)
|
|
|
|
default.grow_sapling(pos, "birch")
|
|
|
|
end,
|
|
|
|
|
|
|
|
on_construct = function(pos)
|
2017-07-04 00:33:38 +02:00
|
|
|
default.begin_growing_sapling(pos)
|
2017-07-03 19:54:44 +02:00
|
|
|
end,
|
|
|
|
|
|
|
|
on_place = default.place_sapling,
|
2017-05-18 03:38:18 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Trees
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:tree",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Tree"),
|
2017-05-18 03:38:18 +02:00
|
|
|
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
|
|
|
groups = {choppy = 2,tree = 1,oddly_breakable_by_hand = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:tree_oak",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Tree"),
|
2015-09-01 17:15:24 +02:00
|
|
|
tiles = {"default_tree_oak_top.png", "default_tree_oak_top.png", "default_tree_oak.png"},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {choppy = 1, tree = 1, oddly_breakable_by_hand = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
minetest.register_node(
|
|
|
|
"default:tree_birch",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Birch Tree"),
|
2017-05-18 03:38:18 +02:00
|
|
|
tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png"},
|
|
|
|
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Leaves
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:leaves",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Leaves"),
|
2017-05-18 03:38:18 +02:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles = {"default_leaves.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy = 3, leafdecay = 3, fall_damage_add_percent = -10, leaves = 1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:leaves_oak",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Leaves"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_leaves_oak.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 3, leafdecay = 4, fall_damage_add_percent = -5, leaves = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_oak"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_oak"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-03 03:13:14 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node( -- looks just like default oak leaves, except they decay much farther
|
2015-09-03 03:13:14 +02:00
|
|
|
"default:leaves_oak_huge",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Leaves (Huge)"),
|
2015-09-03 03:13:14 +02:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_leaves_oak.png"},
|
2015-09-03 03:13:14 +02:00
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
2019-06-23 22:37:51 +02:00
|
|
|
groups = {snappy = 3, leafdecay = 10, fall_damage_add_percent = -5, leaves = 1, not_in_creative_inventory = 1},
|
2015-09-03 03:13:14 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_oak"},
|
|
|
|
rarity = 40,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_oak"},
|
|
|
|
rarity = 10,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:leaves_birch",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Birch Leaves"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_leaves_birch.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 3, leafdecay = 6, fall_damage_add_percent = -5, leaves = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_birch"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_birch"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 20:57:35 +02:00
|
|
|
"default:dry_leaves",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Dry Leaves"),
|
2015-10-03 20:57:35 +02:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_dry_leaves.png"},
|
2015-10-03 20:57:35 +02:00
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 3, leafdecay = 3, fall_damage_add_percent = -20, leaves = 1},
|
2015-10-03 20:57:35 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:dry_leaves"},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:dry_grass"},
|
|
|
|
rarity = 6,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-03 20:57:35 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Cacti
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:cactus",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Cactus"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/8), -0.5, -0.5+(1/8), 0.5-(1/8), 0.5, 0.5-(1/8)},
|
|
|
|
{-0.5, -0.5, -0.5+(1/3), 0.5, 0.5-(1/3), 0.5-(1/3)},
|
|
|
|
{-0.5+(1/3), -0.5, -0.5, 0.5-(1/3), 0.5-(1/3), 0.5},
|
|
|
|
},
|
|
|
|
},
|
2015-09-26 22:02:24 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/8), -0.5, -0.5+(1/8), 0.5-(1/8), 0.5, 0.5-(1/8)},
|
|
|
|
},
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_sides.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
-- damage_per_second = 1,
|
2019-09-01 14:50:10 +02:00
|
|
|
groups = {snappy = 2, choppy = 2, fall_damage_add_percent = 20, food = 2},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
2017-05-12 04:29:55 +02:00
|
|
|
on_use = minetest.item_eat({hp = 2, sat = 5}),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Rope
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:23:04 +02:00
|
|
|
"default:rope",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Rope"),
|
2015-10-02 02:23:04 +02:00
|
|
|
drawtype = "nodebox",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_rope.png"},
|
2015-10-02 02:23:04 +02:00
|
|
|
inventory_image = "default_rope_inventory.png",
|
|
|
|
wield_image = "default_rope_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-02 02:23:04 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_down(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
2015-10-02 02:23:04 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Papyrus
|
2015-10-02 02:23:04 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:papyrus",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Papyrus"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_papyrus.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
inventory_image = "default_papyrus_inventory.png",
|
|
|
|
wield_image = "default_papyrus_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5+(2/16), -0.5, -0.5+(2/16), 0.5-(2/16), 0.5, 0.5-(2/16)}
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(2/16), -0.5, -0.5+(2/16), -0.5+(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, -0.5+(2/16), 0.5-(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{-0.5+(2/16), -0.5, 0.5-(2/16), -0.5+(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, 0.5-(2/16), 0.5-(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
|
|
|
}
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 3},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Glass
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:glass",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Glass"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "glasslike_framed_optional",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_glass_frame.png", "default_glass.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
paramtype = "light",
|
2015-10-21 00:32:46 +02:00
|
|
|
sunlight_propagates = true,
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {snappy = 2,cracky = 3,oddly_breakable_by_hand = 2, glass=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Fences
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:fence",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Wooden Fence"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "fencelike",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood.png^default_fence_overlay.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
inventory_image = "default_fence.png",
|
|
|
|
wield_image = "default_fence.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
2017-07-03 02:10:12 +02:00
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4},
|
2015-09-01 17:15:24 +02:00
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, fence = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-30 22:44:56 +02:00
|
|
|
"default:fence_oak",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Fence"),
|
2015-09-30 22:44:56 +02:00
|
|
|
drawtype = "fencelike",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood_oak.png^default_fence_overlay.png"},
|
2015-09-30 22:44:56 +02:00
|
|
|
inventory_image = "default_fence_oak.png",
|
|
|
|
wield_image = "default_fence_oak.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
2017-07-03 02:10:12 +02:00
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4},
|
2015-09-30 22:44:56 +02:00
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-30 22:44:56 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
2015-09-30 22:44:56 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-30 22:44:56 +02:00
|
|
|
"default:fence_birch",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Birch Fence"),
|
2015-09-30 22:44:56 +02:00
|
|
|
drawtype = "fencelike",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood_birch.png^default_fence_overlay.png"},
|
2015-09-30 22:44:56 +02:00
|
|
|
inventory_image = "default_fence_birch.png",
|
|
|
|
wield_image = "default_fence_birch.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
2017-07-03 02:10:12 +02:00
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4},
|
2015-09-30 22:44:56 +02:00
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-30 22:44:56 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
2017-05-15 23:45:04 +02:00
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
2015-09-30 22:44:56 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Ladder
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:ladder",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Ladder"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
2017-05-18 03:38:18 +02:00
|
|
|
tiles = {
|
|
|
|
"default_ladder_sides.png",
|
|
|
|
"default_ladder_sides.png",
|
|
|
|
"default_ladder_sides.png",
|
|
|
|
"default_ladder_sides.png",
|
|
|
|
"default_ladder_sides.png",
|
|
|
|
"default_ladder.png"
|
|
|
|
},
|
2015-09-01 17:15:24 +02:00
|
|
|
inventory_image = "default_ladder_inventory.png",
|
|
|
|
wield_image = "default_ladder_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/16), -0.5, 0.5, -0.5+(4/16), 0.5, 0.5-(2/16)},
|
|
|
|
{0.5-(1/16), -0.5, 0.5, 0.5-(4/16), 0.5, 0.5-(2/16)},
|
|
|
|
{-0.5+(4/16), 0.5-(3/16), 0.5, 0.5-(4/16), 0.5-(5/16), 0.5-(1/16)},
|
|
|
|
{-0.5+(4/16), -0.5+(3/16), 0.5, 0.5-(4/16), -0.5+(5/16), 0.5-(1/16)}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.5, 0.5, 0.5, 0.5-(2/15)}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Planks
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Wooden Planks"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood.png"},
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {planks = 1, wood = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks_oak",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Oak Planks"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood_oak.png"},
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {planks = 1, wood = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks_birch",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Birch Planks"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_wood_birch.png"},
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {planks = 1, wood = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Frames
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:frame",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Frame"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_frame.png"},
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:reinforced_frame",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Reinforced Frame"),
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_reinforced_frame.png"},
|
2019-08-29 14:52:32 +02:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
groups = {wood = 1, choppy = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2019-08-29 19:51:23 +02:00
|
|
|
-- Fern
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:fern",
|
|
|
|
{
|
|
|
|
description = S("Fern"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles = {"default_fern.png"},
|
|
|
|
inventory_image = "default_fern_inventory.png",
|
|
|
|
wield_image = "default_fern_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
2019-09-06 13:26:54 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, fern = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Flowers
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:flower",
|
|
|
|
{
|
|
|
|
description = S("Flower"),
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (1 / 16), 0.5}
|
|
|
|
},
|
|
|
|
tiles = {"default_flowers.png"},
|
|
|
|
inventory_image = "default_flowers_inventory.png",
|
|
|
|
wield_image = "default_flowers_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, flower = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Grasses
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:swamp_grass",
|
|
|
|
{
|
|
|
|
description = S("Swamp Grass Clump"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles = {"default_swamp_grass_clump.png"},
|
|
|
|
inventory_image = "default_swamp_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_swamp_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
2019-09-06 13:48:11 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1, swamp_grass = 1, green_grass = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:dry_grass",
|
|
|
|
{
|
|
|
|
description = S("Dry Grass Clump"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles = {"default_dry_grass_clump.png"},
|
|
|
|
inventory_image = "default_dry_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_dry_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2019-09-06 15:51:59 +02:00
|
|
|
floodable = true,
|
2019-09-06 13:26:54 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1, dry_grass = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:grass",
|
|
|
|
{
|
|
|
|
description = S("Grass Clump"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles = {"default_grass_clump.png"},
|
|
|
|
inventory_image = "default_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
2019-09-06 13:48:11 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1, normal_grass = 1, green_grass = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:tall_grass",
|
|
|
|
{
|
|
|
|
description = S("Tall Grass Clump"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles = {"default_grass_clump_tall.png"},
|
|
|
|
inventory_image = "default_grass_clump_tall_inventory.png",
|
|
|
|
wield_image = "default_grass_clump_tall_inventory.png",
|
|
|
|
drop = "default:grass",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
2019-09-06 13:48:11 +02:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1, normal_grass = 1, green_grass = 1},
|
2019-08-29 19:51:23 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
2019-10-24 22:28:44 +02:00
|
|
|
-- Trim tall grass with shears
|
|
|
|
_on_trim = function(pos, node, player, itemstack)
|
|
|
|
-- This turns it to a normal grass clump and drops one bonus grass clump
|
|
|
|
minetest.sound_play({name = "default_shears_cut", gain = 0.5}, {pos = player:get_pos(), max_hear_distance = 8})
|
|
|
|
minetest.set_node(pos, {name = "default:grass"})
|
|
|
|
|
|
|
|
item_drop.drop_item(pos, "default:grass")
|
|
|
|
|
|
|
|
-- Add wear
|
|
|
|
if not minetest.settings:get_bool("creative_mode") then
|
|
|
|
local def = itemstack:get_definition()
|
|
|
|
itemstack:add_wear(math.ceil(65536 / def.tool_capabilities.groupcaps.snappy.uses))
|
2019-10-24 20:03:51 +02:00
|
|
|
end
|
2019-10-24 18:33:15 +02:00
|
|
|
return itemstack
|
|
|
|
end,
|
2019-08-29 19:51:23 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Thistle
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:thistle",
|
|
|
|
{
|
|
|
|
description = S("Thistle"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-6/16, -0.5, -6/16, 6/16, 0.5, 6/16}
|
|
|
|
},
|
|
|
|
tiles = {"default_thistle.png"},
|
|
|
|
inventory_image = "default_thistle_inventory.png",
|
|
|
|
wield_image = "default_thistle_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
floodable = true,
|
|
|
|
damage_per_second = 1,
|
|
|
|
groups = {snappy = 3, dig_immediate = 3, falling_node = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
2019-08-31 16:06:34 +02:00
|
|
|
on_flood = function(pos, oldnode, newnode)
|
|
|
|
default.dig_up(pos, oldnode)
|
|
|
|
end,
|
2019-08-29 19:51:23 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Food
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:apple",
|
|
|
|
{
|
|
|
|
description = S("Apple"),
|
|
|
|
drawtype = "nodebox",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles = {"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"},
|
|
|
|
inventory_image = "default_apple.png",
|
|
|
|
wield_image = "default_apple.png",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
|
|
|
|
{-1/8, 0.25, -1/8, 1/8, 0.5, 1/8},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
floodable = true,
|
2019-09-24 02:53:21 +02:00
|
|
|
groups = {snappy = 3, handy = 2, leafdecay = 3, leafdecay_drop = 1, food = 2},
|
2019-08-29 19:51:23 +02:00
|
|
|
on_use = minetest.item_eat({hp = 2, sat = 10}),
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(
|
|
|
|
"default:clam",
|
|
|
|
{
|
|
|
|
description = S("Clam"),
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = {"default_clam.png"},
|
|
|
|
inventory_image = "default_clam_inventory.png",
|
|
|
|
wield_image = "default_clam_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-3/16, -0.5, -3/16, 3/16, -6/16, 3/16},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2019-09-06 15:51:59 +02:00
|
|
|
floodable = true,
|
2019-09-04 17:21:49 +02:00
|
|
|
-- TODO: Enable the drop code below, when the pearl is useful.
|
|
|
|
-- The pearl is currently useless.
|
|
|
|
--[[drop = {
|
2019-08-29 19:51:23 +02:00
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:clam"}, rarity = 1},
|
|
|
|
{items = {"default:pearl"}, rarity = 60},
|
|
|
|
{items = {"default:pearl"}, rarity = 20},
|
|
|
|
}
|
2019-09-04 17:21:49 +02:00
|
|
|
},]]
|
2019-08-31 14:06:32 +02:00
|
|
|
groups = {fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1, food = 2},
|
2019-08-29 19:51:23 +02:00
|
|
|
on_use = minetest.item_eat({hp = 4, sat = 40}),
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-18 03:38:18 +02:00
|
|
|
-- Water
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:water_flowing",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Flowing Water"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "flowingliquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_water.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
2015-09-01 17:15:24 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
2015-09-01 17:15:24 +02:00
|
|
|
},
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
drop = "",
|
2015-09-01 17:15:24 +02:00
|
|
|
alpha = default.WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 1,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = default.WATER_VISC,
|
2017-05-17 17:57:14 +02:00
|
|
|
post_effect_color = {a = 90, r = 40, g = 40, b = 100},
|
2019-06-23 22:37:51 +02:00
|
|
|
groups = {water = 1, flowing_water = 1, liquid = 1, not_in_creative_inventory=1,},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:water_source",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Water Source"),
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "liquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_water.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
},
|
|
|
|
},
|
2017-05-17 17:57:14 +02:00
|
|
|
drop = "",
|
2015-09-01 17:15:24 +02:00
|
|
|
alpha = default.WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 1,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = default.WATER_VISC,
|
2015-09-24 18:59:56 +02:00
|
|
|
post_effect_color = {a=90, r=40, g=40, b=100},
|
2015-09-01 17:15:24 +02:00
|
|
|
groups = {water=1, liquid=1},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-27 01:34:45 +02:00
|
|
|
"default:river_water_flowing",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Flowing River Water"),
|
2015-09-27 01:34:45 +02:00
|
|
|
drawtype = "flowingliquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_water.png"},
|
2015-09-27 01:34:45 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
2015-09-27 01:34:45 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
2015-09-27 01:34:45 +02:00
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-27 01:34:45 +02:00
|
|
|
alpha = default.RIVER_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 2,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:river_water_flowing",
|
|
|
|
liquid_alternative_source = "default:river_water_source",
|
|
|
|
liquid_viscosity = default.RIVER_WATER_VISC,
|
2015-09-27 01:46:48 +02:00
|
|
|
liquid_renewable = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
liquid_range = 1,
|
2015-09-27 01:46:48 +02:00
|
|
|
post_effect_color = {a=40, r=40, g=70, b=100},
|
2019-06-23 22:37:51 +02:00
|
|
|
groups = {water=1, flowing_water = 1, river_water = 1, liquid=1, not_in_creative_inventory=1,},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-27 01:34:45 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-27 01:34:45 +02:00
|
|
|
"default:river_water_source",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("River Water Source"),
|
2015-09-27 01:34:45 +02:00
|
|
|
drawtype = "liquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_water.png"},
|
2015-09-27 01:34:45 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
2015-09-27 18:11:48 +02:00
|
|
|
image = "default_water.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
2015-09-27 01:34:45 +02:00
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-27 01:34:45 +02:00
|
|
|
alpha = default.RIVER_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 2,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:river_water_flowing",
|
|
|
|
liquid_alternative_source = "default:river_water_source",
|
|
|
|
liquid_viscosity = default.RIVER_WATER_VISC,
|
2015-09-27 01:46:48 +02:00
|
|
|
liquid_renewable = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
liquid_range = 1,
|
2015-09-27 01:46:48 +02:00
|
|
|
post_effect_color = {a=40, r=40, g=70, b=100},
|
2015-10-01 01:10:06 +02:00
|
|
|
groups = {water = 1, river_water = 1, liquid = 1},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-09-27 01:34:45 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_water_flowing",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Flowing Swamp Water"),
|
2015-10-03 22:36:01 +02:00
|
|
|
drawtype = "flowingliquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_swamp_water.png"},
|
2015-10-03 22:36:01 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_swamp_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
2015-10-03 22:36:01 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_swamp_water_animated.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
|
|
|
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
2015-10-03 22:36:01 +02:00
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-10-03 22:36:01 +02:00
|
|
|
alpha = default.SWAMP_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 3,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:swamp_water_flowing",
|
|
|
|
liquid_alternative_source = "default:swamp_water_source",
|
|
|
|
liquid_viscosity = default.SWAMP_WATER_VISC,
|
|
|
|
liquid_renewable = false,
|
|
|
|
liquid_range = 2,
|
|
|
|
post_effect_color = {a=220, r=50, g=40, b=70},
|
2019-06-23 22:37:51 +02:00
|
|
|
groups = {water=1, flowing_water = 1, swamp_water = 1, liquid=1, not_in_creative_inventory=1,},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_water_source",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Swamp Water Source"),
|
2015-10-03 22:36:01 +02:00
|
|
|
drawtype = "liquid",
|
2017-05-17 17:57:14 +02:00
|
|
|
tiles = {"default_swamp_water.png"},
|
2015-10-03 22:36:01 +02:00
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_swamp_water.png",
|
2017-05-17 17:57:14 +02:00
|
|
|
backface_culling = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-10-03 22:36:01 +02:00
|
|
|
alpha = default.SWAMP_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 3,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:swamp_water_flowing",
|
|
|
|
liquid_alternative_source = "default:swamp_water_source",
|
|
|
|
liquid_viscosity = default.SWAMP_WATER_VISC,
|
|
|
|
liquid_renewable = false,
|
|
|
|
liquid_range = 2,
|
|
|
|
post_effect_color = {a=220, r=50, g=40, b=70},
|
|
|
|
groups = {water = 1, swamp_water = 1, liquid = 1},
|
2019-09-21 20:53:37 +02:00
|
|
|
sounds = default.node_sound_water_defaults(),
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2017-05-15 23:45:04 +02:00
|
|
|
})
|
2015-10-03 22:36:01 +02:00
|
|
|
|
2016-11-14 02:22:44 +01:00
|
|
|
default.log("nodes", "loaded")
|