Consistent writing style of item descriptions

- Fix capitalization
- Fix ungrammatical word order (like “Wood dark”)
This commit is contained in:
Wuzzy 2019-04-11 15:32:57 +02:00 committed by Auke Kok
parent e7e0357926
commit c72d0ecba9
8 changed files with 170 additions and 157 deletions

View File

@ -94,7 +94,7 @@ end
-- this hidden node is placed on top of the bottom, and prevents
-- nodes from being placed in the top half of the door.
minetest.register_node("doors:hidden", {
description = "Hidden Door Segment",
description = "Hidden door segment",
-- can't use airlike otherwise falling nodes will turn to entities
-- and will be forever stuck until door is removed.
drawtype = "nodebox",
@ -388,14 +388,14 @@ end
doors.register("door_wood", {
tiles = {{ name = "itb_doors_door_wood.png", backface_culling = true }},
description = "Wooden Door",
description = "Wooden door",
inventory_image = "itb_doors_item_wood.png",
groups = {unbreakable = 1, node = 1, door = 1},
})
doors.register("door_steel", {
tiles = {{name = "itb_doors_door_steel.png", backface_culling = true}},
description = "Steel Door",
description = "Steel door",
inventory_image = "itb_doors_item_steel.png",
protected = true,
groups = {unbreakable = 2, node = 2, door = 1},
@ -510,7 +510,7 @@ function doors.register_trapdoor(name, def)
end
doors.register_trapdoor("doors:trapdoor", {
description = "Trapdoor",
description = "Wooden trapdoor",
inventory_image = "itb_doors_trapdoor.png",
wield_image = "itb_doors_trapdoor.png",
tile_front = "itb_doors_trapdoor.png",
@ -519,7 +519,7 @@ doors.register_trapdoor("doors:trapdoor", {
})
doors.register_trapdoor("doors:trapdoor_steel", {
description = "Steel Trapdoor",
description = "Steel trapdoor",
inventory_image = "itb_doors_trapdoor_steel.png",
wield_image = "itb_doors_trapdoor_steel.png",
tile_front = "itb_doors_trapdoor_steel.png",
@ -595,19 +595,19 @@ function doors.register_fencegate(name, def)
end
doors.register_fencegate("doors:gate_wood_medium", {
description = "Fence Gate (medium)",
description = "Medium wood fence gate",
texture = "blocks_tiles.png^[sheet:8x8:2,3",
groups = {node = 1}
})
doors.register_fencegate("doors:gate_wood_dark", {
description = "Fence Gate (dark)",
description = "Dark wood fence gate",
texture = "blocks_tiles.png^[sheet:8x8:0,3",
groups = {node = 1},
})
doors.register_fencegate("doors:gate_wood_light", {
description = "Fence Gate (light)",
description = "Light wood fence gate",
texture = "blocks_tiles.png^[sheet:8x8:1,3",
groups = {node = 1}
})

View File

@ -535,7 +535,7 @@ minetest.register_node("mech:pressure_plate", {
})
minetest.register_node("mech:pressure_plate_down", {
description = "Pressure plate (down)",
description = "Pressure plate (pressed)",
drawtype = "nodebox",
tiles = {"blocks_tiles.png^[sheet:8x8:3,2"},
node_box = {
@ -632,7 +632,7 @@ minetest.register_node("mech:piston_base", {
})
minetest.register_node("mech:piston_base_sticky", {
description = "Piston (sticky)",
description = "Sticky piston",
paramtype2 = "facedir",
tiles = {"piston_top_sticky.png", "piston_bottom.png", "piston_side.png"},
groups = {node = 1, unbreakable = 1},
@ -642,7 +642,7 @@ minetest.register_node("mech:piston_base_sticky", {
})
minetest.register_node("mech:piston_base_extended", {
description = "Piston",
description = "Extended piston base",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
@ -690,7 +690,7 @@ minetest.register_node("mech:piston_base_extended", {
})
minetest.register_node("mech:piston_top", {
description = "Piston Top",
description = "Piston head",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
@ -709,7 +709,7 @@ minetest.register_node("mech:piston_top", {
})
minetest.register_node("mech:piston_top_sticky", {
description = "Piston Top (sticky)",
description = "Sticky piston head",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "nodebox",
@ -1207,7 +1207,7 @@ minetest.register_node("mech:node_creator", {
-- moved from 'boxes' mod here
minetest.register_node(":boxes:pedestal", {
description = "Nexus Pedestal",
description = "Nexus pedestal",
tiles = {"blocks_tiles.png^[sheet:8x8:2,0"},
drawtype = "nodebox",
paramtype = "light",

View File

@ -249,52 +249,52 @@ minetest.register_node("nodes:placeholder", {
-- [5] falling node
local nodelist = {
{"bricks_clay", true, "pickaxe", sounds.stone},
{"bricks_limestone", true, "pickaxe", sounds.stone},
{"bricks_marble", true, "pickaxe", sounds.stone},
{"bricks_sandstone", true, "pickaxe", sounds.stone},
{"bricks_stone", true, "pickaxe", sounds.stone},
{"bricks_stone_moss", true, "pickaxe", sounds.stone},
{"cobble", true, "pickaxe", sounds.stone},
{"cobble_moss", true, "pickaxe", sounds.stone},
{"limestone", true, "pickaxe", sounds.stone},
{"marble", true, "pickaxe", sounds.stone},
{"sandstone", true, "pickaxe", sounds.stone},
{"stone", true, "pickaxe", sounds.stone},
{"stone_moss", true, "pickaxe", sounds.stone},
{"obsidian", true, false, sounds.stone},
{"bedrock", true, false, sounds.stone},
{"redrock", true, false, sounds.stone},
{"bronze", false, "pickaxe", sounds.metal},
{"gold", false, "pickaxe", sounds.metal},
{"emerald", false, "pickaxe", sounds.stone},
{"iron", false, "pickaxe", sounds.metal},
{"clay", false, "shovel", sounds.dirt},
{"dirt", false, "shovel", sounds.dirt},
{"gravel", false, "shovel", sounds.gravel, 1},
{"sand", false, "shovel", sounds.sand, 1},
{"wood_dark", true, "axe", sounds.wood},
{"wood_light", true, "axe", sounds.wood},
{"wood_medium", true, "axe", sounds.wood},
{"grass", false, false, sounds.grass},
{"snow", false, "shovel", sounds.snow},
{"ice", false, "pickaxe", sounds.stone},
{"ore_black", false, "pickaxe", sounds.stone},
{"ore_blue", false, "pickaxe", sounds.stone},
{"ore_brown", false, "pickaxe", sounds.stone},
{"ore_cyan", false, "pickaxe", sounds.stone},
{"ore_gold", false, "pickaxe", sounds.stone},
{"ore_green", false, "pickaxe", sounds.stone},
{"ore_red", false, "pickaxe", sounds.stone},
{"bricks_clay", true, "pickaxe", sounds.stone, "clay bricks"},
{"bricks_limestone", true, "pickaxe", sounds.stone, "limestone bricks"},
{"bricks_marble", true, "pickaxe", sounds.stone, "marble bricks"},
{"bricks_sandstone", true, "pickaxe", sounds.stone, "sandstone bricks"},
{"bricks_stone", true, "pickaxe", sounds.stone, "stone bricks"},
{"bricks_stone_moss", true, "pickaxe", sounds.stone, "mossy stone bricks"},
{"cobble", true, "pickaxe", sounds.stone, "cobblestone"},
{"cobble_moss", true, "pickaxe", sounds.stone, "mossy cobblestone"},
{"limestone", true, "pickaxe", sounds.stone, "limestone"},
{"marble", true, "pickaxe", sounds.stone, "marble"},
{"sandstone", true, "pickaxe", sounds.stone, "sandstone"},
{"stone", true, "pickaxe", sounds.stone, "stone"},
{"stone_moss", true, "pickaxe", sounds.stone, "mossy stone"},
{"obsidian", true, false, sounds.stone, "obsidian"},
{"bedrock", true, false, sounds.stone, "bedrock"},
{"redrock", true, false, sounds.stone, "red rock"},
{"bronze", false, "pickaxe", sounds.metal, "bronze"},
{"gold", false, "pickaxe", sounds.metal, "gold"},
{"emerald", false, "pickaxe", sounds.stone, "emerald"},
{"iron", false, "pickaxe", sounds.metal, "iron"},
{"clay", false, "shovel", sounds.dirt, "clay"},
{"dirt", false, "shovel", sounds.dirt, "dirt"},
{"gravel", false, "shovel", sounds.gravel, "gravel", 1},
{"sand", false, "shovel", sounds.sand, "sand", 1},
{"wood_dark", true, "axe", sounds.wood, "dark wood"},
{"wood_light", true, "axe", sounds.wood, "light wood"},
{"wood_medium", true, "axe", sounds.wood, "medium wood"},
{"grass", false, false, sounds.grass, "grass block"},
{"snow", false, "shovel", sounds.snow, "snow"},
{"ice", false, "pickaxe", sounds.stone, "ice"},
{"ore_black", false, "pickaxe", sounds.stone, "black ore"},
{"ore_blue", false, "pickaxe", sounds.stone, "blue ore"},
{"ore_brown", false, "pickaxe", sounds.stone, "brown ore"},
{"ore_cyan", false, "pickaxe", sounds.stone, "cyan ore"},
{"ore_gold", false, "pickaxe", sounds.stone, "gold ore"},
{"ore_green", false, "pickaxe", sounds.stone, "green ore"},
{"ore_red", false, "pickaxe", sounds.stone, "red ore"},
}
local function make_stair_slab(name, groups, b1, b2, snd, tex)
local function make_stair_slab(name, desc, groups, b1, b2, snd, tex)
if not tex then
tex = name
end
minetest.register_node("nodes:" .. name .. b1 .. "_stairs", {
description = nm(name .. " stairs" .. b2),
description = nm(desc .. " stairs" .. b2),
tiles = {tex .. ".png"},
drawtype = "mesh",
mesh = "stairs_stair.obj",
@ -318,7 +318,7 @@ local function make_stair_slab(name, groups, b1, b2, snd, tex)
sounds = snd,
})
minetest.register_node("nodes:" .. name .. b1 .. "_slab", {
description = nm(name .. " slab" .. b2),
description = nm(desc .. " slab" .. b2),
tiles = {tex .. ".png"},
drawtype = "nodebox",
paramtype = "light",
@ -336,7 +336,7 @@ for n, v in pairs(nodelist) do
local tex = "blocks_tiles.png^[sheet:8x8:" .. (n - 1) % 8 .. "," .. math.floor((n - 1) / 8)
local groups = {node = 1}
if v[5] then
if v[6] then
groups.falling_node = 1
end
if v[4] == sounds.stone then
@ -349,30 +349,30 @@ for n, v in pairs(nodelist) do
local gg = table.copy(groups)
gg[v[3]] = 3
minetest.register_node("nodes:" .. v[1] .. "_breakable", {
description = nm(v[1]),
description = nm(v[5]),
tiles = {tex},
groups = gg,
sounds = v[4],
})
if v[2] then
make_stair_slab(v[1], gg, "_breakable", "", v[4], tex)
make_stair_slab(v[1], v[5], gg, "_breakable", "", v[4], tex)
end
frame.register("nodes:" .. v[1] .. "_breakable")
end
groups.unbreakable = 1
minetest.register_node("nodes:" .. v[1], {
description = nm(v[1]),
description = nm(v[5]),
tiles = {tex},
groups = groups,
sounds = v[4],
})
if v[2] then
make_stair_slab(v[1], groups, "", "", v[4], tex)
make_stair_slab(v[1], v[5], groups, "", "", v[4], tex)
if groups.stone then
walls.register("nodes:" .. v[1] .. "_wall", v[1] .. " Wall", tex, v[4],
walls.register("nodes:" .. v[1] .. "_wall", nm(v[5] .. " wall"), nm("Middle " .. v[5] .. " wall"), tex, v[4],
groups, {"group:stone"})
else
walls.register("nodes:" .. v[1] .. "_wall", v[1] .. " Wall", tex, v[4],
walls.register("nodes:" .. v[1] .. "_wall", nm(v[5] .. " wall"), nm("Middle " ..v[5] .. " wall"), tex, v[4],
groups, {"group:wood"})
end
end
@ -433,14 +433,14 @@ for n, v in pairs({"yellow", "white", "violet", "red",
},
},
})
make_stair_slab("wool_" .. v, {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
make_stair_slab("wool_" .. v, nm(v .. " wool"), {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
minetest.register_node("nodes:wool_" .. v .. "_breakable", {
description = nm(v .. " wool"),
tiles = {tex},
groups = {axe = 1, node = 1},
sounds = sounds.cloth,
})
make_stair_slab("wool_" .. v, {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
make_stair_slab("wool_" .. v, nm(v .. " wool"), {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
frame.register("nodes:wool_" .. v .. "_breakable")
end
@ -457,14 +457,14 @@ for n, v in pairs({"black", "violet", "brown", "cyan",
groups = {node = 1, unbreakable = 1},
sounds = sounds.clay,
})
make_stair_slab("hardened_clay_" .. v, {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
make_stair_slab("hardened_clay_" .. v, nm(v .. " hardened clay"), {node = 1, unbreakable = 1}, "", "", sounds.cloth, tex)
minetest.register_node("nodes:hardened_clay_" .. v .. "_breakable", {
description = nm(v .. " hardened clay"),
tiles = {tex},
groups = {pickaxe = 1, node = 1},
sounds = sounds.cloth,
})
make_stair_slab("hardened_clay_" .. v, {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
make_stair_slab("hardened_clay_" .. v, nm(v .. " hardened clay"), {axe = 1, node = 1}, "_breakable", "", sounds.cloth, tex)
frame.register("nodes:hardened_clay_" .. v .. "_breakable")
end
@ -542,7 +542,7 @@ end
-- glass
minetest.register_node("nodes:glass", {
description = "glass",
description = "Glass",
drawtype = "glasslike_framed_optional",
sunlight_propagates = true,
paramtype = "light",
@ -552,7 +552,7 @@ minetest.register_node("nodes:glass", {
})
minetest.register_node("nodes:glass_breakable", {
description = "glass",
description = "Glass",
drawtype = "glasslike_framed_optional",
sunlight_propagates = true,
paramtype = "light",
@ -584,7 +584,7 @@ for _, v in pairs({14, 11, 8, 0}) do
on_untrigger = lamp_on_untrigger
end
minetest.register_node("nodes:lamp_bar_" .. v, {
description = "A Lamp (" .. v .. ")",
description = "Wall lamp (" .. v .. ")",
light_source = v,
sunlight_propagates = true,
tiles = {"lamp_bar.png"},
@ -606,7 +606,7 @@ for _, v in pairs({14, 11, 8, 0}) do
end
minetest.register_node("nodes:lamp_bar_broken", {
description = "Broken lamp (flickering)",
description = "Broken wall lamp (flickering)",
light_source = 8,
sunlight_propagates = true,
tiles = {"lamp_bar.png"},
@ -634,7 +634,7 @@ minetest.register_node("nodes:lamp_bar_broken", {
})
minetest.register_node("nodes:lamp_bar_broken_off", {
description = "Broken lamp (flickering, off)",
description = "Broken wall lamp (flickering, off)",
sunlight_propagates = true,
tiles = {"lamp_bar.png"},
paramtype = "light",
@ -662,7 +662,7 @@ minetest.register_node("nodes:lamp_bar_broken_off", {
-- glowblock
minetest.register_node("nodes:glowblock", {
description = "A glowblock ",
description = "Glowblock",
tiles = {"glowblock.png"},
light_source = 13,
groups = {node = 1, unbreakable = 1},
@ -697,7 +697,7 @@ for _, v in pairs({14, 11, 8, 0}) do
end
minetest.register_node("nodes:lamp_block_" .. v, {
description = "A Lamp block (" .. v .. ")",
description = "Lamp block (" .. v .. ")",
tiles = tiles,
light_source = v,
groups = {node = 1, unbreakable = 1},
@ -708,10 +708,14 @@ for _, v in pairs({14, 11, 8, 0}) do
})
end
for n, wood in ipairs({"wood_dark", "wood_light", "wood_medium"}) do
fences.register_fence("nodes:fence_" .. wood, {
description = nm(wood .. " fence"),
local wood_fences = {
{ "wood_dark", "Dark wood fence" },
{ "wood_light", "Light wood fence" },
{ "wood_medium", "Medium wood fence" },
}
for n, wood in ipairs(wood_fences) do
fences.register_fence("nodes:fence_" .. wood[1], {
description = wood[2],
texture = "blocks_tiles.png^[sheet:8x8:" .. n - 1 ..",3",
inventory_image = "default_fence_overlay.png^" .. "blocks_tiles.png^[sheet:8x8:" .. n - 1 ..",3" ..
"^default_fence_overlay.png^[makealpha:255,126,126",
@ -1401,17 +1405,19 @@ frame.register("nodes:fire")
-- empty (fake) chest
-- chest-with-key
-- chest-with-tool
for _, name in ipairs({
"nothing",
"boxes:nexus",
"tools:axe",
"tools:pickaxe",
"tools:shovel",
"tools:sword",
"tools:flint_and_steel",
for _, names in ipairs({
{ "nothing", "Empty chest" },
{ "boxes:nexus", "Chest with nexus" },
{ "tools:axe", "Chest with axe" },
{ "tools:pickaxe", "Chest with pickaxe" },
{ "tools:shovel", "Chest with shovel" },
{ "tools:sword", "Chest with sword" },
{ "tools:flint_and_steel", "Chest with flint and steel" },
}) do
local name = names[1]
local desc = names[2]
minetest.register_node("nodes:chest_with_" .. string.gsub(name, ":", "_"), {
description = "Chest with " .. name,
description = desc,
drawtype = "mesh",
paramtype = "light",
paramtype2 = "facedir",
@ -1439,7 +1445,7 @@ end
minetest.register_alias("nodes:chest_with_boxes_findme_item", "nodes:chest_with_boxes_nexus")
minetest.register_node("nodes:chest_open", {
description = "Chest",
description = "Open chest",
drawtype = "mesh",
paramtype = "light",
paramtype2 = "facedir",
@ -1460,50 +1466,50 @@ minetest.register_node("nodes:chest_open", {
-- farming plants
-- flowerpot combos
for _, n in pairs({
{"grass_1", "3,3", 56},
{"grass_2", "4,3", 56},
{"grass_3", "5,3", 56},
{"grass_4", "6,3", 56},
{"grass_5", "7,3", 56},
{"dead_bush", "1,3", 56},
{"rose", "6,4", 9},
{"dandelion", "0,3", 9},
{"white_tulip", "4,5", 9},
{"allium", "6,2", 9},
{"orchid", "3,4", 9},
{"daisy", "7,2", 9},
{"houstonia", "0,4", 9},
{"paeonia", "4,4", 9},
{"wheat_stage_0", "0,1", 11},
{"wheat_stage_1", "1,1", 11},
{"wheat_stage_2", "2,1", 11},
{"wheat_stage_3", "3,1", 11},
{"wheat_stage_4", "4,1", 11},
{"wheat_stage_5", "5,1", 11},
{"wheat_stage_6", "6,1", 11},
{"wheat_stage_7", "7,1", 11},
{"potatoes_stage_0", "4,0", 10},
{"potatoes_stage_1", "5,0", 10},
{"potatoes_stage_2", "6,0", 10},
{"potatoes_stage_3", "7,0", 10},
{"carrots_stage_0", "0,0", 8},
{"carrots_stage_1", "1,0", 8},
{"carrots_stage_2", "2,0", 8},
{"carrots_stage_3", "3,0", 8},
{"sapling_1", "0,2", 8, true},
{"sapling_2", "1,2", 8, true},
{"sapling_3", "2,2", 8, true},
{"sapling_4", "3,2", 8, true},
{"sapling_5", "4,2", 8, true},
{"sapling_6", "5,2", 8, true},
{"mushroom_red", "2,4", 10, true},
{"mushroom_brown", "1,4", 10, true},
{"fern", "2,3", 9},
{"reeds", "5,4", 0},
{"grass_1", "3,3", 56, "grass (1)"},
{"grass_2", "4,3", 56, "grass (2)"},
{"grass_3", "5,3", 56, "grass (3)"},
{"grass_4", "6,3", 56, "grass (4)"},
{"grass_5", "7,3", 56, "grass (5)"},
{"dead_bush", "1,3", 56, "dead bush"},
{"rose", "6,4", 9, "rose"},
{"dandelion", "0,3", 9, "dandelion"},
{"white_tulip", "4,5", 9, "white tulip"},
{"allium", "6,2", 9, "allium"},
{"orchid", "3,4", 9, "orchid"},
{"daisy", "7,2", 9, "daisy"},
{"houstonia", "0,4", 9, "bluet"},
{"paeonia", "4,4", 9, "peony"},
{"wheat_stage_0", "0,1", 11, "wheat (stage 0)"},
{"wheat_stage_1", "1,1", 11, "wheat (stage 1)"},
{"wheat_stage_2", "2,1", 11, "wheat (stage 2)"},
{"wheat_stage_3", "3,1", 11, "wheat (stage 3)"},
{"wheat_stage_4", "4,1", 11, "wheat (stage 4)"},
{"wheat_stage_5", "5,1", 11, "wheat (stage 5)"},
{"wheat_stage_6", "6,1", 11, "wheat (stage 6)"},
{"wheat_stage_7", "7,1", 11, "wheat (stage 7)"},
{"potatoes_stage_0", "4,0", 10, "potatoes (stage 0)"},
{"potatoes_stage_1", "5,0", 10, "potatoes (stage 1)"},
{"potatoes_stage_2", "6,0", 10, "potatoes (stage 2)"},
{"potatoes_stage_3", "7,0", 10, "potatoes (stage 3)"},
{"carrots_stage_0", "0,0", 8, "carrots (stage 0)"},
{"carrots_stage_1", "1,0", 8, "carrots (stage 1)"},
{"carrots_stage_2", "2,0", 8, "carrots (stage 2)"},
{"carrots_stage_3", "3,0", 8, "carrots (stage 3)"},
{"sapling_1", "0,2", 8, "sapling 1", true},
{"sapling_2", "1,2", 8, "sapling 2", true},
{"sapling_3", "2,2", 8, "sapling 3", true},
{"sapling_4", "3,2", 8, "sapling 4", true},
{"sapling_5", "4,2", 8, "sapling 5", true},
{"sapling_6", "5,2", 8, "sapling 6", true},
{"mushroom_red", "2,4", 10, "red mushroom", true},
{"mushroom_brown", "1,4", 10, "brown mushroom", true},
{"fern", "2,3", 9, "fern"},
{"reeds", "5,4", 0, "reeds"},
}) do
local tex = "plant_tiles.png^[sheet:8x8:" .. n[2]
minetest.register_node("nodes:" .. n[1], {
description = nm(n[1]),
description = nm(n[4]),
drawtype = "plantlike",
place_param2 = n[3],
tiles = {tex},
@ -1522,9 +1528,9 @@ for _, n in pairs({
sounds = sounds.grass,
groups = {node = 1},
})
if n[4] then
if n[5] then
minetest.register_node("nodes:" .. n[1] .. "_breakable", {
description = nm(n[1]),
description = nm(n[4]),
drawtype = "plantlike",
place_param2 = n[3],
tiles = {tex},
@ -1548,7 +1554,7 @@ for _, n in pairs({
frame.register("nodes:" .. n[1])
end
minetest.register_node("nodes:flowerpot_" ..n[1], {
description = nm("Pot with " .. n[1]),
description = "Pot with " .. n[4],
drawtype = "mesh",
mesh = "flowerpot.obj",
tiles = {
@ -1623,12 +1629,12 @@ end
-- empty flowerpot
minetest.register_node("nodes:flowerpot_empty", {
description = "Pot (empty)",
description = "Empty pot",
drawtype = "mesh",
mesh = "flowerpot.obj",
tiles = {
{name = "pot.png"},
{name = "itb_blank.png"},
{name = "blank.png"},
},
paramtype = "light",
sunlight_propagates = true,
@ -1647,23 +1653,23 @@ minetest.register_node("nodes:flowerpot_empty", {
-- soil
for _, v in pairs({
"soil",
"soil_wet",
{ "soil", "Soil" },
{ "soil_wet", "Wet soil" },
}) do
-- register diggable node version
minetest.register_node("nodes:" .. v .. "_breakable", {
description = nm(v),
tiles = {v .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
minetest.register_node("nodes:" .. v[1] .. "_breakable", {
description = v[2],
tiles = {v[1] .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
groups = {node = 1, shovel = 1},
sounds = sounds.dirt,
})
minetest.register_node("nodes:" .. v, {
description = nm(v),
tiles = {v .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
minetest.register_node("nodes:" .. v[1], {
description = v[2],
tiles = {v[1] .. ".png", "blocks_tiles.png^[sheet:8x8:5,2"},
groups = {node = 1, unbreakable = 1},
sounds = sounds.dirt,
})
frame.register("nodes:" .. v .. "_breakable")
frame.register("nodes:" .. v[1] .. "_breakable")
end
-- dirt with grass,
@ -1698,13 +1704,13 @@ frame.register("nodes:dirt_with_podzol_breakable")
-- mycelium
minetest.register_node("nodes:mycelium_breakable", {
description = "mycelium",
description = "Mycelium",
tiles = {"mycelium_top.png", "blocks_tiles.png^[sheet:8x8:5,2", "mycelium_side.png"},
groups = {node = 1, shovel = 1},
sounds = sounds.dirt,
})
minetest.register_node("nodes:mycelium", {
description = "mycelium",
description = "Mycelium",
tiles = {"mycelium_top.png", "blocks_tiles.png^[sheet:8x8:5,2", "mycelium_side.png"},
groups = {node = 1, unbreakable = 1},
sounds = sounds.dirt,
@ -1743,9 +1749,16 @@ minetest.register_node("nodes:snow_ledge", {
},
})
for i, v in ipairs({[1] = "blue", [2] = "gray", [3] = "green", [4] = "rail", [5] = "red"}) do
minetest.register_node("nodes:line_" .. v, {
description = "Line (" .. v .. ")",
local lines = {
{ "blue", "Blue line" },
{ "gray", "Gray line" },
{ "green", "Green line" },
{ "rail", "Rail" },
{ "red", "Red line" },
}
for i, v in ipairs(lines) do
minetest.register_node("nodes:line_" .. v[1], {
description = v[2],
drawtype = "raillike",
paramtype = "light",
sunlight_propagates = true,

View File

@ -191,7 +191,7 @@ local function text_callback(player, fields, context)
end
minetest.register_node("signs:sign", {
description = "sign",
description = "Sign",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -504,7 +504,7 @@ minetest.register_entity("signs:sign", {
})
minetest.register_node("signs:bg", {
description = "Sign Background",
description = "Sign background",
tiles = {"sign_bg.png"},
groups = { node = 1 },
})
@ -550,7 +550,7 @@ end
for k, v in ipairs(icons) do
minetest.register_node("signs:icon_".. v, {
description = "sign (" .. v .. ")",
description = "Sign (" .. v .. ")",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -614,7 +614,7 @@ local stardir = {
}
minetest.register_node("signs:star", {
description = "A Star",
description = "Star",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
@ -659,7 +659,7 @@ minetest.register_node("signs:star", {
})
minetest.register_node("signs:no_star", {
description = "No Star",
description = "No star",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",

View File

@ -423,7 +423,7 @@ local terminal_use = function(pos, node, clicker, itemstack, pointed_thing)
end
minetest.register_node("terminal:terminal", {
description = "An interactive terminal console emulator access interface unit controller",
description = "Interactive terminal console emulator access interface unit controller",
drawtype = "mesh",
mesh = "terminal.obj",
groups = {mech = 1, trigger = 1},

View File

@ -115,7 +115,7 @@ frame.register("tools:sword")
minetest.register_tool("tools:flint_and_steel", {
description = "Flint and Steel",
description = "Flint and steel",
inventory_image = "flint_and_steel.png",
})
frame.register("tools:flint_and_steel")

View File

@ -20,7 +20,7 @@ https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
walls = {}
walls.register = function(wall_name, wall_desc, wall_texture, wall_sounds, groups, connect_groups)
walls.register = function(wall_name, wall_desc, wall_desc_middle, wall_texture, wall_sounds, groups, connect_groups)
-- inventory node, and pole-type wall start item
groups.wall = 1
connect_groups[#connect_groups + 1] = "group:wall"
@ -55,7 +55,7 @@ walls.register = function(wall_name, wall_desc, wall_texture, wall_sounds, group
})
minetest.register_node(wall_name .. "_middle", {
description = wall_desc .. " middle",
description = wall_desc_middle,
drawtype = "nodebox",
node_box = {
type = "fixed",

View File

@ -164,7 +164,7 @@ function xpanes.register_pane(name, def)
end
xpanes.register_pane("pane", {
description = "Glass Pane",
description = "Glass pane",
textures = {"itb_xpanes_glass_top.png", "itb_xpanes_glass.png"},
inventory_image = "itb_xpanes_glass.png",
wield_image = "itb_xpanes_glass.png",
@ -173,7 +173,7 @@ xpanes.register_pane("pane", {
})
xpanes.register_pane("bar", {
description = "Iron bar",
description = "Iron bars",
textures = {"itb_xpanes_bar_top.png", "itb_xpanes_bar.png"},
inventory_image = "itb_xpanes_bar.png",
wield_image = "itb_xpanes_bar.png",