forked from VoxeLibre/VoxeLibre
Add new function for water nodes
This commit is contained in:
parent
9bb3d8311b
commit
0abda8ff20
|
@ -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
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
Loading…
Reference in New Issue