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: VoxeLibre/VoxeLibre#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:
parent
6dad5afec5
commit
12214c5bd6
|
@ -52,7 +52,7 @@ local salmon = {
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
swim = true,
|
swim = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
fly_in = "mcl_core:water_source",
|
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
||||||
breathes_in_water = true,
|
breathes_in_water = true,
|
||||||
jump = false,
|
jump = false,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
|
|
|
@ -97,7 +97,7 @@ local tropical_fish = {
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
swim = true,
|
swim = true,
|
||||||
fly = true,
|
fly = true,
|
||||||
fly_in = "mcl_core:water_source",
|
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
||||||
breathes_in_water = true,
|
breathes_in_water = true,
|
||||||
jump = false,
|
jump = false,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
|
|
|
@ -40,7 +40,7 @@ local function hut_placement_callback(pos,def,pr)
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_structures.register_structure("witch_hut",{
|
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,
|
fill_ratio = 0.01,
|
||||||
flags = "place_center_x, place_center_z, liquid_surface, force_placement",
|
flags = "place_center_x, place_center_z, liquid_surface, force_placement",
|
||||||
sidelen = 8,
|
sidelen = 8,
|
||||||
|
|
Loading…
Reference in New Issue