mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-07 01:50:24 +02:00
first some changes for help modpack
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user