2019-01-13 16:53:36 +00:00
|
|
|
--
|
|
|
|
-- Special nodes
|
|
|
|
--
|
|
|
|
|
2017-12-23 16:33:05 +00:00
|
|
|
minetest.register_node("ctf_map:ignore", {
|
2018-06-08 22:35:28 +00:00
|
|
|
description = "Artificial Ignore", -- this may need to be given a more appropriate name
|
2017-12-23 16:33:05 +00:00
|
|
|
drawtype = "airlike",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = true,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = false,
|
|
|
|
air_equivalent = true,
|
2019-01-13 16:53:36 +00:00
|
|
|
|
|
|
|
groups = {immortal = 1},
|
2017-12-23 16:33:05 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:ind_glass", {
|
2018-06-08 22:35:28 +00:00
|
|
|
description = "Indestructible Glass",
|
2017-12-23 16:33:05 +00:00
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
tiles = {"default_glass.png", "default_glass_detail.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_glass.png"),
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
walkable = true,
|
|
|
|
buildable_to = false,
|
|
|
|
pointable = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_glass_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:ind_stone", {
|
2018-06-08 22:35:28 +00:00
|
|
|
description = "Indestructible Stone",
|
2017-12-23 16:33:05 +00:00
|
|
|
groups = {immortal = 1},
|
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
is_ground_content = false
|
|
|
|
})
|
|
|
|
|
2019-01-13 16:53:36 +00:00
|
|
|
minetest.register_node("ctf_map:ind_glass_red", {
|
|
|
|
description = "Indestructible Red Glass",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"ctf_map_glass_red.png"},
|
|
|
|
inventory_image = minetest.inventorycube("ctf_map_glass_red.png"),
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
walkable = true,
|
|
|
|
buildable_to = false,
|
|
|
|
use_texture_alpha = false,
|
|
|
|
alpha = 0,
|
|
|
|
pointable = false,
|
2018-06-08 22:35:28 +00:00
|
|
|
groups = {immortal = 1},
|
2019-01-13 16:53:36 +00:00
|
|
|
sounds = default.node_sound_glass_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:ind_stone_red", {
|
|
|
|
description = "Indestructible Red Stone",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
tiles = {"ctf_map_stone_red.png"},
|
|
|
|
is_ground_content = false
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Indestructible nodes for building
|
|
|
|
--
|
|
|
|
|
|
|
|
-- Stone
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Stone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:cobble", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Cobblestone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_cobble.png"},
|
2018-06-08 22:35:28 +00:00
|
|
|
is_ground_content = false,
|
2019-01-13 16:53:36 +00:00
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stonebrick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Stone Brick",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_stone_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_block", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Stone Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:mossycobble", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Mossy Cobblestone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_mossycobble.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_stone", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Stone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_stone.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_cobble", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Cobblestone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_cobble.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_stonebrick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Stone Brick",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_desert_stone_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_stone_block", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Stone Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_stone_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:sandstone", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Sandstone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_sandstone.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:sandstonebrick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Sandstone Brick",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_sandstone_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:sandstone_block", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Sandstone Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_sandstone_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_sandstone", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Sandstone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_sandstone.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_sandstone_brick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Sandstone Brick",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_desert_sandstone_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_sandstone_block", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Sandstone Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_sandstone_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:silver_sandstone", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Silver Sandstone",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_silver_sandstone.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:silver_sandstone_brick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Silver Sandstone Brick",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_silver_sandstone_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2018-06-08 22:35:28 +00:00
|
|
|
})
|
|
|
|
|
2019-01-13 16:53:36 +00:00
|
|
|
minetest.register_node("ctf_map:silver_sandstone_block", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Silver Sandstone Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_silver_sandstone_block.png"},
|
|
|
|
is_ground_content = false,
|
2018-06-08 22:35:28 +00:00
|
|
|
groups = {immortal = 1},
|
2019-01-13 16:53:36 +00:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Soft / Non-Stone
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:dirt", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Dirt",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_dirt.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:dirt_with_grass", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Dirt with Grass",
|
2018-06-08 22:35:28 +00:00
|
|
|
tiles = {"default_grass.png", "default_dirt.png",
|
|
|
|
{name = "default_dirt.png^default_grass_side.png",
|
2019-01-13 16:53:36 +00:00
|
|
|
tileable_vertical = false}},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
|
2018-06-08 22:35:28 +00:00
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_grass_footstep", gain = 0.25},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2019-01-13 16:53:36 +00:00
|
|
|
minetest.register_node("ctf_map:dirt_with_dry_grass", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Dirt with Dry Grass",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_dry_grass.png",
|
|
|
|
"default_dirt.png",
|
|
|
|
{name = "default_dirt.png^default_dry_grass_side.png",
|
|
|
|
tileable_vertical = false}},
|
2017-12-28 12:22:19 +00:00
|
|
|
groups = {immortal = 1},
|
2019-01-13 16:53:36 +00:00
|
|
|
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_grass_footstep", gain = 0.4},
|
|
|
|
}),
|
2017-12-28 12:22:19 +00:00
|
|
|
})
|
|
|
|
|
2019-01-13 16:53:36 +00:00
|
|
|
minetest.register_node("ctf_map:dirt_with_snow", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Dirt with Snow",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_snow.png", "default_dirt.png",
|
|
|
|
{name = "default_dirt.png^default_snow_side.png",
|
|
|
|
tileable_vertical = false}},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_snow_footstep", gain = 0.15},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:dirt_with_rainforest_litter", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Dirt with Rainforest Litter",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {
|
|
|
|
"default_rainforest_litter.png",
|
|
|
|
"default_dirt.png",
|
|
|
|
{name = "default_dirt.png^default_rainforest_litter_side.png",
|
|
|
|
tileable_vertical = false}
|
|
|
|
},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_grass_footstep", gain = 0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:sand", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Sand",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_sand.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_sand_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:desert_sand", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Desert Sand",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_desert_sand.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_sand_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:silver_sand", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Silver Sand",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_silver_sand.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_sand_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:gravel", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Gravel",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_gravel.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_gravel_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:clay", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Clay",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_clay.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:snow", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Snow",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_snow.png"},
|
|
|
|
inventory_image = "default_snowball.png",
|
|
|
|
wield_image = "default_snowball.png",
|
|
|
|
paramtype = "light",
|
|
|
|
buildable_to = true,
|
|
|
|
floodable = true,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_snow_footstep", gain = 0.15},
|
|
|
|
dug = {name = "default_snow_footstep", gain = 0.2},
|
|
|
|
dig = {name = "default_snow_footstep", gain = 0.2}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:snowblock", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Snow Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_snow.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_snow_footstep", gain = 0.15},
|
|
|
|
dug = {name = "default_snow_footstep", gain = 0.2},
|
|
|
|
dig = {name = "default_snow_footstep", gain = 0.2}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:ice", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Ice",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_ice.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
paramtype = "light",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Trees
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:tree", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Tree",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Wooden Planks",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:leaves", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Leaves",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
waving = 1,
|
|
|
|
tiles = {"default_leaves.png"},
|
|
|
|
special_tiles = {"default_leaves_simple.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:apple", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Apple",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"default_apple.png"},
|
|
|
|
inventory_image = "default_apple.png",
|
|
|
|
stack_max = 99,
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
is_ground_content = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
|
|
|
|
},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:jungletree", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Jungle Tree",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
|
|
|
|
"default_jungletree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:junglewood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Jungle Wood Planks",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_junglewood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:jungleleaves", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Jungle Leaves",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
waving = 1,
|
|
|
|
tiles = {"default_jungleleaves.png"},
|
|
|
|
special_tiles = {"default_jungleleaves_simple.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:pine_tree", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Pine Tree",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
|
|
|
|
"default_pine_tree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:pine_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Pine Wood Planks",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_pine_wood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:pine_needles",{
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Pine Needles",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
tiles = {"default_pine_needles.png"},
|
|
|
|
waving = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:acacia_tree", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Acacia Tree",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
|
|
|
|
"default_acacia_tree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:acacia_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Acacia Wood Planks",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_acacia_wood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:acacia_leaves", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Acacia Leaves",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
tiles = {"default_acacia_leaves.png"},
|
|
|
|
special_tiles = {"default_acacia_leaves_simple.png"},
|
|
|
|
waving = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:aspen_tree", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Aspen Tree",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_aspen_tree_top.png", "default_aspen_tree_top.png",
|
|
|
|
"default_aspen_tree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:aspen_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Aspen Wood Planks",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_aspen_wood.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:aspen_leaves", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Aspen Leaves",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
tiles = {"default_aspen_leaves.png"},
|
|
|
|
waving = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Ores
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_coal", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Coal Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_coal.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:coalblock", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Coal Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_coal_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_iron", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Iron Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_iron.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_copper", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Copper Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_copper.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_tin", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Tin Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_tin.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:bronzeblock", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Bronze Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_bronze_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_metal_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_mese", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Mese Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_mese.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:mese", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Mese Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_mese_block.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
light_source = 3,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:stone_with_diamond", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Diamond Ore",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_stone.png^default_mineral_diamond.png"},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Plantlife (non-cubic)
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:cactus", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Cactus",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_cactus_top.png", "default_cactus_top.png",
|
|
|
|
"default_cactus_side.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:ladder_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Wooden Ladder",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "signlike",
|
|
|
|
tiles = {"default_ladder_wood.png"},
|
|
|
|
inventory_image = "default_ladder_wood.png",
|
|
|
|
wield_image = "default_ladder_wood.png",
|
|
|
|
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>
|
|
|
|
},
|
|
|
|
groups = {immortal = 1},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("ctf_map:fence_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Wooden Fence",
|
2019-01-13 16:53:36 +00:00
|
|
|
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 = "ctf_map:wood",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("ctf_map:fence_acacia_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Acacia Fence",
|
2019-01-13 16:53:36 +00:00
|
|
|
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 = "ctf_map:acacia_wood",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("ctf_map:fence_junglewood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Jungle Wood Fence",
|
2019-01-13 16:53:36 +00:00
|
|
|
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 = "ctf_map:junglewood",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("ctf_map:fence_pine_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Pine Fence",
|
2019-01-13 16:53:36 +00:00
|
|
|
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 = "ctf_map:pine_wood",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("ctf_map:fence_aspen_wood", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Aspen Fence",
|
2019-01-13 16:53:36 +00:00
|
|
|
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 = "ctf_map:aspen_wood",
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_wood_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:glass", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Glass",
|
2019-01-13 16:53:36 +00:00
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
tiles = {"default_glass.png", "default_glass_detail.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "glasslikeliquidlevel",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:brick", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Brick Block",
|
2019-01-13 16:53:36 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
place_param2 = 0,
|
|
|
|
tiles = {"default_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("ctf_map:meselamp", {
|
2019-01-16 18:46:20 +00:00
|
|
|
description = "Indestructible Mese Lamp",
|
2017-12-23 16:33:05 +00:00
|
|
|
drawtype = "glasslike",
|
2019-01-13 16:53:36 +00:00
|
|
|
tiles = {"default_meselamp.png"},
|
2017-12-23 16:33:05 +00:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {immortal = 1},
|
2019-01-13 16:53:36 +00:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
light_source = default.LIGHT_MAX,
|
2017-12-23 16:33:05 +00:00
|
|
|
})
|
2019-01-13 16:53:36 +00:00
|
|
|
|
|
|
|
-- Re-register all nodes from stairs and wool
|
|
|
|
for name, nodedef in pairs(minetest.registered_nodes) do
|
|
|
|
if name:find("stairs") then
|
|
|
|
nodedef.groups = {immortal = 1}
|
|
|
|
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
|
|
|
|
elseif name:find("wool") then
|
|
|
|
nodedef.groups = {immortal = 1}
|
|
|
|
minetest.register_node("ctf_map:" .. name:split(":")[2], nodedef)
|
|
|
|
end
|
|
|
|
end
|