1
0
Fork 0

#1976 Make river water 20%-transparent

This commit is contained in:
kay27 2022-03-17 04:39:53 +04:00
parent 8eb0edaf51
commit b91d8875f3
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

After

Width:  |  Height:  |  Size: 508 B

View File

@ -48,7 +48,7 @@ local function on_placed(place, rotation, pr, size)
if not nn then break end if not nn then break end
local node = minetest.registered_nodes[nn] local node = minetest.registered_nodes[nn]
local groups = node.groups local groups = node.groups
if nn == "mcl_flowers:waterlily" or nn == "mcl_core:water_source" or nn == "mcl_core:water_flowing" or nn == "air" or groups.deco_block then if nn == "mcl_flowers:waterlily" or nn == "mcl_core:river_water_source" or nn == "mcl_core:water_source" or nn == "mcl_core:water_flowing" or nn == "air" or groups.deco_block then
minetest.swap_node(tpos, {name="mcl_core:tree"}) minetest.swap_node(tpos, {name="mcl_core:tree"})
else else
break break
@ -101,7 +101,7 @@ mcl_structures.register_structure({
decoration = { decoration = {
deco_type = "simple", deco_type = "simple",
place_on = node_list, place_on = node_list,
spawn_by = {"mcl_core:water_source", "group:frosted_ice"}, spawn_by = {"mcl_core:river_water_source", "mcl_core:water_source", "group:frosted_ice"},
num_spawn_by = 1, num_spawn_by = 1,
-- flags = "all_floors", -- flags = "all_floors",
fill_ratio = scanning_ratio, fill_ratio = scanning_ratio,