1
0
Fork 0

Add new function for water nodes

This commit is contained in:
FossFanatic 2023-02-18 08:25:08 +00:00
parent 9bb3d8311b
commit 0abda8ff20
1 changed files with 5 additions and 0 deletions

View File

@ -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} return {name = minetest.get_node(pos).name, param2 = mcl_util.get_palette_indexes_from_pos(pos).foliage_palette_index}
end 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 -- Spread grass blocks and mycelium on neighbor dirt
------------------------------ ------------------------------