mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
add spring
This commit is contained in:
parent
09be5d3d5f
commit
697020f08c
2 changed files with 30 additions and 0 deletions
1
mods/spring/depends.txt
Normal file
1
mods/spring/depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
default
|
29
mods/spring/init.lua
Normal file
29
mods/spring/init.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
minetest.register_node("default:water_spring",{
|
||||
description = "Water Spring",
|
||||
tiles = {"default_water.png"},
|
||||
})
|
||||
|
||||
minetest.register_node("default:lava_spring",{
|
||||
description = "Lava Spring",
|
||||
tiles = {"default_lava.png"},
|
||||
})
|
||||
|
||||
-- if minetest.setting_getbool("liquid_finite") then
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:water_spring"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos,node)
|
||||
minetest.env:set_node(pos,{name = "default:water_source", param2=128})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:lava_spring"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos,node)
|
||||
minetest.env:set_node(pos,{name = "default:lava_source", param2=128})
|
||||
end
|
||||
})
|
||||
-- end
|
Loading…
Add table
Reference in a new issue