From 53a8a26803e26a0e024479656afbe46a2c3c3843 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 4 Aug 2016 00:18:56 +0200 Subject: [PATCH] Add block documentation for doc_items --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 64bfaf0..d627380 100644 --- a/init.lua +++ b/init.lua @@ -32,7 +32,7 @@ end) minetest.register_node("bedrock2:bedrock", { description = "Bedrock", tiles = {"bedrock2_bedrock.png"}, - groups = {immortal=1, not_in_creative_inventory=1}, + groups = {immortal=1, not_in_creative_inventory=1, in_doc = 1 }, sounds = { footstep = { name = "bedrock2_step", gain = 1 } }, is_ground_content = false, on_blast = function() end, @@ -45,3 +45,7 @@ minetest.register_node("bedrock2:bedrock", { if minetest.get_modpath("mesecons_mvps") ~= nil then mesecon:register_mvps_stopper("bedrock2:bedrock") end + +if minetest.get_modpath("doc_items") ~= nil then + doc.sub.items.set_items_longdesc({["bedrock2:bedrock"] = "Bedrock is a very hard block. It cannot be mined, altered, destroyed or moved by any means. It appears at the bottom of the world in a flat layer."}) +end -- 2.11.4.GIT