Add block documentation for doc_items
parent
fe462ea115
commit
53a8a26803
6
init.lua
6
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
|
||||
|
|
Loading…
Reference in New Issue