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

@ -24,7 +24,9 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
sounds = default.node_sound_stone_defaults(),
mesecons = {receptor = {
state = mesecon.state.off
}}
}},
-- doc support:
_doc_items_longdesc = "Water turbines are receptors that turn on if flowing water is above them."
})
minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
@ -49,9 +51,16 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
sounds = default.node_sound_stone_defaults(),
mesecons = {receptor = {
state = mesecon.state.on
}}
}},
-- doc support:
_doc_items_create_entry = false
})
-- doc support:
if minetest.get_modpath("doc") and minetest.get_modpath("doc_items") then
doc.add_entry_alias("nodes", "mesecons_hydroturbine:hydro_turbine_off", "nodes", "mesecons_hydroturbine:hydro_turbine_on")
end
local function is_flowing_water(pos)
local name = minetest.get_node(pos).name