mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
Add new function for water nodes
This commit is contained in:
parent
9bb3d8311b
commit
0abda8ff20
1 changed files with 5 additions and 0 deletions
|
@ -812,6 +812,11 @@ function mcl_core.get_foliage_block_type(pos)
|
|||
return {name = minetest.get_node(pos).name, param2 = mcl_util.get_palette_indexes_from_pos(pos).foliage_palette_index}
|
||||
end
|
||||
|
||||
-- Return appropriate water block node for pos
|
||||
function mcl_core.get_water_block_type(pos)
|
||||
return {name = minetest.get_node(pos).name, param2 = mcl_util.get_palette_indexes_from_pos(pos).water_palette_index}
|
||||
end
|
||||
|
||||
------------------------------
|
||||
-- Spread grass blocks and mycelium on neighbor dirt
|
||||
------------------------------
|
||||
|
|
Loading…
Reference in a new issue