Allow salmon, tropical fish, witch huts in rivers (#4605)

As witch huts use flag "liquid_surface", place_on only can be water. If we want on-shore witch huts, this needs to be solved differently.
Also, probably no witch huts in deep ocean swamp water?

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4605
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
kno10 2024-08-31 10:16:43 +02:00 committed by the-real-herowl
parent 6dad5afec5
commit 12214c5bd6
3 changed files with 3 additions and 3 deletions

@ -52,7 +52,7 @@ local salmon = {
makes_footstep_sound = false,
swim = true,
fly = true,
fly_in = "mcl_core:water_source",
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
breathes_in_water = true,
jump = false,
view_range = 16,

@ -97,7 +97,7 @@ local tropical_fish = {
makes_footstep_sound = false,
swim = true,
fly = true,
fly_in = "mcl_core:water_source",
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
breathes_in_water = true,
jump = false,
view_range = 16,

@ -40,7 +40,7 @@ local function hut_placement_callback(pos,def,pr)
end
mcl_structures.register_structure("witch_hut",{
place_on = {"group:sand","group:grass_block","mcl_core:water_source","group:dirt"},
place_on = {"mcl_core:water_source","mclx_core:river_water_source"},
fill_ratio = 0.01,
flags = "place_center_x, place_center_z, liquid_surface, force_placement",
sidelen = 8,