capturetheflag/mods/default/nodes.lua

1304 lines
33 KiB
Lua
Raw Normal View History

2015-07-16 17:44:01 +00:00
-- mods/default/nodes.lua
2017-10-06 00:25:34 +00:00
--[[ Node name convention:
Although many node names are in combined-word form, the required form for new
node names is words separated by underscores. If both forms are used in written
language (for example pinewood and pine wood) the underscore form should be used.
--]]
2015-07-16 17:44:01 +00:00
--[[ Index:
Stone
-----
2017-10-06 00:25:34 +00:00
(1. Material 2. Cobble variant 3. Brick variant 4. Modified forms)
2015-07-16 17:44:01 +00:00
default:stone
default:cobble
default:stonebrick
2017-10-06 00:25:34 +00:00
default:stone_block
2015-07-16 17:44:01 +00:00
default:mossycobble
default:desert_stone
default:desert_cobble
default:desert_stonebrick
2017-10-06 00:25:34 +00:00
default:desert_stone_block
2015-07-16 17:44:01 +00:00
default:sandstone
default:sandstonebrick
2017-10-06 00:25:34 +00:00
default:sandstone_block
default:desert_sandstone
default:desert_sandstone_brick
default:desert_sandstone_block
default:silver_sandstone
default:silver_sandstone_brick
default:silver_sandstone_block
2015-07-16 17:44:01 +00:00
default:obsidian
default:obsidianbrick
2017-10-06 00:25:34 +00:00
default:obsidian_block
2015-07-16 17:44:01 +00:00
Soft / Non-Stone
----------------
2017-10-06 00:25:34 +00:00
(1. Material 2. Modified forms)
2015-07-16 17:44:01 +00:00
default:dirt
default:dirt_with_grass
default:dirt_with_grass_footsteps
2017-10-06 00:25:34 +00:00
default:dirt_with_dry_grass
2015-07-16 17:44:01 +00:00
default:dirt_with_snow
2017-10-06 00:25:34 +00:00
default:dirt_with_rainforest_litter
2015-07-16 17:44:01 +00:00
default:sand
default:desert_sand
2017-10-06 00:25:34 +00:00
default:silver_sand
2015-07-16 17:44:01 +00:00
default:gravel
default:clay
default:snow
default:snowblock
default:ice
Trees
-----
2017-10-06 00:25:34 +00:00
(1. Trunk 2. Fabricated trunk 3. Leaves 4. Sapling 5. Fruits)
2015-07-16 17:44:01 +00:00
default:tree
default:wood
default:leaves
default:sapling
default:apple
default:jungletree
default:junglewood
default:jungleleaves
default:junglesapling
2017-10-06 00:25:34 +00:00
default:pine_tree
default:pine_wood
2015-07-16 17:44:01 +00:00
default:pine_needles
default:pine_sapling
2017-10-06 00:25:34 +00:00
default:acacia_tree
default:acacia_wood
default:acacia_leaves
default:acacia_sapling
default:aspen_tree
default:aspen_wood
default:aspen_leaves
default:aspen_sapling
2015-07-16 17:44:01 +00:00
Ores
----
2017-10-06 00:25:34 +00:00
(1. In stone 2. Blocks)
2015-07-16 17:44:01 +00:00
default:stone_with_coal
default:coalblock
default:stone_with_iron
default:steelblock
default:stone_with_copper
default:copperblock
2017-10-06 00:25:34 +00:00
default:stone_with_tin
default:tinblock
2015-07-16 17:44:01 +00:00
default:bronzeblock
default:stone_with_gold
default:goldblock
default:stone_with_mese
default:mese
default:stone_with_diamond
default:diamondblock
2017-10-06 00:25:34 +00:00
Plantlife
---------
2015-07-16 17:44:01 +00:00
default:cactus
default:papyrus
default:dry_shrub
default:junglegrass
2017-10-06 00:25:34 +00:00
2015-07-16 17:44:01 +00:00
default:grass_1
default:grass_2
default:grass_3
default:grass_4
default:grass_5
2017-10-06 00:25:34 +00:00
default:dry_grass_1
default:dry_grass_2
default:dry_grass_3
default:dry_grass_4
default:dry_grass_5
default:bush_stem
default:bush_leaves
default:bush_sapling
default:acacia_bush_stem
default:acacia_bush_leaves
default:acacia_bush_sapling
Corals
------
default:coral_brown
default:coral_orange
default:coral_skeleton
2015-07-16 17:44:01 +00:00
Liquids
-------
(1. Source 2. Flowing)
default:water_source
default:water_flowing
default:river_water_source
default:river_water_flowing
default:lava_source
default:lava_flowing
Tools / "Advanced" crafting / Non-"natural"
-------------------------------------------
2017-10-06 00:25:34 +00:00
default:chest
default:chest_locked
2015-07-16 17:44:01 +00:00
default:bookshelf
2017-10-06 00:25:34 +00:00
default:sign_wall_wood
default:sign_wall_steel
default:ladder_wood
default:ladder_steel
2015-07-16 17:44:01 +00:00
default:fence_wood
2017-10-06 00:25:34 +00:00
default:fence_acacia_wood
default:fence_junglewood
default:fence_pine_wood
default:fence_aspen_wood
2015-07-16 17:44:01 +00:00
default:glass
default:obsidian_glass
default:brick
default:meselamp
2017-10-06 00:25:34 +00:00
default:mese_post_light
2015-07-16 17:44:01 +00:00
Misc
----
2017-10-06 00:25:34 +00:00
2015-07-16 17:44:01 +00:00
default:cloud
--]]
--
-- Stone
--
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, stone = 1},
2015-07-16 17:44:01 +00:00
drop = 'default:cobble',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:cobble", {
description = "Cobblestone",
tiles = {"default_cobble.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, stone = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stonebrick", {
description = "Stone Brick",
2017-10-06 00:25:34 +00:00
paramtype2 = "facedir",
place_param2 = 0,
2015-07-16 17:44:01 +00:00
tiles = {"default_stone_brick.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_block", {
description = "Stone Block",
tiles = {"default_stone_block.png"},
is_ground_content = false,
groups = {cracky = 2, stone = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:mossycobble", {
description = "Mossy Cobblestone",
tiles = {"default_mossycobble.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, stone = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stone", {
description = "Desert Stone",
tiles = {"default_desert_stone.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, stone = 1},
2015-07-16 17:44:01 +00:00
drop = 'default:desert_cobble',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_cobble", {
description = "Desert Cobblestone",
tiles = {"default_desert_cobble.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, stone = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stonebrick", {
description = "Desert Stone Brick",
2017-10-06 00:25:34 +00:00
paramtype2 = "facedir",
place_param2 = 0,
2015-07-16 17:44:01 +00:00
tiles = {"default_desert_stone_brick.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 2, stone = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:desert_stone_block", {
description = "Desert Stone Block",
tiles = {"default_desert_stone_block.png"},
is_ground_content = false,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
2015-07-16 17:44:01 +00:00
minetest.register_node("default:sandstone", {
description = "Sandstone",
tiles = {"default_sandstone.png"},
2017-10-06 00:25:34 +00:00
groups = {crumbly = 1, cracky = 3},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:sandstonebrick", {
description = "Sandstone Brick",
2017-10-06 00:25:34 +00:00
paramtype2 = "facedir",
place_param2 = 0,
2015-07-16 17:44:01 +00:00
tiles = {"default_sandstone_brick.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:sandstone_block", {
description = "Sandstone Block",
tiles = {"default_sandstone_block.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
2015-07-16 17:44:01 +00:00
2017-10-06 00:25:34 +00:00
minetest.register_node("default:desert_sandstone", {
description = "Desert Sandstone",
tiles = {"default_desert_sandstone.png"},
groups = {crumbly = 1, cracky = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_sandstone_brick", {
description = "Desert Sandstone Brick",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_desert_sandstone_brick.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_sandstone_block", {
description = "Desert Sandstone Block",
tiles = {"default_desert_sandstone_block.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:silver_sandstone", {
description = "Silver Sandstone",
tiles = {"default_silver_sandstone.png"},
groups = {crumbly = 1, cracky = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:silver_sandstone_brick", {
description = "Silver Sandstone Brick",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_silver_sandstone_brick.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:silver_sandstone_block", {
description = "Silver Sandstone Block",
tiles = {"default_silver_sandstone_block.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
2015-07-16 17:44:01 +00:00
--
-- Soft / Non-Stone
--
minetest.register_node("default:dirt", {
description = "Dirt",
tiles = {"default_dirt.png"},
2017-10-06 00:25:34 +00:00
groups = {crumbly = 3, soil = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("default:dirt_with_grass", {
description = "Dirt with Grass",
2017-10-06 00:25:34 +00:00
tiles = {"default_grass.png", "default_dirt.png",
{name = "default_dirt.png^default_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
2015-07-16 17:44:01 +00:00
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
2017-10-06 00:25:34 +00:00
footstep = {name = "default_grass_footstep", gain = 0.25},
2015-07-16 17:44:01 +00:00
}),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:dirt_with_dry_grass", {
description = "Dirt with Dry Grass",
tiles = {"default_dry_grass.png",
"default_dirt.png",
{name = "default_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
2015-07-16 17:44:01 +00:00
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
2017-10-06 00:25:34 +00:00
footstep = {name = "default_grass_footstep", gain = 0.4},
2015-07-16 17:44:01 +00:00
}),
})
minetest.register_node("default:dirt_with_snow", {
description = "Dirt with Snow",
2017-10-06 00:25:34 +00:00
tiles = {"default_snow.png", "default_dirt.png",
{name = "default_dirt.png^default_snow_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, spreading_dirt_type = 1, snowy = 1},
2015-07-16 17:44:01 +00:00
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
2017-10-06 00:25:34 +00:00
footstep = {name = "default_snow_footstep", gain = 0.15},
2015-07-16 17:44:01 +00:00
}),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:dirt_with_rainforest_litter", {
description = "Dirt with Rainforest Litter",
tiles = {
"default_rainforest_litter.png",
"default_dirt.png",
{name = "default_dirt.png^default_rainforest_litter_side.png",
tileable_vertical = false}
},
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
drop = "default:dirt",
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},
}),
})
2015-07-16 17:44:01 +00:00
minetest.register_node("default:sand", {
description = "Sand",
tiles = {"default_sand.png"},
2017-10-12 15:42:19 +00:00
groups = {crumbly = 3, sand = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("default:desert_sand", {
description = "Desert Sand",
tiles = {"default_desert_sand.png"},
2017-10-12 15:42:19 +00:00
groups = {crumbly = 3, sand = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_sand_defaults(),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:silver_sand", {
description = "Silver Sand",
tiles = {"default_silver_sand.png"},
2017-10-12 15:42:19 +00:00
groups = {crumbly = 3, sand = 1},
2017-10-06 00:25:34 +00:00
sounds = default.node_sound_sand_defaults(),
})
2015-07-16 17:44:01 +00:00
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
2017-10-12 15:42:19 +00:00
groups = {crumbly = 2},
2017-10-06 00:25:34 +00:00
sounds = default.node_sound_gravel_defaults(),
drop = {
max_items = 1,
items = {
{items = {'default:gravel'}}
}
}
})
minetest.register_node("default:clay", {
description = "Clay",
tiles = {"default_clay.png"},
groups = {crumbly = 3},
drop = 'default:clay_lump 4',
sounds = default.node_sound_dirt_defaults(),
2015-07-16 17:44:01 +00:00
})
2017-10-06 00:25:34 +00:00
2015-07-16 17:44:01 +00:00
minetest.register_node("default:snow", {
description = "Snow",
tiles = {"default_snow.png"},
inventory_image = "default_snowball.png",
wield_image = "default_snowball.png",
paramtype = "light",
buildable_to = true,
2017-10-06 00:25:34 +00:00
floodable = true,
2015-07-16 17:44:01 +00:00
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
2017-10-06 00:25:34 +00:00
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
2015-07-16 17:44:01 +00:00
},
},
2017-10-12 15:42:19 +00:00
groups = {crumbly = 3, puts_out_fire = 1, snowy = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_dirt_defaults({
2017-10-06 00:25:34 +00:00
footstep = {name = "default_snow_footstep", gain = 0.15},
dug = {name = "default_snow_footstep", gain = 0.2},
dig = {name = "default_snow_footstep", gain = 0.2}
2015-07-16 17:44:01 +00:00
}),
on_construct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then
2017-10-06 00:25:34 +00:00
minetest.set_node(pos, {name = "default:dirt_with_snow"})
2015-07-16 17:44:01 +00:00
end
end,
})
minetest.register_node("default:snowblock", {
description = "Snow Block",
tiles = {"default_snow.png"},
2017-10-06 00:25:34 +00:00
groups = {crumbly = 3, puts_out_fire = 1, cools_lava = 1, snowy = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_dirt_defaults({
2017-10-06 00:25:34 +00:00
footstep = {name = "default_snow_footstep", gain = 0.15},
dug = {name = "default_snow_footstep", gain = 0.2},
dig = {name = "default_snow_footstep", gain = 0.2}
2015-07-16 17:44:01 +00:00
}),
2017-10-06 00:25:34 +00:00
on_construct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
end
end,
})
2015-07-16 17:44:01 +00:00
minetest.register_node("default:ice", {
description = "Ice",
tiles = {"default_ice.png"},
is_ground_content = false,
paramtype = "light",
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, puts_out_fire = 1, cools_lava = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_glass_defaults(),
})
--
-- Trees
--
minetest.register_node("default:tree", {
description = "Tree",
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:wood", {
description = "Wooden Planks",
2017-10-06 00:25:34 +00:00
paramtype2 = "facedir",
place_param2 = 0,
2015-07-16 17:44:01 +00:00
tiles = {"default_wood.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:leaves", {
description = "Leaves",
drawtype = "allfaces_optional",
waving = 1,
tiles = {"default_leaves.png"},
2017-10-06 00:25:34 +00:00
special_tiles = {"default_leaves_simple.png"},
2015-07-16 17:44:01 +00:00
paramtype = "light",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:apple", {
description = "Apple",
drawtype = "plantlike",
tiles = {"default_apple.png"},
inventory_image = "default_apple.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
selection_box = {
type = "fixed",
2017-10-06 00:25:34 +00:00
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
2015-07-16 17:44:01 +00:00
},
2017-10-06 00:25:34 +00:00
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1},
2015-07-16 17:44:01 +00:00
on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
2017-10-06 00:25:34 +00:00
minetest.set_node(pos, {name = "default:apple", param2 = 1})
2015-07-16 17:44:01 +00:00
end
end,
})
minetest.register_node("default:jungletree", {
description = "Jungle Tree",
2017-10-06 00:25:34 +00:00
tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
"default_jungletree.png"},
2015-07-16 17:44:01 +00:00
paramtype2 = "facedir",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:junglewood", {
2017-10-06 00:25:34 +00:00
description = "Jungle Wood Planks",
paramtype2 = "facedir",
place_param2 = 0,
2015-07-16 17:44:01 +00:00
tiles = {"default_junglewood.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:jungleleaves", {
description = "Jungle Leaves",
drawtype = "allfaces_optional",
waving = 1,
tiles = {"default_jungleleaves.png"},
2017-10-06 00:25:34 +00:00
special_tiles = {"default_jungleleaves_simple.png"},
2015-07-16 17:44:01 +00:00
paramtype = "light",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:pine_tree", {
2015-07-16 17:44:01 +00:00
description = "Pine Tree",
2017-10-06 00:25:34 +00:00
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
"default_pine_tree.png"},
2015-07-16 17:44:01 +00:00
paramtype2 = "facedir",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:pine_wood", {
description = "Pine Wood Planks",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_pine_wood.png"},
2015-07-16 17:44:01 +00:00
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:pine_needles",{
description = "Pine Needles",
drawtype = "allfaces_optional",
tiles = {"default_pine_needles.png"},
waving = 1,
paramtype = "light",
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:acacia_tree", {
description = "Acacia Tree",
tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
"default_acacia_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:acacia_wood", {
description = "Acacia Wood Planks",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_acacia_wood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:acacia_leaves", {
description = "Acacia Leaves",
drawtype = "allfaces_optional",
tiles = {"default_acacia_leaves.png"},
special_tiles = {"default_acacia_leaves_simple.png"},
waving = 1,
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:aspen_tree", {
description = "Aspen Tree",
tiles = {"default_aspen_tree_top.png", "default_aspen_tree_top.png",
"default_aspen_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:aspen_wood", {
description = "Aspen Wood Planks",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_aspen_wood.png"},
is_ground_content = false,
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:aspen_leaves", {
description = "Aspen Leaves",
drawtype = "allfaces_optional",
tiles = {"default_aspen_leaves.png"},
waving = 1,
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
2015-07-16 17:44:01 +00:00
--
-- Ores
--
minetest.register_node("default:stone_with_coal", {
description = "Coal Ore",
tiles = {"default_stone.png^default_mineral_coal.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 3},
2015-07-16 17:44:01 +00:00
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:coalblock", {
description = "Coal Block",
tiles = {"default_coal_block.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 3},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_iron", {
description = "Iron Ore",
tiles = {"default_stone.png^default_mineral_iron.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 2},
2015-07-16 17:44:01 +00:00
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_copper", {
description = "Copper Ore",
tiles = {"default_stone.png^default_mineral_copper.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 2},
2015-07-16 17:44:01 +00:00
drop = 'default:copper_lump',
sounds = default.node_sound_stone_defaults(),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:stone_with_tin", {
description = "Tin Ore",
tiles = {"default_stone.png^default_mineral_tin.png"},
groups = {cracky = 2},
drop = "default:tin_lump",
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:bronzeblock", {
description = "Bronze Block",
tiles = {"default_bronze_block.png"},
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 1, level = 2},
sounds = default.node_sound_metal_defaults(),
2015-07-16 17:44:01 +00:00
})
minetest.register_node("default:stone_with_mese", {
description = "Mese Ore",
tiles = {"default_stone.png^default_mineral_mese.png"},
groups = {cracky = 1},
drop = "default:mese_crystal",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:mese", {
description = "Mese Block",
tiles = {"default_mese_block.png"},
paramtype = "light",
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
light_source = 3,
})
minetest.register_node("default:stone_with_gold", {
description = "Gold Ore",
tiles = {"default_stone.png^default_mineral_gold.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 2},
2015-07-16 17:44:01 +00:00
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_diamond", {
description = "Diamond Ore",
tiles = {"default_stone.png^default_mineral_diamond.png"},
2017-10-06 00:25:34 +00:00
groups = {cracky = 1},
2015-07-16 17:44:01 +00:00
drop = "default:diamond",
sounds = default.node_sound_stone_defaults(),
})
--
-- Plantlife (non-cubic)
--
minetest.register_node("default:cactus", {
description = "Cactus",
2017-10-06 00:25:34 +00:00
tiles = {"default_cactus_top.png", "default_cactus_top.png",
"default_cactus_side.png"},
2015-07-16 17:44:01 +00:00
paramtype2 = "facedir",
2017-10-06 00:25:34 +00:00
groups = {choppy = 3},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
})
minetest.register_node("default:papyrus", {
description = "Papyrus",
drawtype = "plantlike",
tiles = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
2017-10-06 00:25:34 +00:00
fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.5, 6 / 16},
2015-07-16 17:44:01 +00:00
},
2017-10-06 00:25:34 +00:00
groups = {snappy = 3, flammable = 2},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
2017-10-06 00:25:34 +00:00
2015-07-16 17:44:01 +00:00
--
-- Liquids
--
minetest.register_node("default:water_source", {
description = "Water Source",
drawtype = "liquid",
tiles = {
{
name = "default_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
-- New-style water source material (mostly unused)
{
name = "default_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
2017-10-06 00:25:34 +00:00
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
2015-07-16 17:44:01 +00:00
})
minetest.register_node("default:water_flowing", {
description = "Flowing Water",
drawtype = "flowingliquid",
tiles = {"default_water.png"},
special_tiles = {
{
name = "default_water_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "default_water_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
2017-10-06 00:25:34 +00:00
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
2015-07-16 17:44:01 +00:00
})
minetest.register_node("default:river_water_source", {
description = "River Water Source",
drawtype = "liquid",
tiles = {
{
name = "default_river_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
{
name = "default_river_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:river_water_flowing",
liquid_alternative_source = "default:river_water_source",
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
2017-10-06 00:25:34 +00:00
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
2015-07-16 17:44:01 +00:00
})
minetest.register_node("default:river_water_flowing", {
description = "Flowing River Water",
drawtype = "flowingliquid",
tiles = {"default_river_water.png"},
special_tiles = {
{
name = "default_river_water_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "default_river_water_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:river_water_flowing",
liquid_alternative_source = "default:river_water_source",
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
2017-10-06 00:25:34 +00:00
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1, cools_lava = 1},
sounds = default.node_sound_water_defaults(),
2015-07-16 17:44:01 +00:00
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:lava_source", {
description = "Lava Source",
drawtype = "liquid",
2015-07-16 17:44:01 +00:00
tiles = {
{
2017-10-06 00:25:34 +00:00
name = "default_lava_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
},
},
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = "default_lava_source_animated.png",
2015-07-16 17:44:01 +00:00
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
2017-10-06 00:25:34 +00:00
length = 3.0,
2015-07-16 17:44:01 +00:00
},
2017-10-06 00:25:34 +00:00
backface_culling = false,
2015-07-16 17:44:01 +00:00
},
2017-10-06 00:25:34 +00:00
},
paramtype = "light",
light_source = default.LIGHT_MAX - 1,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
liquid_viscosity = 7,
liquid_renewable = false,
damage_per_second = 4 * 2,
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 2, igniter = 1},
})
minetest.register_node("default:lava_flowing", {
description = "Flowing Lava",
drawtype = "flowingliquid",
tiles = {"default_lava.png"},
special_tiles = {
2015-07-16 17:44:01 +00:00
{
2017-10-06 00:25:34 +00:00
name = "default_lava_flowing_animated.png",
backface_culling = false,
2015-07-16 17:44:01 +00:00
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
2017-10-06 00:25:34 +00:00
length = 3.3,
2015-07-16 17:44:01 +00:00
},
},
{
2017-10-06 00:25:34 +00:00
name = "default_lava_flowing_animated.png",
backface_culling = true,
2015-07-16 17:44:01 +00:00
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
2017-10-06 00:25:34 +00:00
length = 3.3,
2015-07-16 17:44:01 +00:00
},
},
},
paramtype = "light",
2017-10-06 00:25:34 +00:00
paramtype2 = "flowingliquid",
2015-07-16 17:44:01 +00:00
light_source = default.LIGHT_MAX - 1,
2017-10-06 00:25:34 +00:00
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
liquid_viscosity = 7,
liquid_renewable = false,
damage_per_second = 4 * 2,
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 2, igniter = 1,
not_in_creative_inventory = 1},
2015-07-16 17:44:01 +00:00
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:ladder_wood", {
description = "Wooden Ladder",
2015-07-16 17:44:01 +00:00
drawtype = "signlike",
2017-10-06 00:25:34 +00:00
tiles = {"default_ladder_wood.png"},
inventory_image = "default_ladder_wood.png",
wield_image = "default_ladder_wood.png",
2015-07-16 17:44:01 +00:00
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
climbable = true,
is_ground_content = false,
selection_box = {
type = "wallmounted",
--wall_top = = <default>
--wall_bottom = = <default>
--wall_side = = <default>
},
2017-10-06 00:25:34 +00:00
groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2},
2015-07-16 17:44:01 +00:00
legacy_wallmounted = true,
sounds = default.node_sound_wood_defaults(),
})
2017-10-06 00:25:34 +00:00
default.register_fence("default:fence_wood", {
description = "Wooden Fence",
texture = "default_fence_wood.png",
inventory_image = "default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "default:wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
2015-07-16 17:44:01 +00:00
})
2017-10-06 00:25:34 +00:00
default.register_fence("default:fence_acacia_wood", {
description = "Acacia Fence",
texture = "default_fence_acacia_wood.png",
inventory_image = "default_fence_overlay.png^default_acacia_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^default_acacia_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "default:acacia_wood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
})
2015-07-16 17:44:01 +00:00
2017-10-06 00:25:34 +00:00
default.register_fence("default:fence_junglewood", {
description = "Jungle Wood Fence",
texture = "default_fence_junglewood.png",
inventory_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^default_junglewood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "default:junglewood",
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults()
})
default.register_fence("default:fence_pine_wood", {
description = "Pine Fence",
texture = "default_fence_pine_wood.png",
inventory_image = "default_fence_overlay.png^default_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^default_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "default:pine_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
sounds = default.node_sound_wood_defaults()
})
default.register_fence("default:fence_aspen_wood", {
description = "Aspen Fence",
texture = "default_fence_aspen_wood.png",
inventory_image = "default_fence_overlay.png^default_aspen_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^default_aspen_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
material = "default:aspen_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
sounds = default.node_sound_wood_defaults()
})
2015-07-16 17:44:01 +00:00
minetest.register_node("default:glass", {
description = "Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
paramtype = "light",
2017-10-06 00:25:34 +00:00
paramtype2 = "glasslikeliquidlevel",
2015-07-16 17:44:01 +00:00
sunlight_propagates = true,
is_ground_content = false,
2017-10-06 00:25:34 +00:00
groups = {cracky = 3, oddly_breakable_by_hand = 3},
2015-07-16 17:44:01 +00:00
sounds = default.node_sound_glass_defaults(),
})
2017-10-06 00:25:34 +00:00
minetest.register_node("default:brick", {
description = "Brick Block",
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"default_brick.png"},
is_ground_content = false,
groups = {cracky = 3},
sounds = default.node_sound_stone_defaults(),
2015-07-16 17:44:01 +00:00
})
minetest.register_node("default:meselamp", {
description = "Mese Lamp",
drawtype = "glasslike",
tiles = {"default_meselamp.png"},
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
light_source = default.LIGHT_MAX,
})
2017-10-06 00:25:34 +00:00
--
-- register trees for leafdecay
--
if minetest.get_mapgen_setting("mg_name") == "v6" then
default.register_leafdecay({
trunks = {"default:tree"},
leaves = {"default:apple", "default:leaves"},
radius = 2,
})
default.register_leafdecay({
trunks = {"default:jungletree"},
leaves = {"default:jungleleaves"},
radius = 3,
})
default.register_leafdecay({
trunks = {"default:pine_tree"},
leaves = {"default:pine_needles"},
radius = 3,
})
else
default.register_leafdecay({
trunks = {"default:tree"},
leaves = {"default:apple", "default:leaves"},
radius = 3,
})
default.register_leafdecay({
trunks = {"default:jungletree"},
leaves = {"default:jungleleaves"},
radius = 2,
})
default.register_leafdecay({
trunks = {"default:pine_tree"},
leaves = {"default:pine_needles"},
radius = 2,
})
end
default.register_leafdecay({
trunks = {"default:acacia_tree"},
leaves = {"default:acacia_leaves"},
radius = 2,
})
default.register_leafdecay({
trunks = {"default:aspen_tree"},
leaves = {"default:aspen_leaves"},
radius = 3,
2015-07-16 17:44:01 +00:00
})