Removing documentation

This commit is contained in:
JoseDouglas26 2024-06-07 21:30:49 -03:00
parent 7d75165975
commit 2bb8abb882
11 changed files with 4 additions and 268 deletions

View File

@ -10,18 +10,6 @@ local S = minetest.get_translator(minetest.get_current_modname())
local composter_description = S(
"Composter"
)
local composter_longdesc = S(
"Composters can convert various organic items into bonemeal."
)
local composter_usagehelp = S(
"Use organic items on the composter to fill it with layers of compost. " ..
"Every time an item is put in the composter, there is a chance that the " ..
"composter adds another layer of compost. Some items have a bigger chance " ..
"of adding an extra layer than other items. After filling up with 7 layers " ..
"of compost, the composter is full. After a delay of approximately one " ..
"second the composter becomes ready and bone meal can be retrieved from it. " ..
"Right-clicking the composter takes out the bone meal empties the composter."
)
minetest.register_craft({
output = "mcl_composters:composter",
@ -89,7 +77,7 @@ end
--- Math and node swap during compost progression
---@param pos Vector Position of the node
---@param node node
---@param chance integer Value of "compostability" group of inserted item
---@param chance integer Value of "compostability" group of inserted item
function composter_progress_chance(pos, node, chance)
-- calculate leveling up chance
local rand = math.random(0,100)
@ -203,9 +191,6 @@ end
--
minetest.register_node("mcl_composters:composter", {
description = composter_description,
_tt_help = S("Converts organic items into bonemeal"),
_doc_items_longdesc = composter_longdesc,
_doc_items_usagehelp = composter_usagehelp,
paramtype = "light",
drawtype = "nodebox",
node_box = composter_get_nodeboxes(0),
@ -263,7 +248,6 @@ local function register_filled_composter(level)
local id = "mcl_composters:composter_"..level
minetest.register_node(id, {
description = S("Composter") .. " (" .. level .. "/7 " .. S("filled") .. ")",
_doc_items_create_entry = false,
paramtype = "light",
drawtype = "nodebox",
node_box = composter_get_nodeboxes(level),
@ -309,11 +293,6 @@ local function register_filled_composter(level)
inv:remove_item("src", stack)
end,
})
-- Add entry aliases for the Help
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_composters:composter", "nodes", id)
end
end
--- Register filled composters (7 levels).
@ -326,7 +305,6 @@ end
--
minetest.register_node("mcl_composters:composter_ready", {
description = S("Composter") .. "(" .. S("ready for harvest") .. ")",
_doc_items_create_entry = false,
paramtype = "light",
drawtype = "nodebox",
node_box = composter_get_nodeboxes(7),
@ -368,9 +346,3 @@ minetest.register_node("mcl_composters:composter_ready", {
minetest.swap_node(pos, {name = "mcl_composters:composter"})
end,
})
-- Add entry aliases for the Help
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_composters:composter",
"nodes", "mcl_composters:composter_ready" )
end

View File

@ -63,58 +63,7 @@ mcl_copper.copper_descs = {
S("Waxed Oxidized Copper Bulb").." "..S("(Lit and Powered)")
}
}
-- All longdescs for copper-related blocks. Waxed variants share the same description with its unwaxed
-- variant. Like the descriptions, they are indexed by the block name.
mcl_copper.copper_longdescs = {
["block"] = {
S("A block of copper is mostly a decorative block."),
S("Exposed copper is a decorative block."),
S("Weathered copper is a decorative block."),
S("Oxidized copper is a decorative block.")
},
["cut"] = {
S("Cut copper is a decorative block."),
S("Exposed cut copper is a decorative block."),
S("Weathered cut copper is a decorative block."),
S("Oxidized cut copper is a decorative block.")
},
["grate"] = {
S("Copper grate is a decorative block."),
S("Exposed copper grate is a decorative block."),
S("Weathered copper grate is a decorative block."),
S("Oxidized copper grate is a decorative block.")
},
["chiseled"] = {
S("Chiseled copper is a decorative block."),
S("Exposed chiseled copper is a decorative block."),
S("Weathered chiseled copper is a decorative block."),
S("Oxidized chiseled copper is a decorative block.")
},
["bulb_off"] = {
S("Copper bulb is a decorative block and a light source when lited."),
S("Exposed copper bulb is a decorative block and a light source when lited."),
S("Weathered copper bulb is a decorative block and a light source when lited."),
S("Oxidized copper bulb is a decorative block and a light source when lited.")
},
["bulb_on"] = {
S("Copper bulb is a decorative block and a light source."),
S("Exposed copper bulb is a decorative block and a light source."),
S("Weathered copper bulb is a decorative block and a light source."),
S("Oxidized copper bulb is a decorative block and a light source.")
},
["bulb_powered_off"] = {
S("Copper bulb is a decorative block and a light source when lited."),
S("Exposed copper bulb is a decorative block and a light source when lited."),
S("Weathered copper bulb is a decorative block and a light source when lited."),
S("Oxidized copper bulb is a decorative block and a light source when lited.")
},
["bulb_powered_on"] = {
S("Copper bulb is a decorative block and a light source."),
S("Exposed copper bulb is a decorative block and a light source."),
S("Weathered copper bulb is a decorative block and a light source."),
S("Oxidized copper bulb is a decorative block and a light source.")
}
}
-- Subnames for copper stairs and slabs. For now, just indexed for the cut copper blocks.
mcl_copper.stairs_subnames = {
["cut"] = {

View File

@ -153,7 +153,6 @@ local function register_copper_variants(name, definitions)
sounds = mcl_sounds.node_sound_metal_defaults(),
sunlight_propagates = definitions.sunlight_propagates or false,
tiles = {set_tiles(tiles, i)},
_doc_items_longdesc = mcl_copper.copper_longdescs[name][math.ceil(i/2)],
_mcl_blast_resistance = 6,
_mcl_hardness = 3,
_mcl_oxidized_variant = oxidized_variant,
@ -292,7 +291,6 @@ register_copper_variants("cut", {
-- Registering specific blocks.
minetest.register_node("mcl_copper:stone_with_copper", {
description = S("Copper Ore"),
_doc_items_longdesc = S("Some copper contained in stone, it is pretty common and can be found below sea level."),
tiles = {"default_stone.png^mcl_copper_ore.png"},
is_ground_content = true,
groups = {pickaxey = 3, building_block = 1, material_stone = 1, blast_furnace_smeltable=1},
@ -306,7 +304,6 @@ minetest.register_node("mcl_copper:stone_with_copper", {
minetest.register_node("mcl_copper:block_raw", {
description = S("Block of Raw Copper"),
_doc_items_longdesc = S("A block used for compact raw copper storage."),
tiles = {"mcl_copper_block_raw.png"},
is_ground_content = false,
groups = {pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1},

View File

@ -22,8 +22,6 @@ mcl_core.fortune_drop_ore = {
minetest.register_node("mcl_core:stone", {
description = S("Stone"),
_doc_items_longdesc = S("One of the most common blocks in the world, almost the entire underground consists of stone. It sometimes contains ores. Stone may be created when water meets lava."),
_doc_items_hidden = false,
tiles = {"default_stone.png"},
is_ground_content = true,
stack_max = 64,
@ -42,8 +40,6 @@ minetest.register_node("mcl_core:stone", {
minetest.register_node("mcl_core:stone_with_coal", {
description = S("Coal Ore"),
_doc_items_longdesc = S("Some coal contained in stone, it is very common and can be found inside stone in medium to large clusters at nearly every height."),
_doc_items_hidden = false,
tiles = {"mcl_core_coal_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -58,7 +54,6 @@ minetest.register_node("mcl_core:stone_with_coal", {
minetest.register_node("mcl_core:stone_with_iron", {
description = S("Iron Ore"),
_doc_items_longdesc = S("Some iron contained in stone, it is prety common and can be found below sea level."),
tiles = {"mcl_core_iron_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -74,7 +69,6 @@ minetest.register_node("mcl_core:stone_with_iron", {
minetest.register_node("mcl_core:stone_with_gold", {
description = S("Gold Ore"),
_doc_items_longdesc = S("This stone contains pure gold, a rare metal."),
tiles = {"mcl_core_gold_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -98,7 +92,6 @@ local function redstone_ore_activate(pos, node, puncher, pointed_thing)
end
minetest.register_node("mcl_core:stone_with_redstone", {
description = S("Redstone Ore"),
_doc_items_longdesc = S("Redstone ore is commonly found near the bottom of the world. It glows when it is punched or walked upon."),
tiles = {"mcl_core_redstone_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -139,7 +132,6 @@ end
-- Light the redstone ore up when it has been touched
minetest.register_node("mcl_core:stone_with_redstone_lit", {
description = S("Lit Redstone Ore"),
_doc_items_create_entry = false,
tiles = {"mcl_core_redstone_ore.png"},
paramtype = "light",
light_source = 9,
@ -179,7 +171,6 @@ minetest.register_node("mcl_core:stone_with_redstone_lit", {
minetest.register_node("mcl_core:stone_with_lapis", {
description = S("Lapis Lazuli Ore"),
_doc_items_longdesc = S("Lapis lazuli ore is the ore of lapis lazuli. It can be rarely found in clusters near the bottom of the world."),
tiles = {"mcl_core_lapis_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -203,7 +194,6 @@ minetest.register_node("mcl_core:stone_with_lapis", {
minetest.register_node("mcl_core:stone_with_emerald", {
description = S("Emerald Ore"),
_doc_items_longdesc = S("Emerald ore is the ore of emeralds. It is very rare and can be found alone, not in clusters."),
tiles = {"mcl_core_emerald_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -218,7 +208,6 @@ minetest.register_node("mcl_core:stone_with_emerald", {
minetest.register_node("mcl_core:stone_with_diamond", {
description = S("Diamond Ore"),
_doc_items_longdesc = S("Diamond ore is rare and can be found in clusters near the bottom of the world."),
tiles = {"mcl_core_diamond_ore.png"},
is_ground_content = true,
stack_max = 64,
@ -233,7 +222,6 @@ minetest.register_node("mcl_core:stone_with_diamond", {
minetest.register_node("mcl_core:stonebrick", {
description = S("Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"default_stone_brick.png"},
stack_max = 64,
groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, material_stone=1},
@ -245,7 +233,6 @@ minetest.register_node("mcl_core:stonebrick", {
minetest.register_node("mcl_core:stonebrickcarved", {
description = S("Chiseled Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_carved.png"},
stack_max = 64,
groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, material_stone=1},
@ -257,7 +244,6 @@ minetest.register_node("mcl_core:stonebrickcarved", {
minetest.register_node("mcl_core:stonebrickcracked", {
description = S("Cracked Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_cracked.png"},
stack_max = 64,
groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, material_stone=1},
@ -269,7 +255,6 @@ minetest.register_node("mcl_core:stonebrickcracked", {
minetest.register_node("mcl_core:stonebrickmossy", {
description = S("Mossy Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_mossy.png"},
stack_max = 64,
groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, material_stone=1},
@ -281,7 +266,6 @@ minetest.register_node("mcl_core:stonebrickmossy", {
minetest.register_node("mcl_core:stone_smooth", {
description = S("Polished Stone"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_stairs_stone_slab_top.png"},
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1, material_stone=1},
@ -293,7 +277,6 @@ minetest.register_node("mcl_core:stone_smooth", {
minetest.register_node("mcl_core:granite", {
description = S("Granite"),
_doc_items_longdesc = S("Granite is an igneous rock."),
tiles = {"mcl_core_granite.png"},
is_ground_content = true,
stack_max = 64,
@ -305,7 +288,6 @@ minetest.register_node("mcl_core:granite", {
minetest.register_node("mcl_core:granite_smooth", {
description = S("Polished Granite"),
_doc_items_longdesc = S("Polished granite is a decorative building block made from granite."),
tiles = {"mcl_core_granite_smooth.png"},
stack_max = 64,
is_ground_content = false,
@ -317,7 +299,6 @@ minetest.register_node("mcl_core:granite_smooth", {
minetest.register_node("mcl_core:andesite", {
description = S("Andesite"),
_doc_items_longdesc = S("Andesite is an igneous rock."),
tiles = {"mcl_core_andesite.png"},
is_ground_content = true,
stack_max = 64,
@ -329,7 +310,6 @@ minetest.register_node("mcl_core:andesite", {
minetest.register_node("mcl_core:andesite_smooth", {
description = S("Polished Andesite"),
_doc_items_longdesc = S("Polished andesite is a decorative building block made from andesite."),
tiles = {"mcl_core_andesite_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -341,7 +321,6 @@ minetest.register_node("mcl_core:andesite_smooth", {
minetest.register_node("mcl_core:diorite", {
description = S("Diorite"),
_doc_items_longdesc = S("Diorite is an igneous rock."),
tiles = {"mcl_core_diorite.png"},
is_ground_content = true,
stack_max = 64,
@ -353,7 +332,6 @@ minetest.register_node("mcl_core:diorite", {
minetest.register_node("mcl_core:diorite_smooth", {
description = S("Polished Diorite"),
_doc_items_longdesc = S("Polished diorite is a decorative building block made from diorite."),
tiles = {"mcl_core_diorite_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -366,8 +344,6 @@ minetest.register_node("mcl_core:diorite_smooth", {
-- Grass Block
minetest.register_node("mcl_core:dirt_with_grass", {
description = S("Grass Block"),
_doc_items_longdesc = S("A grass block is dirt with a grass cover. Grass blocks are resourceful blocks which allow the growth of all sorts of plants. They can be turned into farmland with a hoe and turned into grass paths with a shovel. In light, the grass slowly spreads onto dirt nearby. Under an opaque block or a liquid, a grass block may turn back to dirt."),
_doc_items_hidden = false,
paramtype2 = "color",
tiles = {"mcl_core_grass_block_top.png", { name="default_dirt.png", color="white" }, { name="default_dirt.png^mcl_dirt_grass_shadow.png", color="white" }},
overlay_tiles = {"mcl_core_grass_block_top.png", "blank.png", {name="mcl_core_grass_block_side_overlay.png", tileable_vertical=false}},
@ -406,7 +382,6 @@ mcl_core.register_snowed_node("mcl_core:dirt_with_grass_snow", "mcl_core:dirt_wi
minetest.register_node("mcl_core:grass_path", {
tiles = {"mcl_core_grass_path_top.png", "default_dirt.png", "mcl_core_grass_path_side.png"},
description = S("Grass Path"),
_doc_items_longdesc = S("Grass paths are a decorative variant of grass blocks. Their top has a different color and they are a bit lower than grass blocks, making them useful to build footpaths. Grass paths can be created by right clicking with a shovel. A grass path turns into dirt when it is below a solid block or when shift+right clicked with a shovel."),
drop = "mcl_core:dirt",
is_ground_content = true,
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or false,
@ -430,7 +405,6 @@ minetest.register_node("mcl_core:grass_path", {
-- TODO: Add particles
minetest.register_node("mcl_core:mycelium", {
description = S("Mycelium"),
_doc_items_longdesc = S("Mycelium is a type of dirt and the ideal soil for mushrooms. Unlike other dirt-type blocks, it can not be turned into farmland with a hoe. In light, mycelium slowly spreads over nearby dirt. Under an opaque block or a liquid, it eventually turns back into dirt."),
tiles = {"mcl_core_mycelium_top.png", "default_dirt.png", {name="mcl_core_mycelium_side.png", tileable_vertical=false}},
is_ground_content = true,
stack_max = 64,
@ -488,7 +462,6 @@ minetest.register_abm({
minetest.register_node("mcl_core:podzol", {
description = S("Podzol"),
_doc_items_longdesc = S("Podzol is a type of dirt found in taiga forests. Only a few plants are able to survive on it."),
tiles = {"mcl_core_dirt_podzol_top.png", "default_dirt.png", {name="mcl_core_dirt_podzol_side.png", tileable_vertical=false}},
is_ground_content = true,
stack_max = 64,
@ -505,8 +478,6 @@ mcl_core.register_snowed_node("mcl_core:podzol_snow", "mcl_core:podzol", nil, ni
minetest.register_node("mcl_core:dirt", {
description = S("Dirt"),
_doc_items_longdesc = S("Dirt acts as a soil for a few plants. When in light, this block may grow a grass or mycelium cover if such blocks are nearby."),
_doc_items_hidden = false,
tiles = {"default_dirt.png"},
is_ground_content = true,
stack_max = 64,
@ -518,7 +489,6 @@ minetest.register_node("mcl_core:dirt", {
minetest.register_node("mcl_core:coarse_dirt", {
description = S("Coarse Dirt"),
_doc_items_longdesc = S("Coarse dirt acts as a soil for some plants and is similar to dirt, but it will never grow a cover."),
tiles = {"mcl_core_coarse_dirt.png"},
is_ground_content = true,
stack_max = 64,
@ -530,7 +500,6 @@ minetest.register_node("mcl_core:coarse_dirt", {
minetest.register_node("mcl_core:gravel", {
description = S("Gravel"),
_doc_items_longdesc = S("This block consists of a couple of loose stones and can't support itself."),
tiles = {"default_gravel.png"},
is_ground_content = true,
stack_max = 64,
@ -568,8 +537,6 @@ minetest.register_node("mcl_core:gravel", {
-- sandstone --
minetest.register_node("mcl_core:sand", {
description = S("Sand"),
_doc_items_longdesc = S("Sand is found in large quantities at beaches and deserts."),
_doc_items_hidden = false,
tiles = {"default_sand.png"},
is_ground_content = true,
stack_max = 64,
@ -581,8 +548,6 @@ minetest.register_node("mcl_core:sand", {
minetest.register_node("mcl_core:sandstone", {
description = S("Sandstone"),
_doc_items_hidden = false,
_doc_items_longdesc = S("Sandstone is compressed sand and is a rather soft kind of stone."),
tiles = {"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_normal.png"},
is_ground_content = true,
stack_max = 64,
@ -594,7 +559,6 @@ minetest.register_node("mcl_core:sandstone", {
minetest.register_node("mcl_core:sandstonesmooth", {
description = S("Cut Sandstone"),
_doc_items_longdesc = S("Cut sandstone is a decorative building block."),
tiles = {"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -606,7 +570,6 @@ minetest.register_node("mcl_core:sandstonesmooth", {
minetest.register_node("mcl_core:sandstonecarved", {
description = S("Chiseled Sandstone"),
_doc_items_longdesc = S("Chiseled sandstone is a decorative building block."),
tiles = {"mcl_core_sandstone_top.png", "mcl_core_sandstone_bottom.png", "mcl_core_sandstone_carved.png"},
is_ground_content = false,
stack_max = 64,
@ -618,8 +581,6 @@ minetest.register_node("mcl_core:sandstonecarved", {
minetest.register_node("mcl_core:sandstonesmooth2", {
description = S("Smooth Sandstone"),
_doc_items_hidden = false,
_doc_items_longdesc = S("Smooth sandstone is compressed sand and is a rather soft kind of stone."),
tiles = {"mcl_core_sandstone_top.png"},
is_ground_content = false,
stack_max = 64,
@ -633,7 +594,6 @@ minetest.register_node("mcl_core:sandstonesmooth2", {
minetest.register_node("mcl_core:redsand", {
description = S("Red Sand"),
_doc_items_longdesc = S("Red sand is found in large quantities in mesa biomes."),
tiles = {"mcl_core_red_sand.png"},
is_ground_content = true,
stack_max = 64,
@ -645,7 +605,6 @@ minetest.register_node("mcl_core:redsand", {
minetest.register_node("mcl_core:redsandstone", {
description = S("Red Sandstone"),
_doc_items_longdesc = S("Red sandstone is compressed red sand and is a rather soft kind of stone."),
tiles = {"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_normal.png"},
is_ground_content = true,
stack_max = 64,
@ -657,7 +616,6 @@ minetest.register_node("mcl_core:redsandstone", {
minetest.register_node("mcl_core:redsandstonesmooth", {
description = S("Cut Red Sandstone"),
_doc_items_longdesc = S("Cut red sandstone is a decorative building block."),
tiles = {"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -669,7 +627,6 @@ minetest.register_node("mcl_core:redsandstonesmooth", {
minetest.register_node("mcl_core:redsandstonecarved", {
description = S("Chiseled Red Sandstone"),
_doc_items_longdesc = S("Chiseled red sandstone is a decorative building block."),
tiles = {"mcl_core_red_sandstone_top.png", "mcl_core_red_sandstone_bottom.png", "mcl_core_red_sandstone_carved.png"},
is_ground_content = false,
stack_max = 64,
@ -681,7 +638,6 @@ minetest.register_node("mcl_core:redsandstonecarved", {
minetest.register_node("mcl_core:redsandstonesmooth2", {
description = S("Smooth Red Sandstone"),
_doc_items_longdesc = S("Smooth red sandstone is a decorative building block."),
tiles = {"mcl_core_red_sandstone_top.png"},
is_ground_content = false,
stack_max = 64,
@ -695,8 +651,6 @@ minetest.register_node("mcl_core:redsandstonesmooth2", {
minetest.register_node("mcl_core:clay", {
description = S("Clay"),
_doc_items_longdesc = S("Clay is a versatile kind of earth commonly found at beaches underwater."),
_doc_items_hidden = false,
tiles = {"default_clay.png"},
is_ground_content = true,
stack_max = 64,
@ -711,7 +665,6 @@ minetest.register_node("mcl_core:clay", {
minetest.register_node("mcl_core:brick_block", {
-- Original name: “Bricks”
description = S("Brick Block"),
_doc_items_longdesc = S("Brick blocks are a good building material for building solid houses and can take quite a punch."),
tiles = {"default_brick.png"},
is_ground_content = false,
stack_max = 64,
@ -724,8 +677,6 @@ minetest.register_node("mcl_core:brick_block", {
minetest.register_node("mcl_core:bedrock", {
description = S("Bedrock"),
_doc_items_longdesc = S("Bedrock is a very hard type of rock. It can not be broken, destroyed, collected or moved by normal means, unless in Creative Mode.").."\n"..
S("In the End dimension, starting a fire on this block will create an eternal fire."),
tiles = {"mcl_core_bedrock.png"},
stack_max = 64,
groups = {creative_breakable=1, building_block=1, material_stone=1},
@ -763,8 +714,6 @@ minetest.register_node("mcl_core:bedrock", {
minetest.register_node("mcl_core:cobble", {
description = S("Cobblestone"),
_doc_items_longdesc = doc.sub.items.temp.build,
_doc_items_hidden = false,
tiles = {"default_cobble.png"},
is_ground_content = false,
stack_max = 64,
@ -776,7 +725,6 @@ minetest.register_node("mcl_core:cobble", {
minetest.register_node("mcl_core:mossycobble", {
description = S("Mossy Cobblestone"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"default_mossycobble.png"},
is_ground_content = false,
stack_max = 64,
@ -788,7 +736,6 @@ minetest.register_node("mcl_core:mossycobble", {
minetest.register_node("mcl_core:coalblock", {
description = S("Block of Coal"),
_doc_items_longdesc = S("Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal."),
tiles = {"default_coal_block.png"},
is_ground_content = false,
stack_max = 64,
@ -800,7 +747,6 @@ minetest.register_node("mcl_core:coalblock", {
minetest.register_node("mcl_core:ironblock", {
description = S("Block of Iron"),
_doc_items_longdesc = S("A block of iron is mostly a decorative block but also useful as a compact storage of iron ingots."),
tiles = {"default_steel_block.png"},
is_ground_content = false,
stack_max = 64,
@ -812,7 +758,6 @@ minetest.register_node("mcl_core:ironblock", {
minetest.register_node("mcl_core:goldblock", {
description = S("Block of Gold"),
_doc_items_longdesc = S("A block of gold is mostly a shiny decorative block but also useful as a compact storage of gold ingots."),
tiles = {"default_gold_block.png"},
is_ground_content = false,
stack_max = 64,
@ -824,7 +769,6 @@ minetest.register_node("mcl_core:goldblock", {
minetest.register_node("mcl_core:diamondblock", {
description = S("Block of Diamond"),
_doc_items_longdesc = S("A block of diamond is mostly a shiny decorative block but also useful as a compact storage of diamonds."),
tiles = {"default_diamond_block.png"},
is_ground_content = false,
stack_max = 64,
@ -836,7 +780,6 @@ minetest.register_node("mcl_core:diamondblock", {
minetest.register_node("mcl_core:lapisblock", {
description = S("Lapis Lazuli Block"),
_doc_items_longdesc = S("A lapis lazuli block is mostly a decorative block but also useful as a compact storage of lapis lazuli."),
tiles = {"mcl_core_lapis_block.png"},
is_ground_content = false,
stack_max = 64,
@ -848,7 +791,6 @@ minetest.register_node("mcl_core:lapisblock", {
minetest.register_node("mcl_core:emeraldblock", {
description = S("Block of Emerald"),
_doc_items_longdesc = S("A block of emerald is mostly a shiny decorative block but also useful as a compact storage of emeralds."),
tiles = {"mcl_core_emerald_block.png"},
is_ground_content = false,
stack_max = 64,
@ -860,7 +802,6 @@ minetest.register_node("mcl_core:emeraldblock", {
minetest.register_node("mcl_core:obsidian", {
description = S("Obsidian"),
_doc_items_longdesc = S("Obsidian is an extremely hard mineral with an enourmous blast-resistance. Obsidian is formed when water meets lava."),
tiles = {"default_obsidian.png"},
is_ground_content = false,
sounds = mcl_sounds.node_sound_stone_defaults(),
@ -877,7 +818,6 @@ minetest.register_node("mcl_core:obsidian", {
minetest.register_node("mcl_core:crying_obsidian", {
description = S("Crying Obsidian"),
_doc_items_longdesc = S("Crying obsidian is a luminous obsidian that can generate as part of ruined portals."),
tiles = {"default_obsidian.png^mcl_core_crying_obsidian.png"},
is_ground_content = false,
light_source = 10,
@ -890,7 +830,6 @@ minetest.register_node("mcl_core:crying_obsidian", {
minetest.register_node("mcl_core:ice", {
description = S("Ice"),
_doc_items_longdesc = S("Ice is a solid block usually found in cold areas. It melts near block light sources at a light level of 12 or higher. When it melts or is broken while resting on top of another block, it will turn into a water source."),
drawtype = ice_drawtype,
tiles = {"default_ice.png"},
is_ground_content = true,
@ -911,7 +850,6 @@ minetest.register_node("mcl_core:ice", {
minetest.register_node("mcl_core:packed_ice", {
description = S("Packed Ice"),
_doc_items_longdesc = S("Packed ice is a compressed form of ice. It is opaque and solid."),
tiles = {"mcl_core_ice_packed.png"},
is_ground_content = true,
stack_max = 64,
@ -955,8 +893,6 @@ for i=0,3 do
end
minetest.register_node("mcl_core:frosted_ice_"..i, {
description = S("Frosted Ice"),
_doc_items_create_entry = use_doc,
_doc_items_longdesc = longdesc,
drawtype = ice_drawtype,
tiles = {"mcl_core_frosted_ice_"..i..".png"},
is_ground_content = false,
@ -986,11 +922,6 @@ for i=0,3 do
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
-- Add entry aliases for the Help
if minetest.get_modpath("doc") and i > 0 then
doc.add_entry_alias("nodes", "mcl_core:frosted_ice_0", "nodes", "mcl_core:frosted_ice_"..i)
end
end
for i=1,8 do
@ -998,9 +929,6 @@ for i=1,8 do
if i == 1 then
id = "mcl_core:snow"
desc = S("Top Snow")
tt_help = S("Stackable")
longdesc = S("Top snow is a layer of snow. It melts near light sources other than the sun with a light level of 12 or higher.").."\n"..S("Top snow can be stacked and has one of 8 different height levels. At levels 2-8, top snow is collidable. Top snow drops 2-9 snowballs, depending on its height.")
usagehelp = S("This block can only be placed on full solid blocks and on another top snow (which increases its height).")
walkable = false
else
id = "mcl_core:snow_"..i
@ -1072,11 +1000,6 @@ for i=1,8 do
minetest.register_node(id, {
description = desc,
_tt_help = tt_help,
_doc_items_longdesc = longdesc,
_doc_items_usagehelp = usagehelp,
_doc_items_create_entry = help,
_doc_items_hidden = false,
tiles = {"default_snow.png"},
wield_image = "default_snow.png",
wield_scale = { x=1, y=1, z=i },
@ -1109,8 +1032,6 @@ end
minetest.register_node("mcl_core:snowblock", {
description = S("Snow"),
_doc_items_longdesc = S("This is a full block of snow. Snow of this thickness is usually found in areas of extreme cold."),
_doc_items_hidden = false,
tiles = {"default_snow.png"},
is_ground_content = true,
stack_max = 64,
@ -1123,23 +1044,3 @@ minetest.register_node("mcl_core:snowblock", {
_mcl_hardness = 0.1,
_mcl_silk_touch_drop = true,
})
-- Stonecutter recipes
mcl_stonecutter.register_recipe("mcl_core:stone", "mcl_core:stonebrick")
mcl_stonecutter.register_recipe("mcl_core:stone", "mcl_core:stonebrickcarved")
mcl_stonecutter.register_recipe("mcl_core:stonebrick", "mcl_core:stonebrickcarved")
mcl_stonecutter.register_recipe("mcl_core:granite", "mcl_core:granite_smooth")
mcl_stonecutter.register_recipe("mcl_core:andesite", "mcl_core:andesite_smooth")
mcl_stonecutter.register_recipe("mcl_core:diorite", "mcl_core:diorite_smooth")
mcl_stonecutter.register_recipe("mcl_core:sandstone", "mcl_core:sandstonesmooth")
mcl_stonecutter.register_recipe("mcl_core:sandstone", "mcl_core:sandstonecarved")
mcl_stonecutter.register_recipe("mcl_core:redsandstone", "mcl_core:redsandstonesmooth")
mcl_stonecutter.register_recipe("mcl_core:redsandstone", "mcl_core:redsandstonecarved")
-- Add entry aliases for the Help
if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_core:stone_with_redstone", "nodes", "mcl_core:stone_with_redstone_lit")
doc.add_entry_alias("nodes", "mcl_core:water_source", "nodes", "mcl_core:water_flowing")
doc.add_entry_alias("nodes", "mcl_core:lava_source", "nodes", "mcl_core:lava_flowing")
end

View File

@ -4,9 +4,6 @@ local S = minetest.get_translator(minetest.get_current_modname())
minetest.register_node("mcl_core:cactus", {
description = S("Cactus"),
_tt_help = S("Grows on sand").."\n"..minetest.colorize(mcl_colors.YELLOW, S("Contact damage: @1 per half second", 1)),
_doc_items_longdesc = S("This is a piece of cactus commonly found in dry areas, especially deserts. Over time, cacti will grow up to 3 blocks high on sand or red sand. A cactus hurts living beings touching it with a damage of 1 HP every half second. When a cactus block is broken, all cactus blocks connected above it will break as well."),
_doc_items_usagehelp = S("A cactus can only be placed on top of another cactus or any sand."),
drawtype = "nodebox",
use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or true,
tiles = {"mcl_core_cactus_top.png", "mcl_core_cactus_bottom.png", "mcl_core_cactus_side.png"},
@ -52,9 +49,6 @@ minetest.register_node("mcl_core:cactus", {
minetest.register_node("mcl_core:reeds", {
description = S("Sugar Canes"),
_tt_help = S("Grows on sand or dirt next to water"),
_doc_items_longdesc = S("Sugar canes are a plant which has some uses in crafting. Sugar canes will slowly grow up to 3 blocks when they are next to water and are placed on a grass block, dirt, sand, red sand, podzol or coarse dirt. When a sugar cane is broken, all sugar canes connected above will break as well."),
_doc_items_usagehelp = S("Sugar canes can only be placed top of other sugar canes and on top of blocks on which they would grow."),
drawtype = "plantlike",
paramtype2 = "color",
tiles = {"mcl_core_papyrus.png"},
@ -135,4 +129,4 @@ minetest.register_node("mcl_core:reeds", {
end,
_mcl_blast_resistance = 0,
_mcl_hardness = 0,
})
})

View File

@ -39,8 +39,6 @@ end
-- TODO: Move ladders into their own API.
minetest.register_node("mcl_core:ladder", {
description = S("Ladder"),
_doc_items_longdesc = S(
"A piece of ladder which allows you to climb vertically. Ladders can only be placed on the side of solid blocks and not on glass, leaves, ice, slabs, glowstone, nor sea lanterns."),
drawtype = "signlike",
is_ground_content = false,
tiles = { "default_ladder.png" },
@ -128,8 +126,6 @@ minetest.register_node("mcl_core:ladder", {
minetest.register_node("mcl_core:vine", {
description = S("Vines"),
_doc_items_longdesc = S(
"Vines are climbable blocks which can be placed on the sides of solid full-cube blocks. Vines slowly grow and spread."),
drawtype = "signlike",
tiles = { "mcl_core_vine.png" },
color = "#48B518",

View File

@ -4,7 +4,6 @@ local mod_doc = minetest.get_modpath("doc")
minetest.register_node("mcl_core:glass", {
description = S("Glass"),
_doc_items_longdesc = S("A decorative and mostly transparent block."),
drawtype = "glasslike_framed_optional",
is_ground_content = false,
tiles = {"default_glass.png", "default_glass_detail.png"},
@ -23,23 +22,10 @@ minetest.register_node("mcl_core:glass", {
------------------------
-- Create Color Glass --
------------------------
local canonical_color = "yellow"
function mcl_core.add_stained_glass(desc, recipeitem, colorgroup, color)
local longdesc, create_entry, entry_name
if mod_doc then
if color == canonical_color then
longdesc = S("Stained glass is a decorative and mostly transparent block which comes in various different colors.")
entry_name = S("Stained Glass")
else
create_entry = false
end
end
function mcl_core.add_stained_glass(desc, recipeitem, colorgroup, color)
minetest.register_node("mcl_core:glass_"..color, {
description = desc,
_doc_items_create_entry = create_entry,
_doc_items_entry_name = entry_name,
_doc_items_longdesc = longdesc,
drawtype = "glasslike_framed_optional",
is_ground_content = false,
tiles = {"mcl_core_glass_"..color..".png", "mcl_core_glass_"..color.."_detail.png"},
@ -65,11 +51,6 @@ function mcl_core.add_stained_glass(desc, recipeitem, colorgroup, color)
{"mcl_core:glass","mcl_core:glass","mcl_core:glass"},
}
})
if mod_doc and color ~= canonical_color then
doc.add_entry_alias("nodes", "mcl_core:glass_"..canonical_color, "nodes", "mcl_core:glass_"..color)
end
end
---- colored glass

View File

@ -17,7 +17,6 @@ end
minetest.register_node("mcl_core:water_flowing", {
description = S("Flowing Water"),
_doc_items_create_entry = false,
wield_image = "mcl_core_water_flow_animation.png^[verticalframe:64:0",
drawtype = "flowingliquid",
tiles = {"mcl_core_water_flow_animation.png^[verticalframe:64:0"},
@ -60,14 +59,6 @@ minetest.register_node("mcl_core:water_flowing", {
minetest.register_node("mcl_core:water_source", {
description = S("Water Source"),
_doc_items_entry_name = S("Water"),
_doc_items_longdesc =
S("Water is abundant in oceans and also appears in a few springs in the ground. You can swim easily in water, but you need to catch your breath from time to time.").."\n\n"..
S("Water interacts with lava in various ways:").."\n"..
S("• When water is directly above or horizontally next to a lava source, the lava turns into obsidian.").."\n"..
S("• When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.").."\n"..
S("• When water is directly below lava, the water turns into stone."),
_doc_items_hidden = false,
drawtype = "liquid",
waving = 3,
tiles = {
@ -118,7 +109,6 @@ S("• When water is directly below lava, the water turns into stone."),
minetest.register_node("mcl_core:lava_flowing", {
description = S("Flowing Lava"),
_doc_items_create_entry = false,
wield_image = "mcl_core_lava_flow_animation.png^[verticalframe:64:0",
drawtype = "flowingliquid",
tiles = {"mcl_core_lava_flow_animation.png^[verticalframe:64:0"},
@ -172,14 +162,6 @@ end
minetest.register_node("mcl_core:lava_source", {
description = S("Lava Source"),
_doc_items_entry_name = "Lava",
_doc_items_longdesc =
S("Lava is hot and rather dangerous. Don't touch it, it will hurt you a lot and it is hard to get out.").."\n"..
fire_text.."\n\n"..
S("Lava interacts with water various ways:").."\n"..
S("• When a lava source is directly below or horizontally next to water, the lava turns into obsidian.").."\n"..
S("• When flowing water touches flowing lava either from above or horizontally, the lava turns into cobblestone.").."\n"..
S("• When lava is directly above water, the water turns into stone."),
drawtype = "liquid",
tiles = {
{name="mcl_core_lava_source_animation.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}

View File

@ -19,7 +19,6 @@ local alldirs = {
minetest.register_node("mcl_core:bone_block", {
description = S("Bone Block"),
_doc_items_longdesc = S("Bone blocks are decorative blocks and a compact storage of bone meal."),
tiles = {"mcl_core_bone_block_top.png", "mcl_core_bone_block_top.png", "mcl_core_bone_block_side.png"},
is_ground_content = false,
paramtype2 = "facedir",
@ -33,7 +32,6 @@ minetest.register_node("mcl_core:bone_block", {
minetest.register_node("mcl_core:slimeblock", {
description = S("Slime Block"),
_doc_items_longdesc = S("Slime blocks are very bouncy and prevent fall damage."),
drawtype = "nodebox",
paramtype = "light",
is_ground_content = false,
@ -100,8 +98,6 @@ minetest.register_node("mcl_core:slimeblock", {
minetest.register_node("mcl_core:cobweb", {
description = S("Cobweb"),
_tt_help = S("Slows down movement"),
_doc_items_longdesc = S("Cobwebs can be walked through, but significantly slow you down."),
drawtype = "plantlike",
paramtype2 = "degrotate",
visual_scale = 1.1,
@ -127,8 +123,6 @@ minetest.register_node("mcl_core:cobweb", {
minetest.register_node("mcl_core:deadbush", {
description = S("Dead Bush"),
_doc_items_longdesc = S("Dead bushes are unremarkable plants often found in dry areas. They can be harvested for sticks."),
_doc_items_hidden = false,
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -172,8 +166,6 @@ minetest.register_craft({
minetest.register_node("mcl_core:barrier", {
description = S("Barrier"),
_doc_items_longdesc = S("Barriers are invisible walkable blocks. They are used to create boundaries of adventure maps and the like. Monsters and animals won't appear on barriers, and fences do not connect to barriers. Other blocks can be built on barriers like on any other block."),
_doc_items_usagehelp = S("When you hold a barrier in hand, you reveal all placed barriers in a short distance around you."),
drawtype = "airlike",
paramtype = "light",
inventory_image = "mcl_core_barrier.png",
@ -227,7 +219,6 @@ minetest.register_node("mcl_core:barrier", {
-- be removed when support for this is implemented.
minetest.register_node("mcl_core:realm_barrier", {
description = S("Realm Barrier"),
_doc_items_create_entry = false,
drawtype = "airlike",
paramtype = "light",
inventory_image = "mcl_core_barrier.png^[colorize:#FF00FF:127^[transformFX",
@ -264,8 +255,6 @@ local light_block_pattern = "^mcl_core:light_(%d+)$"
for i = 0, 14 do --minetest.LIGHT_MAX
minetest.register_node("mcl_core:light_" .. i, {
description = S("Light"),
_doc_items_longdesc = S("Lights are invisible blocks. They are used to light up adventure maps and the like."),
_doc_items_usagehelp = S("When you hold a light in hand, you reveal all placed lights in a short distance around you."),
drawtype = "airlike",
paramtype = "light",
walkable = false,
@ -317,7 +306,6 @@ end
-- block here to make things easier for us.
minetest.register_node("mcl_core:void", {
description = S("Void"),
_doc_items_create_entry = false,
drawtype = "airlike",
paramtype = "light",
pointable = false,

View File

@ -55,8 +55,6 @@ function mcl_core.register_tree_trunk(subname, description_trunk, description_ba
local mod = minetest.get_current_modname()
minetest.register_node(mod..":"..subname, {
description = description_trunk,
_doc_items_longdesc = longdesc,
_doc_items_hidden = false,
tiles = {tile_inner, tile_inner, tile_bark},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
@ -72,7 +70,6 @@ function mcl_core.register_tree_trunk(subname, description_trunk, description_ba
minetest.register_node(mod..":"..subname.."_bark", {
description = description_bark,
_doc_items_longdesc = S("This is a decorative block surrounded by the bark of a tree trunk."),
tiles = {tile_bark},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
@ -100,8 +97,6 @@ function mcl_core.register_stripped_trunk(subname, description_stripped_trunk, d
local mod = minetest.get_current_modname()
minetest.register_node(mod..":"..subname, {
description = description_stripped_trunk,
_doc_items_longdesc = longdesc,
_doc_items_hidden = false,
tiles = {tile_stripped_inner, tile_stripped_inner, tile_stripped_bark},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
@ -115,7 +110,6 @@ function mcl_core.register_stripped_trunk(subname, description_stripped_trunk, d
minetest.register_node(mod..":"..subname.."_bark", {
description = description_stripped_bark,
_doc_items_longdesc = longdesc_wood,
tiles = {tile_stripped_bark},
paramtype2 = "facedir",
on_place = mcl_util.rotate_axis,
@ -141,8 +135,6 @@ function mcl_core.register_wooden_planks(subname, description, tiles)
local mod = minetest.get_current_modname()
minetest.register_node(mod..":"..subname, {
description = description,
_doc_items_longdesc = doc.sub.items.temp.build,
_doc_items_hidden = false,
tiles = tiles,
stack_max = 64,
is_ground_content = false,
@ -187,8 +179,6 @@ function mcl_core.register_leaves(subname, description, longdesc, tiles, color,
local l_def = {
description = description,
_doc_items_longdesc = longdesc,
_doc_items_hidden = false,
drawtype = "allfaces_optional",
waving = 2,
tiles = tiles,
@ -226,7 +216,6 @@ function mcl_core.register_leaves(subname, description, longdesc, tiles, color,
minetest.register_node(mod .. ":" .. subname, l_def)
local o_def = table.copy(l_def)
o_def._doc_items_create_entry = false
o_def.groups.not_in_creative_inventory = 1
o_def.groups.orphan_leaves = 1
o_def._mcl_shears_drop = {mod .. ":" .. subname}
@ -245,9 +234,6 @@ function mcl_core.register_sapling(subname, description, longdesc, tt_help, text
minetest.register_node(mod..":"..subname, {
description = description,
_tt_help = tt_help,
_doc_items_longdesc = longdesc,
_doc_items_hidden = false,
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,

View File

@ -553,8 +553,6 @@ end
minetest.register_node(PORTAL, {
description = S("Nether Portal"),
_doc_items_longdesc = S("A Nether portal teleports creatures and objects to the hot and dangerous Nether dimension (and back!). Enter at your own risk!"),
_doc_items_usagehelp = S("Stand in the portal for a moment to activate the teleportation. Entering a Nether portal for the first time will also create a new portal in the other dimension. If a Nether portal has been built in the Nether, it will lead to the Overworld. A Nether portal is destroyed if the any of the obsidian which surrounds it is destroyed, or if it was caught in an explosion."),
tiles = {
"blank.png",
@ -1546,15 +1544,7 @@ minetest.register_abm({
})
--[[ ITEM OVERRIDES ]]
local longdesc = registered_nodes[OBSIDIAN]._doc_items_longdesc
longdesc = longdesc .. "\n" .. S("Obsidian is also used as the frame of Nether portals.")
local usagehelp = S("To open a Nether portal, place an upright frame of obsidian with a width of at least 4 blocks and a height of 5 blocks, leaving only air in the center. After placing this frame, light a fire in the obsidian frame. Nether portals only work in the Overworld and the Nether.")
minetest.override_item(OBSIDIAN, {
_doc_items_longdesc = longdesc,
_doc_items_usagehelp = usagehelp,
on_destruct = function(pos, node)
-- Permit extinguishing of protected portals if the frame is
-- sticking out of the protected area to maintain integrity.