Add block documentation for doc_items

master
Wuzzy 2016-08-04 00:18:56 +02:00
parent fe462ea115
commit 53a8a26803
1 changed files with 5 additions and 1 deletions

View File

@ -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