first some changes for help modpack

This commit is contained in:
DS-Minetest
2017-01-06 16:33:50 +01:00
parent 7415036f5b
commit ec3a0c5f58
31 changed files with 229 additions and 24 deletions

View File

@ -189,7 +189,10 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
sounds = default.node_sound_stone_defaults(),
mesecons = {effector = {
action_on = commandblock_action_on
}}
}},
-- doc support:
_doc_items_longdesc = "There is no crafting recipe as this should only be available for server admins."..
" Quite similar to the Minecraft counterpart. Executes server commands.",
})
minetest.register_node("mesecons_commandblock:commandblock_on", {
@ -206,3 +209,8 @@ minetest.register_node("mesecons_commandblock:commandblock_on", {
action_off = commandblock_action_off
}}
})
-- doc support:
if minetest.get_modpath("doc") and minetest.get_modpath("doc_items") then
doc.add_entry_alias("nodes", "mesecons_commandblock:commandblock_off", "nodes", "mesecons_commandblock:commandblock_on")
end