New translation system, part 6: Items, part 2

This commit is contained in:
Wuzzy 2019-03-07 23:40:43 +01:00
parent 1df3d0e42b
commit e4fbbeddb2
15 changed files with 306 additions and 280 deletions

View file

@ -1,8 +1,10 @@
local S = minetest.get_translator("mcl_core")
-- Simple solid cubic nodes, most of them are the ground materials and simple building blocks
minetest.register_node("mcl_core:stone", {
description = "Stone",
_doc_items_longdesc = "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.",
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,
@ -15,8 +17,8 @@ minetest.register_node("mcl_core:stone", {
})
minetest.register_node("mcl_core:stone_with_coal", {
description = "Coal Ore",
_doc_items_longdesc = "Some coal contained in stone, it is very common and can be found inside stone in medium to large clusters at nearly every height.",
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,
@ -29,8 +31,8 @@ minetest.register_node("mcl_core:stone_with_coal", {
})
minetest.register_node("mcl_core:stone_with_iron", {
description = "Iron Ore",
_doc_items_longdesc = "Some iron contained in stone, it is prety common and can be found below sea level.",
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,
@ -43,8 +45,8 @@ minetest.register_node("mcl_core:stone_with_iron", {
minetest.register_node("mcl_core:stone_with_gold", {
description = "Gold Ore",
_doc_items_longdesc = "This stone contains pure gold, a rare metal.",
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,
@ -62,8 +64,8 @@ local redstone_ore_activate = function(pos)
t:start(redstone_timer)
end
minetest.register_node("mcl_core:stone_with_redstone", {
description = "Redstone Ore",
_doc_items_longdesc = "Redstone ore is commonly found near the bottom of the world. It glows when it is punched or walked upon.",
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,
@ -93,7 +95,7 @@ local redstone_ore_reactivate = function(pos)
end
-- Light the redstone ore up when it has been touched
minetest.register_node("mcl_core:stone_with_redstone_lit", {
description = "Lit Redstone Ore",
description = S("Lit Redstone Ore"),
_doc_items_create_entry = false,
tiles = {"mcl_core_redstone_ore.png"},
paramtype = "light",
@ -126,8 +128,8 @@ minetest.register_node("mcl_core:stone_with_redstone_lit", {
})
minetest.register_node("mcl_core:stone_with_lapis", {
description = "Lapis Lazuli Ore",
_doc_items_longdesc = "Lapis lazuli ore is the ore of lapis lazuli. It can be rarely found in clusters near the bottom of the world.",
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,
@ -148,8 +150,8 @@ minetest.register_node("mcl_core:stone_with_lapis", {
})
minetest.register_node("mcl_core:stone_with_emerald", {
description = "Emerald Ore",
_doc_items_longdesc = "Emerald ore is the ore of emeralds. It is very rare and can be found alone, not in clusters.",
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,
@ -161,8 +163,8 @@ minetest.register_node("mcl_core:stone_with_emerald", {
})
minetest.register_node("mcl_core:stone_with_diamond", {
description = "Diamond Ore",
_doc_items_longdesc = "Diamond ore is rare and can be found in clusters near the bottom of the world.",
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,
@ -174,7 +176,7 @@ minetest.register_node("mcl_core:stone_with_diamond", {
})
minetest.register_node("mcl_core:stonebrick", {
description = "Stone Bricks",
description = S("Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"default_stone_brick.png"},
stack_max = 64,
@ -186,7 +188,7 @@ minetest.register_node("mcl_core:stonebrick", {
})
minetest.register_node("mcl_core:stonebrickcarved", {
description = "Chiseled Stone Bricks",
description = S("Chiseled Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_carved.png"},
stack_max = 64,
@ -198,7 +200,7 @@ minetest.register_node("mcl_core:stonebrickcarved", {
})
minetest.register_node("mcl_core:stonebrickcracked", {
description = "Cracked Stone Bricks",
description = S("Cracked Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_cracked.png"},
stack_max = 64,
@ -210,7 +212,7 @@ minetest.register_node("mcl_core:stonebrickcracked", {
})
minetest.register_node("mcl_core:stonebrickmossy", {
description = "Mossy Stone Bricks",
description = S("Mossy Stone Bricks"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_core_stonebrick_mossy.png"},
stack_max = 64,
@ -222,7 +224,7 @@ minetest.register_node("mcl_core:stonebrickmossy", {
})
minetest.register_node("mcl_core:stone_smooth", {
description = "Polished Stone",
description = S("Polished Stone"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"mcl_stairs_stone_slab_top.png"},
stack_max = 64,
@ -234,7 +236,7 @@ minetest.register_node("mcl_core:stone_smooth", {
})
minetest.register_node("mcl_core:granite", {
description = "Granite",
description = S("Granite"),
_doc_items_longdesc = "Granite is an igneous rock.",
tiles = {"mcl_core_granite.png"},
is_ground_content = true,
@ -246,8 +248,8 @@ minetest.register_node("mcl_core:granite", {
})
minetest.register_node("mcl_core:granite_smooth", {
description = "Polished Granite",
_doc_items_longdesc = "Polished granite is a decorational building block made from granite.",
description = S("Polished Granite"),
_doc_items_longdesc = S("Polished granite is a decorational building block made from granite."),
tiles = {"mcl_core_granite_smooth.png"},
stack_max = 64,
is_ground_content = false,
@ -258,8 +260,8 @@ minetest.register_node("mcl_core:granite_smooth", {
})
minetest.register_node("mcl_core:andesite", {
description = "Andesite",
_doc_items_longdesc = "Andesite is an igneous rock.",
description = S("Andesite"),
_doc_items_longdesc = S("Andesite is an igneous rock."),
tiles = {"mcl_core_andesite.png"},
is_ground_content = true,
stack_max = 64,
@ -270,8 +272,8 @@ minetest.register_node("mcl_core:andesite", {
})
minetest.register_node("mcl_core:andesite_smooth", {
description = "Polished Andesite",
_doc_items_longdesc = "Polished andesite is a decorational building block made from andesite.",
description = S("Polished Andesite"),
_doc_items_longdesc = S("Polished andesite is a decorational building block made from andesite."),
tiles = {"mcl_core_andesite_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -282,8 +284,8 @@ minetest.register_node("mcl_core:andesite_smooth", {
})
minetest.register_node("mcl_core:diorite", {
description = "Diorite",
_doc_items_longdesc = "Diorite is an igneous rock.",
description = S("Diorite"),
_doc_items_longdesc = S("Diorite is an igneous rock."),
tiles = {"mcl_core_diorite.png"},
is_ground_content = true,
stack_max = 64,
@ -294,8 +296,8 @@ minetest.register_node("mcl_core:diorite", {
})
minetest.register_node("mcl_core:diorite_smooth", {
description = "Polished Diorite",
_doc_items_longdesc = "Polished diorite is a decorational building block made from diorite.",
description = S("Polished Diorite"),
_doc_items_longdesc = S("Polished diorite is a decorational building block made from diorite."),
tiles = {"mcl_core_diorite_smooth.png"},
is_ground_content = false,
stack_max = 64,
@ -307,8 +309,8 @@ minetest.register_node("mcl_core:diorite_smooth", {
-- Grass Block
minetest.register_node("mcl_core:dirt_with_grass", {
description = "Grass Block",
_doc_items_longdesc = "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.",
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,
tiles = {"default_grass.png", "default_dirt.png", {name="default_dirt.png^default_grass_side.png", tileable_vertical=false}},
is_ground_content = true,
@ -367,8 +369,8 @@ end
minetest.register_node("mcl_core:grass_path", {
tiles = {"mcl_core_grass_path_top.png", "default_dirt.png", "mcl_core_grass_path_side.png"},
description = "Grass Path",
_doc_items_longdesc = "Grass paths are a decorational 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 with a shovel. A grass path turns into dirt when it is below a solid block.",
description = S("Grass Path"),
_doc_items_longdesc = S("Grass paths are a decorational 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 with a shovel. A grass path turns into dirt when it is below a solid block."),
drop = "mcl_core:dirt",
is_ground_content = true,
drawtype = "nodebox",
@ -390,8 +392,8 @@ minetest.register_node("mcl_core:grass_path", {
-- TODO: Add particles
minetest.register_node("mcl_core:mycelium", {
description = "Mycelium",
_doc_items_longdesc = "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.",
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,
@ -409,8 +411,8 @@ minetest.register_node("mcl_core:mycelium", {
mcl_core.register_snowed_node("mcl_core:mycelium_snow", "mcl_core:mycelium")
minetest.register_node("mcl_core:podzol", {
description = "Podzol",
_doc_items_longdesc = "Podzol is a type of dirt found in taiga forests. Only a few plants are able to survive on it.",
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,
@ -425,8 +427,8 @@ minetest.register_node("mcl_core:podzol", {
mcl_core.register_snowed_node("mcl_core:podzol_snow", "mcl_core:podzol")
minetest.register_node("mcl_core:dirt", {
description = "Dirt",
_doc_items_longdesc = "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.",
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,
@ -438,8 +440,8 @@ minetest.register_node("mcl_core:dirt", {
})
minetest.register_node("mcl_core:coarse_dirt", {
description = "Coarse Dirt",
_doc_items_longdesc = "Coarse dirt acts as a soil for some plants and is similar to dirt, but it will never grow a cover.",
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,
@ -450,8 +452,8 @@ minetest.register_node("mcl_core:coarse_dirt", {
})
minetest.register_node("mcl_core:gravel", {
description = "Gravel",
_doc_items_longdesc = "This block consists of a couple of loose stones and can't support itself.",
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,
@ -472,8 +474,8 @@ minetest.register_node("mcl_core:gravel", {
-- sandstone --
minetest.register_node("mcl_core:sand", {
description = "Sand",
_doc_items_longdesc = "Sand is found in large quantities at beaches and deserts.",
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,
@ -485,9 +487,9 @@ minetest.register_node("mcl_core:sand", {
})
minetest.register_node("mcl_core:sandstone", {
description = "Sandstone",
description = S("Sandstone"),
_doc_items_hidden = false,
_doc_items_longdesc = "Sandstone is compressed sand and is a rather soft kind of stone.",
_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,
@ -498,8 +500,8 @@ minetest.register_node("mcl_core:sandstone", {
})
minetest.register_node("mcl_core:sandstonesmooth", {
description = "Cut Sandstone",
_doc_items_longdesc = "Cut sandstone is a decorational building block.",
description = S("Cut Sandstone"),
_doc_items_longdesc = S("Cut sandstone is a decorational 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,
@ -510,8 +512,8 @@ minetest.register_node("mcl_core:sandstonesmooth", {
})
minetest.register_node("mcl_core:sandstonecarved", {
description = "Chiseled Sandstone",
_doc_items_longdesc = "Chiseled sandstone is a decorational building block.",
description = S("Chiseled Sandstone"),
_doc_items_longdesc = S("Chiseled sandstone is a decorational 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,
@ -522,9 +524,9 @@ minetest.register_node("mcl_core:sandstonecarved", {
})
minetest.register_node("mcl_core:sandstonesmooth2", {
description = "Smooth Sandstone",
description = S("Smooth Sandstone"),
_doc_items_hidden = false,
_doc_items_longdesc = "Smooth sandstone is compressed sand and is a rather soft kind of stone.",
_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,
@ -537,8 +539,8 @@ minetest.register_node("mcl_core:sandstonesmooth2", {
-- red sandstone --
minetest.register_node("mcl_core:redsand", {
description = "Red Sand",
_doc_items_longdesc = "Red sand is found in large quantities in mesa biomes.",
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,
@ -549,8 +551,8 @@ minetest.register_node("mcl_core:redsand", {
})
minetest.register_node("mcl_core:redsandstone", {
description = "Red Sandstone",
_doc_items_longdesc = "Red sandstone is compressed red sand and is a rather soft kind of stone.",
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,
@ -561,8 +563,8 @@ minetest.register_node("mcl_core:redsandstone", {
})
minetest.register_node("mcl_core:redsandstonesmooth", {
description = "Cut Red Sandstone",
_doc_items_longdesc = "Cut red sandstone is a decorational building block.",
description = S("Cut Red Sandstone"),
_doc_items_longdesc = S("Cut red sandstone is a decorational 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,
@ -573,8 +575,8 @@ minetest.register_node("mcl_core:redsandstonesmooth", {
})
minetest.register_node("mcl_core:redsandstonecarved", {
description = "Chiseled Red Sandstone",
_doc_items_longdesc = "Chiseled red sandstone is a decorational building block.",
description = S("Chiseled Red Sandstone"),
_doc_items_longdesc = S("Chiseled red sandstone is a decorational 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,
@ -585,8 +587,8 @@ minetest.register_node("mcl_core:redsandstonecarved", {
})
minetest.register_node("mcl_core:redsandstonesmooth2", {
description = "Smooth Red Sandstone",
_doc_items_longdesc = "Smooth red sandstone is a decorational building block.",
description = S("Smooth Red Sandstone"),
_doc_items_longdesc = S("Smooth red sandstone is a decorational building block."),
tiles = {"mcl_core_red_sandstone_top.png"},
is_ground_content = false,
stack_max = 64,
@ -599,8 +601,8 @@ minetest.register_node("mcl_core:redsandstonesmooth2", {
---
minetest.register_node("mcl_core:clay", {
description = "Clay",
_doc_items_longdesc = "Clay is a versatile kind of earth commonly found at beaches underwater.",
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,
@ -614,8 +616,8 @@ minetest.register_node("mcl_core:clay", {
minetest.register_node("mcl_core:brick_block", {
-- Original name: “Bricks”
description = "Brick Block",
_doc_items_longdesc = "Brick blocks are a good building material for building solid houses and can take quite a punch.",
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,
@ -627,9 +629,9 @@ minetest.register_node("mcl_core:brick_block", {
minetest.register_node("mcl_core:bedrock", {
description = "Bedrock",
_doc_items_longdesc = "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"..
"In the End dimension, starting a fire on this block will create an eternal fire.",
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},
@ -666,7 +668,7 @@ minetest.register_node("mcl_core:bedrock", {
})
minetest.register_node("mcl_core:cobble", {
description = "Cobblestone",
description = S("Cobblestone"),
_doc_items_longdesc = doc.sub.items.temp.build,
_doc_items_hidden = false,
tiles = {"default_cobble.png"},
@ -679,7 +681,7 @@ minetest.register_node("mcl_core:cobble", {
})
minetest.register_node("mcl_core:mossycobble", {
description = "Moss Stone",
description = S("Moss Stone"),
_doc_items_longdesc = doc.sub.items.temp.build,
tiles = {"default_mossycobble.png"},
is_ground_content = false,
@ -691,8 +693,8 @@ minetest.register_node("mcl_core:mossycobble", {
})
minetest.register_node("mcl_core:coalblock", {
description = "Block of Coal",
_doc_items_longdesc = "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.",
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,
@ -703,8 +705,8 @@ minetest.register_node("mcl_core:coalblock", {
})
minetest.register_node("mcl_core:ironblock", {
description = "Block of Iron",
_doc_items_longdesc = "A block of iron is mostly a decorational block but also useful as a compact storage of iron ingots.",
description = S("Block of Iron"),
_doc_items_longdesc = S("A block of iron is mostly a decorational block but also useful as a compact storage of iron ingots."),
tiles = {"default_steel_block.png"},
is_ground_content = false,
stack_max = 64,
@ -715,8 +717,8 @@ minetest.register_node("mcl_core:ironblock", {
})
minetest.register_node("mcl_core:goldblock", {
description = "Block of Gold",
_doc_items_longdesc = "A block of gold is mostly a shiny decorational block but also useful as a compact storage of gold ingots.",
description = S("Block of Gold"),
_doc_items_longdesc = S("A block of gold is mostly a shiny decorational block but also useful as a compact storage of gold ingots."),
tiles = {"default_gold_block.png"},
is_ground_content = false,
stack_max = 64,
@ -727,8 +729,8 @@ minetest.register_node("mcl_core:goldblock", {
})
minetest.register_node("mcl_core:diamondblock", {
description = "Block of Diamond",
_doc_items_longdesc = "A block of diamond mostly a shiny decorational block but also useful as a compact storage of diamonds.",
description = S("Block of Diamond"),
_doc_items_longdesc = S("A block of diamond mostly a shiny decorational block but also useful as a compact storage of diamonds."),
tiles = {"default_diamond_block.png"},
is_ground_content = false,
stack_max = 64,
@ -739,8 +741,8 @@ minetest.register_node("mcl_core:diamondblock", {
})
minetest.register_node("mcl_core:lapisblock", {
description = "Lapis Lazuli Block",
_doc_items_longdesc = "A lapis lazuli block is mostly a decorational block but also useful as a compact storage of lapis lazuli.",
description = S("Lapis Lazuli Block"),
_doc_items_longdesc = S("A lapis lazuli block is mostly a decorational block but also useful as a compact storage of lapis lazuli."),
tiles = {"mcl_core_lapis_block.png"},
is_ground_content = false,
stack_max = 64,
@ -751,8 +753,8 @@ minetest.register_node("mcl_core:lapisblock", {
})
minetest.register_node("mcl_core:emeraldblock", {
description = "Block of Emerald",
_doc_items_longdesc = "A block of emerald is mostly a shiny decorational block but also useful as a compact storage of emeralds.",
description = S("Block of Emerald"),
_doc_items_longdesc = S("A block of emerald is mostly a shiny decorational block but also useful as a compact storage of emeralds."),
tiles = {"mcl_core_emerald_block.png"},
is_ground_content = false,
stack_max = 64,
@ -763,8 +765,8 @@ minetest.register_node("mcl_core:emeraldblock", {
})
minetest.register_node("mcl_core:obsidian", {
description = "Obsidian",
_doc_items_longdesc = "Obsidian is an extremely hard mineral with an enourmous blast-resistance. Obsidian is formed when water meets lava.",
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 = true,
sounds = mcl_sounds.node_sound_stone_defaults(),
@ -775,8 +777,8 @@ minetest.register_node("mcl_core:obsidian", {
})
minetest.register_node("mcl_core:ice", {
description = "Ice",
_doc_items_longdesc = "Ice is a translucent 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.",
description = S("Ice"),
_doc_items_longdesc = S("Ice is a translucent 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 = "glasslike",
tiles = {"default_ice.png"},
is_ground_content = true,
@ -800,8 +802,8 @@ minetest.register_node("mcl_core:ice", {
})
minetest.register_node("mcl_core:packed_ice", {
description = "Packed Ice",
_doc_items_longdesc = "Packed ice is a compressed form of ice. It is opaque and solid.",
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,
@ -840,10 +842,10 @@ for i=0,3 do
local use_doc = i == 0
local longdesc
if use_doc then
longdesc = "Frosted ice is a short-lived solid translucent block. It melts into a water source within a few seconds."
longdesc = S("Frosted ice is a short-lived solid translucent block. It melts into a water source within a few seconds.")
end
minetest.register_node("mcl_core:frosted_ice_"..i, {
description = "Frosted Ice",
description = S("Frosted Ice"),
_doc_items_create_entry = use_doc,
_doc_items_longdesc = longdesc,
drawtype = "glasslike",
@ -886,8 +888,8 @@ for i=1,8 do
local id, desc, longdesc, usagehelp, help, walkable, drawtype, node_box
if i == 1 then
id = "mcl_core:snow"
desc = "Top Snow"
longdesc = "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".."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."
desc = S("Top Snow")
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".."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 = "This block can only be placed on full solid blocks and on another top snow (which increases its height)."
walkable = false
else
@ -995,8 +997,8 @@ for i=1,8 do
end
minetest.register_node("mcl_core:snowblock", {
description = "Snow",
_doc_items_longdesc = "This is a full block of snow. Snow of this thickness is usually found in areas of extreme cold.",
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,