Version MFF.
0
mesecons_hydroturbine/depends.txt
Normal file → Executable file
4
mesecons_hydroturbine/init.lua
Normal file → Executable file
@ -59,7 +59,7 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
||||
if minetest.get_node(waterpos).name=="default:water_flowing" then
|
||||
if minetest.get_node(waterpos).name=="default:water_flowing" or minetest.get_node(waterpos).name == "default:river_water_flowing" then
|
||||
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"})
|
||||
nodeupdate(pos)
|
||||
mesecon.receptor_on(pos)
|
||||
@ -73,7 +73,7 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_on"},
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
||||
if minetest.get_node(waterpos).name~="default:water_flowing" then
|
||||
if minetest.get_node(waterpos).name~="default:water_flowing" or minetest.get_node(waterpos).name ~= "default:river_water_flowing" then
|
||||
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"})
|
||||
nodeupdate(pos)
|
||||
mesecon.receptor_off(pos)
|
||||
|
0
mesecons_hydroturbine/models/jeija_hydro_turbine.obj
Normal file → Executable file
BIN
mesecons_hydroturbine/textures/jeija_hydro_turbine_inv.png
Normal file → Executable file
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
BIN
mesecons_hydroturbine/textures/jeija_hydro_turbine_sides_off.png
Normal file → Executable file
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 776 B |
BIN
mesecons_hydroturbine/textures/jeija_hydro_turbine_sides_on.png
Normal file → Executable file
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 754 B |
0
mesecons_hydroturbine/textures/jeija_hydro_turbine_top_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
BIN
mesecons_hydroturbine/textures/jeija_hydro_turbine_turbine_misc.png
Normal file → Executable file
Before Width: | Height: | Size: 820 B After Width: | Height: | Size: 729 B |
0
mesecons_hydroturbine/textures/jeija_hydro_turbine_turbine_top_bottom.png
Normal file → Executable file
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 496 B |