Add item help texts all over the place

This commit is contained in:
Wuzzy 2017-03-11 01:51:06 +01:00
parent 5869df4ed0
commit 4caf0add5e
6 changed files with 26 additions and 0 deletions

View File

@ -610,6 +610,7 @@ function mcl_core.add_glass(desc, recipeitem, color)
minetest.register_node("mcl_core:glass_"..color, {
description = desc,
_doc_items_longdesc = "Stained glass is a decorational and mostly transparent block which comes in various different colors.",
drawtype = "glasslike",
is_ground_content = false,
tiles = {"xpanes_pane_glass_"..color..".png"},

View File

@ -52,6 +52,7 @@ local rod_box = {
}
minetest.register_node("mcl_end:end_rod", {
description = "End Rod",
_doc_items_longdesc = "End rods are decorational light sources.",
tiles = {
"mcl_end_end_rod_top.png",
"mcl_end_end_rod_bottom.png",

View File

@ -32,6 +32,7 @@ mcl_fences.register_fence = function(id, fence_name, texture, groups, hardness,
table.insert(connects_to, fence_id)
minetest.register_node(fence_id, {
description = fence_name,
_doc_items_longdesc = "Fences are structures which block the way. Fences will connect to each other and solid blocks. They cannot be jumped over with a simple jump.",
tiles = {texture},
inventory_image = "mcl_fences_fence_mask.png^" .. texture .. "^mcl_fences_fence_mask.png^[makealpha:255,126,126",
wield_image = "mcl_fences_fence_mask.png^" .. texture .. "^mcl_fences_fence_mask.png^[makealpha:255,126,126",
@ -162,6 +163,8 @@ mcl_fences.register_fence_gate = function(id, fence_gate_name, texture, groups,
cgroups_closed.mesecon_effector_off = nil
minetest.register_node(gate_id, {
description = fence_gate_name,
_doc_items_longdesc = "Fence gates can be opened or closed and can't be jumped over. Fences will connect nicely to fence gates.",
_doc_items_usagehelp = "Right-click the fence gate to open or close it.",
tiles = {texture},
inventory_image = "mcl_fences_fence_gate_mask.png^" .. texture .. "^mcl_fences_fence_gate_mask.png^[makealpha:255,126,126",
wield_image = "mcl_fences_fence_gate_mask.png^" .. texture .. "^mcl_fences_fence_gate_mask.png^[makealpha:255,126,126",

View File

@ -7,10 +7,12 @@ flower_tmp={}
--- Fleur Simple (une case) ---
-------------------------------
local smallflowerlongdesc = "This is a small flower. Small flowers are mainly used for dye production and can also be potted."
local function add_simple_flower(name, desc, image, color)
minetest.register_node("mcl_flowers:"..name, {
description = desc,
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { image..".png" },
inventory_image = image..".png",
@ -36,6 +38,7 @@ add_simple_flower("tulip_orange", "Orange Tulip", "flowers_tulip", "color_orange
minetest.register_node("mcl_flowers:tulip_pink", {
description = "Pink Tulip",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_tulip_pink.png" },
inventory_image = "mcl_flowers_tulip_pink.png",
@ -55,6 +58,7 @@ minetest.register_node("mcl_flowers:tulip_pink", {
minetest.register_node("mcl_flowers:tulip_red", {
description = "Red Tulip",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_tulip_red.png" },
inventory_image = "mcl_flowers_tulip_red.png",
@ -75,6 +79,7 @@ minetest.register_node("mcl_flowers:tulip_red", {
minetest.register_node("mcl_flowers:tulip_white", {
description = "White Tulip",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_tulip_white.png" },
inventory_image = "mcl_flowers_tulip_white.png",
@ -97,6 +102,7 @@ minetest.register_node("mcl_flowers:tulip_white", {
minetest.register_node("mcl_flowers:allium", {
description = "Allium",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_allium.png" },
inventory_image = "mcl_flowers_allium.png",
@ -140,6 +146,7 @@ minetest.register_node("mcl_flowers:peony", {
minetest.register_node("mcl_flowers:azure_bluet", {
description = "Azure Bluet",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_azure_bluet.png" },
inventory_image = "mcl_flowers_azure_bluet.png",
@ -161,6 +168,7 @@ minetest.register_node("mcl_flowers:azure_bluet", {
minetest.register_node("mcl_flowers:blue_orchid", {
description = "Blue Orchid",
_doc_items_longdesc = smallflowerlongdesc,
drawtype = "plantlike",
tiles = { "mcl_flowers_blue_orchid.png" },
inventory_image = "mcl_flowers_blue_orchid.png",
@ -182,6 +190,7 @@ minetest.register_node("mcl_flowers:blue_orchid", {
minetest.register_node("mcl_flowers:fern", {
description = "Fern",
_doc_items_longdesc = "Ferns are small plants which occour naturally in grasslands. They can be harvested for wheat seeds.",
drawtype = "plantlike",
tiles = { "mcl_flowers_fern.png" },
inventory_image = "mcl_flowers_fern.png",
@ -272,6 +281,7 @@ end
-- Lily Pad
minetest.register_node("mcl_flowers:waterlily", {
description = "Lily Pad",
_doc_items_longdesc = "A lily pad is a flat plant block which can be walked on. They can be placed on water sources, ice and frosted ice.",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",

View File

@ -35,6 +35,7 @@ for _, row in ipairs(wool.dyes) do
-- Node Definition
minetest.register_node("mcl_wool:"..name, {
description = desc.." Wool",
_doc_items_longdesc = "Wool is a decorational block which comes in many different colors.",
stack_max = 64,
is_ground_content = false,
tiles = {"wool_"..texture..".png"},
@ -45,6 +46,7 @@ for _, row in ipairs(wool.dyes) do
})
minetest.register_node("mcl_wool:"..name.."_carpet", {
description = desc.." Carpet",
_doc_items_longdesc = "Carpets are thin floor covers which come in many different colors.",
walkable = false,
is_ground_content = false,
tiles = {"wool_"..texture..".png"},

View File

@ -14,6 +14,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
groups.building_block = 1
minetest.register_node(":stairs:stair_" .. subname, {
description = description,
_doc_items_longdesc = "Stairs are useful to reach higher places by walking over them; jumping is not required. Placing stairs in a corner pattern will create corner stairs. Stairs placed on the ceiling will be placed upside down.",
drawtype = "mesh",
mesh = "stairs_stair.obj",
tiles = images,
@ -107,8 +108,15 @@ local slab_trans_dir_place = {[0] = 0, 20, 12, 16, 4, 8}
function stairs.register_slab(subname, recipeitem, groups, images, description, sounds, hardness, double_description, full_node)
groups.slab = 1
groups.building_block = 1
local longdesc = "Slabs are half as high as their full block counterparts. Slabs can be easily stepped on without needing to jump. They are useful to create long staircases and many other structures. Slabs can be placed on the ceiling of another block will be upside-down."
if double_description then
longdesc = longdesc .. " When a slab of this particular type is placed on another slab of the same type, a double slab is created."
else
longdesc = longdesc .. " When a slab of this particular type is placed on another slab of the same type, a new full block is created."
end
minetest.register_node(":stairs:slab_" .. subname, {
description = description,
_doc_items_longdesc = longdesc,
drawtype = "nodebox",
tiles = images,
paramtype = "light",
@ -195,6 +203,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
if double_description then
minetest.register_node(":stairs:slab_" .. subname .. "_double", {
description = double_description,
_doc_items_longdesc = "Double slabs are full blocks which are created by placing two slabs of the same kind on each other.",
paramtype2 = "facedir",
tiles = images,
is_ground_content = false,