Add new doc_items field names

master
Wuzzy 2016-11-16 06:51:09 +01:00
parent d03bf178d0
commit cdad409a14
1 changed files with 54 additions and 54 deletions

108
init.lua
View File

@ -24,7 +24,7 @@ end
-- New nodes and crafts
minetest.register_node("mtg_plus:dirty_glass", {
description = S("Dirty Glass"),
x_doc_items_longdesc = S("A decorative, semitransparent block. The dirt makes it hard for the sunlight to pass through."),
_doc_items_longdesc = S("A decorative, semitransparent block. The dirt makes it hard for the sunlight to pass through."),
drawtype = "glasslike_framed_optional",
tiles = {"mtg_plus_dirty_glass.png", "mtg_plus_dirty_glass_detail.png"},
paramtype = "light",
@ -43,7 +43,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:goldglass", {
description = S("Goldglass"),
x_doc_items_longdesc = S("A ornamental and mostly transparent block, made by combining glass with gold."),
_doc_items_longdesc = S("A ornamental and mostly transparent block, made by combining glass with gold."),
drawtype = "glasslike_framed_optional",
tiles = {"mtg_plus_goldglass.png", "mtg_plus_goldglass_detail.png"},
paramtype = "light",
@ -63,7 +63,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:dirtbrick", {
description = S("Soft Dirt Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_dirt_brick.png"},
is_ground_content = false,
groups = { crumbly = 2, soil = 1 },
@ -79,7 +79,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:harddirtbrick", {
description = S("Hardened Dirt Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_dirt_brick_hard.png"},
is_ground_content = false,
groups = { crumbly = 1, level = 1, soil = 1 },
@ -95,7 +95,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:graveldirt", {
description = S("Gravel Dirt"),
x_doc_items_longdesc = S("Gravel dirt is a type of dirt consisting of equal parts of gravel and dirt. It combines some of the properties of gravel and dirt."),
_doc_items_longdesc = S("Gravel dirt is a type of dirt consisting of equal parts of gravel and dirt. It combines some of the properties of gravel and dirt."),
tiles = {"mtg_plus_graveldirt.png"},
is_ground_content = true,
groups = { crumbly = 2, level = 1, soil = 1, },
@ -116,7 +116,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:gravel_cobble", {
description = S("Gravel Cobblestone"),
x_doc_items_longdesc = S("Gravel cobblestone is solidified gravel, carefully arranged in a mosaic-like pattern. It makes a nice building material."),
_doc_items_longdesc = S("Gravel cobblestone is solidified gravel, carefully arranged in a mosaic-like pattern. It makes a nice building material."),
tiles = {"mtg_plus_gravel_cobble.png"},
is_ground_content = false,
groups = { cracky = 3, stone = 1 },
@ -137,7 +137,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:goldbrick", {
description = S("Gold Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_gold_brick.png"},
is_ground_content = false,
groups = { cracky = 1, },
@ -152,7 +152,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:bronzebrick", {
description = S("Bronze Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_bronze_brick.png"},
is_ground_content = false,
groups = { cracky = 1, level = 2 },
@ -167,7 +167,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:copperbrick", {
description = S("Copper Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_copper_brick.png"},
is_ground_content = false,
groups = { cracky = 1, level = 2 },
@ -182,7 +182,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:steelbrick", {
description = S("Steel Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_steel_brick.png"},
is_ground_content = false,
groups = { cracky = 1, level = 2 },
@ -197,7 +197,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:stonebrick_gold", {
description = S("Stone Brick with Golden Edges"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_stone_brick_gold.png"},
is_ground_content = false,
groups = { cracky = 2, stone = 1 },
@ -213,7 +213,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:desert_stonebrick_gold", {
description = S("Desert Stone Brick with Golden Edges"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_desert_stone_brick_gold.png"},
is_ground_content = false,
groups = { cracky = 2, stone = 1 },
@ -229,7 +229,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:sandstonebrick_gold", {
description = S("Sandstone Brick with Golden Edges"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_sandstone_brick_gold.png"},
is_ground_content = false,
groups = { cracky = 2, },
@ -245,7 +245,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:obsidianbrick_gold", {
description = S("Obsidian Brick with Golden Edges"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_obsidian_brick_gold.png"},
is_ground_content = false,
groups = { cracky = 1, level = 2 },
@ -261,7 +261,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:sandstone_cobble", {
description = S("Sandstone Cobblestone"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_sandstone_cobble.png"},
groups = {cracky = 3, },
is_ground_content = false,
@ -281,7 +281,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:jungle_cobble", {
description = S("Jungle Cobblestone"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_jungle_cobble.png"},
groups = {cracky=3, stone=1},
is_ground_content = false,
@ -308,7 +308,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:harddiamondblock",{
description = S("Aggregated Diamond Block"),
x_doc_items_longdesc = S("This block is even harder than diamond; diamond pickaxes can't break it. TNT is able to destroy this block."),
_doc_items_longdesc = S("This block is even harder than diamond; diamond pickaxes can't break it. TNT is able to destroy this block."),
tiles = { "mtg_plus_hard_diamond_block.png" },
is_ground_content = false,
groups = { cracky = 1, level = 4 },
@ -323,7 +323,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ice_block", {
description = S("Ice Block"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_ice_block.png"},
groups = {cracky = 3, puts_out_fire = 1},
is_ground_content = false,
@ -356,7 +356,7 @@ end
minetest.register_node("mtg_plus:ice_tile4", {
description = S("Ice Tile"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_ice_tile4.png"},
groups = {cracky = 3, level = 1, puts_out_fire = 1},
is_ground_content = false,
@ -372,7 +372,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ice_tile16", {
description = S("Dense Ice Tile"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_ice_tile16.png"},
groups = {cracky = 3, level = 2, puts_out_fire = 1},
is_ground_content = false,
@ -387,7 +387,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ice_window", {
description = S("Ice Window"),
x_doc_items_longdesc = S("This decorational ice tile has been crafted in a way that it is partially transparent and looks like a real window."),
_doc_items_longdesc = S("This decorational ice tile has been crafted in a way that it is partially transparent and looks like a real window."),
drawtype = "glasslike",
tiles = {"mtg_plus_ice_window.png"},
sunlight_propagates = true,
@ -407,7 +407,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:papyrus_block", {
description = S("Papyrus Block"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_papyrus_block_y.png","mtg_plus_papyrus_block_y.png","mtg_plus_papyrus_block_side2.png","mtg_plus_papyrus_block_side2.png","mtg_plus_papyrus_block_side.png","mtg_plus_papyrus_block_side.png"},
groups = {snappy = 2, choppy = 2, flammable = 3},
is_ground_content = false,
@ -434,7 +434,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:snow_brick", {
description = S("Soft Snow Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_snow_brick.png"},
groups = {crumbly = 2, puts_out_fire = 1},
is_ground_content = false,
@ -458,7 +458,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:hard_snow_brick", {
description = S("Hard Snow Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_hard_snow_brick.png"},
groups = {crumbly = 1, cracky = 2, puts_out_fire = 1},
is_ground_content = false,
@ -476,7 +476,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ice_snow_brick", {
description = S("Icy Snow Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_ice_snow_brick.png"},
groups = {cracky = 2, puts_out_fire = 1},
is_ground_content = false,
@ -491,7 +491,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ice_brick", {
description = S("Ice Brick"),
x_doc_items_longdesc = build,
_doc_items_longdesc = build,
tiles = {"mtg_plus_ice_brick.png"},
paramtype = "light",
groups = {cracky = 3, puts_out_fire = 1},
@ -522,7 +522,7 @@ end
minetest.register_node("mtg_plus:goldwood", {
description = S("Goldwood"),
x_doc_items_longdesc = S("Goldwood is a precious artificial kind of wood made by enriching wood with gold. Goldwood is fireproof and notable for its bright yellowy appearance."),
_doc_items_longdesc = S("Goldwood is a precious artificial kind of wood made by enriching wood with gold. Goldwood is fireproof and notable for its bright yellowy appearance."),
tiles = {"mtg_plus_goldwood.png"},
is_ground_content = false,
groups = {choppy = 2, wood = 1},
@ -538,7 +538,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:gold_diamond_block", {
description = S("Small Gold-framed Diamond Block"),
x_doc_items_longdesc = deco,
_doc_items_longdesc = deco,
tiles = {"mtg_plus_gold_diamond_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
@ -555,7 +555,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:goldapple", {
description = S("Golden Decor Apple"),
x_doc_items_longdesc = S("A decorative golden object which is shaped like an apple. It is inedible."),
_doc_items_longdesc = S("A decorative golden object which is shaped like an apple. It is inedible."),
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"mtg_plus_goldapple.png"},
@ -628,7 +628,7 @@ mtg_plus.register_cup = function(subname, description, tiles, craftitem, craft_c
local itemstring = "mtg_plus:cup_"..subname
minetest.register_node(itemstring, {
description = description,
x_doc_items_longdesc = S("A decorational item which can be placed."),
_doc_items_longdesc = S("A decorational item which can be placed."),
tiles = tiles,
paramtype = "light",
drawtype = "nodebox",
@ -661,7 +661,7 @@ mtg_plus.register_cup("diamond", S("Diamond Cup"), { "mtg_plus_cup_diamond.png"
-- Ladders
minetest.register_node("mtg_plus:ladder_papyrus", {
description = S("Papyrus Ladder"),
x_doc_items_longdesc = S("A particulary strong piece of ladder which allows you to move vertically."),
_doc_items_longdesc = S("A particulary strong piece of ladder which allows you to move vertically."),
drawtype = "signlike",
tiles = {"mtg_plus_ladder_papyrus.png"},
inventory_image = "mtg_plus_ladder_papyrus.png",
@ -692,7 +692,7 @@ minetest.register_craft({
minetest.register_node("mtg_plus:ladder_gold", {
description = S("Golden Ladder"),
x_doc_items_longdesc = S("A luxurious piece of ladder which allows you to move vertically."),
_doc_items_longdesc = S("A luxurious piece of ladder which allows you to move vertically."),
drawtype = "signlike",
tiles = {"mtg_plus_ladder_gold.png"},
inventory_image = "mtg_plus_ladder_gold.png",
@ -748,7 +748,7 @@ stairs.register_stair("ice_block", "mtg_plus:ice_block", {cracky=3}, {"mtg_plus_
beds.register_bed("mtg_plus:bed_simple_white", {
description = S("White Simple Bed"),
--TODO: x_doc_items_longdesc =
--TODO: _doc_items_longdesc =
inventory_image = "mtg_plus_bed_simple_white.png",
wield_image = "mtg_plus_bed_simple_white.png",
tiles = {
@ -788,7 +788,7 @@ minetest.register_craft({
beds.register_bed("mtg_plus:gold_bed", {
description = S("Golden Bed"),
--TODO: x_doc_items_longdesc =
--TODO: _doc_items_longdesc =
inventory_image = "mtg_plus_gold_bed.png",
wield_image = "mtg_plus_gold_bed.png",
tiles = {
@ -848,7 +848,7 @@ minetest.override_item("mtg_plus:gold_bed_top", goldbeddef)
doors.register("door_wood_bar", {
tiles = {{ name = "mtg_plus_door_wood_bar.png", backface_culling = true }},
description = S("Wooden Bar Door"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_door_wood_bar_item.png",
sounds = default.node_sound_wood_defaults(),
sound_open = "doors_fencegate_open",
@ -869,7 +869,7 @@ minetest.register_craft({
doors.register("door_papyrus", {
tiles = {{ name = "mtg_plus_door_papyrus.png", backface_culling = true }},
description = S("Papyrus Door"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_door_papyrus_item.png",
sounds = default.node_sound_leaves_defaults(),
sound_open = "doors_fencegate_open",
@ -891,7 +891,7 @@ minetest.register_craft({
doors.register("door_iron_bar", {
tiles = {{ name = "mtg_plus_door_iron_bar.png", backface_culling = true }},
description = S("Iron Bar Door"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_door_iron_bar_item.png",
sound_open = "mtg_plus_door_iron_bar_open",
sound_close = "mtg_plus_door_iron_bar_close",
@ -925,8 +925,8 @@ end
doors.register("door_ice", {
tiles = {{ name = "mtg_plus_door_ice.png", backface_culling = true }},
description = S("Ice Door"),
x_doc_items_longdesc = S("Ice doors can be opened and closed. They are solid, but some of the light hitting ice doors can still go through, making them an interesting decoration in icy areas."),
-- TODO: x_doc_items_usagehelp =,
_doc_items_longdesc = S("Ice doors can be opened and closed. They are solid, but some of the light hitting ice doors can still go through, making them an interesting decoration in icy areas."),
-- TODO: _doc_items_usagehelp =,
inventory_image = "mtg_plus_door_ice_item.png",
groups = { cracky = 3, puts_out_fire = 1 },
sounds = default.node_sound_glass_defaults(),
@ -942,8 +942,8 @@ doors.register("door_ice", {
doors.register("door_icesteel", {
tiles = {{ name = "mtg_plus_door_icesteel.png", backface_culling = true }},
description = S("Icy Steel Door"),
x_doc_items_longdesc = S("Icy steel doors are a combination of ice doors and steel doors which can only be opened and closed by their owners. They are solid, but some of the light hitting icy steel doors can still go through."),
--TODO x_doc_items_longdesc = ,
_doc_items_longdesc = S("Icy steel doors are a combination of ice doors and steel doors which can only be opened and closed by their owners. They are solid, but some of the light hitting icy steel doors can still go through."),
--TODO _doc_items_longdesc = ,
protected = true,
sound_open = "mtg_plus_door_icesteel_open",
sound_close = "mtg_plus_door_icesteel_close",
@ -960,7 +960,7 @@ minetest.register_craft({
doors.register_fencegate("mtg_plus:gate_goldwood", {
description = S("Goldwood Fence Gate"),
x_doc_items_longdesc = S("A fence gate made from precious goldwood. It blocks the path, but it can be opened and easily jumped over. Other fence posts will neatly connect to this fence gate."),
_doc_items_longdesc = S("A fence gate made from precious goldwood. It blocks the path, but it can be opened and easily jumped over. Other fence posts will neatly connect to this fence gate."),
-- TODO usagehelp
material = "mtg_plus:goldwood",
texture = "mtg_plus_goldwood.png",
@ -969,8 +969,8 @@ doors.register_fencegate("mtg_plus:gate_goldwood", {
doors.register_trapdoor("mtg_plus:trapdoor_ice", {
description = S("Ice Trapdoor"),
x_doc_items_longdesc = S("An ice trapdoor covers the floor and can be opened and closed by anyone. Ice trapdoors are solid, but some light can pass through nonetheless."),
--TODO x_doc_items_longdesc = ,
_doc_items_longdesc = S("An ice trapdoor covers the floor and can be opened and closed by anyone. Ice trapdoors are solid, but some light can pass through nonetheless."),
--TODO _doc_items_longdesc = ,
tile_front = "mtg_plus_trapdoor_ice.png",
tile_side = "mtg_plus_trapdoor_ice_side.png",
inventory_image = "mtg_plus_trapdoor_ice.png",
@ -989,8 +989,8 @@ minetest.register_craft({
doors.register_trapdoor("mtg_plus:trapdoor_icesteel", {
description = S("Icy Steel Trapdoor"),
x_doc_items_longdesc = S("An icy steel trapdoor is a combination of an ice trapdoor and a steel trapdoor. It covers the floor and can only be opened and closed by its placer. Icy steel trapdoors are solid, but some light can pass through nonetheless."),
--TODO x_doc_items_longdesc = ,
_doc_items_longdesc = S("An icy steel trapdoor is a combination of an ice trapdoor and a steel trapdoor. It covers the floor and can only be opened and closed by its placer. Icy steel trapdoors are solid, but some light can pass through nonetheless."),
--TODO _doc_items_longdesc = ,
protected = true,
tile_front = "mtg_plus_trapdoor_icesteel.png",
tile_side = "mtg_plus_trapdoor_icesteel_side.png",
@ -1027,7 +1027,7 @@ end
-- Fences
default.register_fence("mtg_plus:fence_goldwood", {
description = S("Goldwood Fence"),
x_doc_items_longdesc = S("This is a fence made out of precious goldwood. The fence will neatly connect to its neighbors, making it easy to build nice-looking fence structures. The fence can be jumped over."),
_doc_items_longdesc = S("This is a fence made out of precious goldwood. The fence will neatly connect to its neighbors, making it easy to build nice-looking fence structures. The fence can be jumped over."),
texture = "mtg_plus_goldwood.png",
material = "mtg_plus:goldwood",
sounds = minetest.registered_nodes["mtg_plus:goldwood"].sounds,
@ -1037,7 +1037,7 @@ default.register_fence("mtg_plus:fence_goldwood", {
-- xpanes
xpanes.register_pane("paper", {
description = S("Paper Barrier"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_paperwall.png",
wield_image = "mtg_plus_paperwall.png",
textures = {"mtg_plus_paperwall.png", "mtg_plus_paperwall.png", "mtg_plus_paperwall.png"},
@ -1068,7 +1068,7 @@ minetest.register_craft({
xpanes.register_pane("wood", {
description = S("Wooden Bars"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_wooden_bar.png",
wield_image = "mtg_plus_wooden_bar.png",
textures = {"mtg_plus_wooden_bar.png", "mtg_plus_wooden_bar_side.png", "mtg_plus_wooden_bar_y.png"},
@ -1094,7 +1094,7 @@ minetest.register_craft({
xpanes.register_pane("obsidian_glass", {
description = S("Obsidian Glass Pane"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "default_obsidian_glass.png",
wield_image = "default_obsidian_glass.png",
textures = {"default_obsidian_glass.png", "mtg_plus_obsidian_glass_pane_half.png", "default_obsidian.png"},
@ -1108,7 +1108,7 @@ xpanes.register_pane("obsidian_glass", {
xpanes.register_pane("goldglass", {
description = S("Goldglass Pane"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_goldglass.png",
wield_image = "mtg_plus_goldglass.png",
textures = {"mtg_plus_goldglass.png","mtg_plus_goldglass_pane_half.png","mtg_plus_goldglass_pane_top.png",},
@ -1122,7 +1122,7 @@ xpanes.register_pane("goldglass", {
xpanes.register_pane("goldglass2", {
description = S("Golden Window"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_goldglass2.png",
wield_image = "mtg_plus_goldglass2.png",
textures = {"mtg_plus_goldglass2.png","mtg_plus_goldglass_pane_half.png","mtg_plus_goldglass_pane_top.png",},
@ -1137,7 +1137,7 @@ xpanes.register_pane("goldglass2", {
xpanes.register_pane("papyrus", {
description = S("Papyrus Lattice"),
--TODO x_doc_items_longdesc = ,
--TODO _doc_items_longdesc = ,
inventory_image = "mtg_plus_papyrus_lattice.png",
wield_image = "mtg_plus_papyrus_lattice.png",
textures = {"mtg_plus_papyrus_lattice.png","mtg_plus_papyrus_lattice.png","mtg_plus_papyrus_lattice.png"},
@ -1178,7 +1178,7 @@ end
xpanes.register_pane("ice", {
description = S("Ice Window Pane"),
x_doc_items_longdesc = S("Ice window panes are thinner than the full ice windows and neatly connect to each other as you build them"),
_doc_items_longdesc = S("Ice window panes are thinner than the full ice windows and neatly connect to each other as you build them"),
inventory_image = "mtg_plus_ice_window.png",
wield_image = "mtg_plus_ice_window.png",
textures = {"mtg_plus_ice_window.png", "mtg_plus_ice_window.png", "mtg_plus_ice_window.png"},