From 1b3a2550f112de0db32d539be15b6074f73a8714 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Mar 2017 18:01:28 +0100 Subject: [PATCH] Add help texts for deco and building blocks --- mods/ITEMS/mcl_books/init.lua | 1 + mods/ITEMS/mcl_core/depends.txt | 1 + mods/ITEMS/mcl_core/nodes.lua | 13 +++++++++++++ mods/ITEMS/mcl_heads/init.lua | 4 ++-- mods/ITEMS/mcl_nether/depends.txt | 1 + mods/ITEMS/mcl_nether/init.lua | 5 +++++ 6 files changed, 23 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_books/init.lua b/mods/ITEMS/mcl_books/init.lua index a7fb27c3..ce573019 100644 --- a/mods/ITEMS/mcl_books/init.lua +++ b/mods/ITEMS/mcl_books/init.lua @@ -176,6 +176,7 @@ end) -- Bookshelf minetest.register_node("mcl_books:bookshelf", { description = "Bookshelf", + _doc_items_longdesc = "Bookshelves are used for decoration.", tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"}, stack_max = 64, is_ground_content = false, diff --git a/mods/ITEMS/mcl_core/depends.txt b/mods/ITEMS/mcl_core/depends.txt index 78b6676b..7419775c 100644 --- a/mods/ITEMS/mcl_core/depends.txt +++ b/mods/ITEMS/mcl_core/depends.txt @@ -1,3 +1,4 @@ mcl_init mcl_sounds mcl_util +doc_items diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index fdbd6558..234ec229 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -237,6 +237,7 @@ minetest.register_node("mcl_core:stone_with_diamond", { minetest.register_node("mcl_core:stonebrick", { description = "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, deco_block=1, material_stone=1}, @@ -248,6 +249,7 @@ minetest.register_node("mcl_core:stonebrick", { minetest.register_node("mcl_core:stonebrickcarved", { description = "Chiseled Stone Bricks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_stonebrick_carved.png"}, is_ground_content = false, stack_max = 64, @@ -260,6 +262,7 @@ minetest.register_node("mcl_core:stonebrickcarved", { minetest.register_node("mcl_core:stonebrickcracked", { description = "Cracked Stone Bricks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_stonebrick_cracked.png"}, is_ground_content = false, stack_max = 64, @@ -272,6 +275,7 @@ minetest.register_node("mcl_core:stonebrickcracked", { minetest.register_node("mcl_core:stonebrickmossy", { description = "Mossy Stone Bricks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_stonebrick_mossy.png"}, stack_max = 64, groups = {pickaxey=1, stone=1, stonebrick=1, building_block=1, deco_block=1, material_stone=1}, @@ -597,6 +601,7 @@ minetest.register_node("mcl_core:brick_block", { minetest.register_node("mcl_core:bone_block", { description = "Bone Block", + _doc_items_longdesc = "Bone blocks are decorational 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", @@ -681,6 +686,7 @@ minetest.register_node("mcl_core:leaves", { minetest.register_node("mcl_core:wood", { description = "Oak Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_wood.png"}, stack_max = 64, is_ground_content = false, @@ -761,6 +767,7 @@ minetest.register_node("mcl_core:darkleaves", { minetest.register_node("mcl_core:darkwood", { description = "Dark Oak Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_planks_big_oak.png"}, stack_max = 64, is_ground_content = false, @@ -809,6 +816,7 @@ minetest.register_node("mcl_core:jungletree", { minetest.register_node("mcl_core:junglewood", { description = "Jungle Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_junglewood.png"}, stack_max = 64, is_ground_content = false, @@ -886,6 +894,7 @@ minetest.register_node("mcl_core:acaciatree", { minetest.register_node("mcl_core:acaciawood", { description = "Acacia Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_acaciawood.png"}, stack_max = 64, is_ground_content = false, @@ -961,6 +970,7 @@ minetest.register_node("mcl_core:sprucetree", { minetest.register_node("mcl_core:sprucewood", { description = "Spruce Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_sprucewood.png"}, stack_max = 64, is_ground_content = false, @@ -1042,6 +1052,7 @@ minetest.register_node("mcl_core:birchtree", { minetest.register_node("mcl_core:birchwood", { description = "Birch Wood Planks", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_planks_birch.png"}, stack_max = 64, is_ground_content = false, @@ -1552,6 +1563,7 @@ minetest.register_node("mcl_core:lava_source", { minetest.register_node("mcl_core:cobble", { description = "Cobblestone", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_cobble.png"}, is_ground_content = false, stack_max = 64, @@ -1563,6 +1575,7 @@ minetest.register_node("mcl_core:cobble", { minetest.register_node("mcl_core:mossycobble", { description = "Moss Stone", + _doc_items_longdesc = doc.sub.items.temp.build, tiles = {"default_mossycobble.png"}, is_ground_content = false, stack_max = 64, diff --git a/mods/ITEMS/mcl_heads/init.lua b/mods/ITEMS/mcl_heads/init.lua index 62299c88..ce68cb8b 100644 --- a/mods/ITEMS/mcl_heads/init.lua +++ b/mods/ITEMS/mcl_heads/init.lua @@ -39,8 +39,8 @@ local function addhead(node, desc, longdesc) end -- Add heads -addhead("zombie", "Zombie Head", "A zombie heads is a small decorative block which resembles the head of a zombie.") -addhead("creeper", "Creeper Head", "A creeper heads is a small decorative block which resembles the head of a creeper.") +addhead("zombie", "Zombie Head", "A zombie head is a small decorative block which resembles the head of a zombie.") +addhead("creeper", "Creeper Head", "A creeper head is a small decorative block which resembles the head of a creeper.") -- Original Minecraft name: “Head” addhead("steve", "Human Head", "A human head is a small decorative block which resembles the head of a human (i.e. a player character).") addhead("skeleton", "Skeleton Skull", "A skeleton skull is a small decorative block which resembles the head of a skeleton.") diff --git a/mods/ITEMS/mcl_nether/depends.txt b/mods/ITEMS/mcl_nether/depends.txt index 0e641cef..8e0c0acd 100644 --- a/mods/ITEMS/mcl_nether/depends.txt +++ b/mods/ITEMS/mcl_nether/depends.txt @@ -1,3 +1,4 @@ mcl_sounds mcl_util walkover +doc_items diff --git a/mods/ITEMS/mcl_nether/init.lua b/mods/ITEMS/mcl_nether/init.lua index 4e209829..bad187f2 100644 --- a/mods/ITEMS/mcl_nether/init.lua +++ b/mods/ITEMS/mcl_nether/init.lua @@ -84,6 +84,7 @@ minetest.register_node("mcl_nether:soul_sand", { minetest.register_node("mcl_nether:nether_brick", { -- Original name: Nether Brick description = "Nether Brick Block", + _doc_items_longdesc = doc.sub.items.temp.build, stack_max = 64, tiles = {"mcl_nether_nether_brick.png"}, is_ground_content = false, @@ -96,6 +97,7 @@ minetest.register_node("mcl_nether:nether_brick", { minetest.register_node("mcl_nether:red_nether_brick", { -- Original name: Red Nether Brick description = "Red Nether Brick Block", + _doc_items_longdesc = doc.sub.items.temp.build, stack_max = 64, tiles = {"mcl_nether_red_nether_brick.png"}, is_ground_content = false, @@ -125,6 +127,7 @@ minetest.register_node("mcl_nether:nether_wart_block", { minetest.register_node("mcl_nether:quartz_block", { description = "Block of Quartz", + _doc_items_longdesc = doc.sub.items.temp.build, stack_max = 64, is_ground_content = false, tiles = {"mcl_nether_quartz_block_top.png", "mcl_nether_quartz_block_bottom.png", "mcl_nether_quartz_block_side.png"}, @@ -136,6 +139,7 @@ minetest.register_node("mcl_nether:quartz_block", { minetest.register_node("mcl_nether:quartz_chiseled", { description = "Chiseled Quartz Block", + _doc_items_longdesc = doc.sub.items.temp.build, stack_max = 64, is_ground_content = false, tiles = {"mcl_nether_quartz_chiseled_top.png", "mcl_nether_quartz_chiseled_top.png", "mcl_nether_quartz_chiseled_side.png"}, @@ -147,6 +151,7 @@ minetest.register_node("mcl_nether:quartz_chiseled", { minetest.register_node("mcl_nether:quartz_pillar", { description = "Pillar Quartz Block", + _doc_items_longdesc = doc.sub.items.temp.build, stack_max = 64, paramtype2 = "facedir", is_ground_content = false,