fix grounding on sharks beach

This commit is contained in:
R-one 2017-12-24 13:20:51 +01:00
parent 04474de70c
commit 18c07cf7ae
1 changed files with 8 additions and 2 deletions

View File

@ -54,6 +54,8 @@ if mobs.mod and mobs.mod == "redo" then
makes_footstep_sound = false, makes_footstep_sound = false,
walk_velocity = 4, walk_velocity = 4,
run_velocity = 6, run_velocity = 6,
jump = false,
stepheight = 0.1,
fly = true, fly = true,
fly_in = "default:water_source", fly_in = "default:water_source",
fall_speed = 0, fall_speed = 0,
@ -63,7 +65,7 @@ if mobs.mod and mobs.mod == "redo" then
lava_damage = 10, lava_damage = 10,
light_damage = 0, light_damage = 0,
animation = l_anims, animation = l_anims,
do_custom = function(self) --[[do_custom = function(self)
if HELP_WITH_EXPERIMENT then if HELP_WITH_EXPERIMENT then
local p = self.object:getpos() local p = self.object:getpos()
local a = self.object:getvelocity() local a = self.object:getvelocity()
@ -78,7 +80,7 @@ if mobs.mod and mobs.mod == "redo" then
end end
self.object:setvelocity(a) self.object:setvelocity(a)
end end
end end]]
}) })
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height --name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs_sharks:shark_lg", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, 0) mobs:spawn_specific("mobs_sharks:shark_lg", l_spawn_in, l_spawn_near, -1, 20, 30, l_spawn_chance, 1, -31000, 0)
@ -103,6 +105,8 @@ if mobs.mod and mobs.mod == "redo" then
makes_footstep_sound = false, makes_footstep_sound = false,
walk_velocity = 2, walk_velocity = 2,
run_velocity = 4, run_velocity = 4,
jump = false,
stepheight = 0.1,
fly = true, fly = true,
fly_in = "default:water_source", fly_in = "default:water_source",
fall_speed = -1, fall_speed = -1,
@ -136,6 +140,8 @@ if mobs.mod and mobs.mod == "redo" then
makes_footstep_sound = false, makes_footstep_sound = false,
walk_velocity = 2, walk_velocity = 2,
run_velocity = 4, run_velocity = 4,
jump = false,
stepheight = 0.1,
fly = true, fly = true,
fly_in = "default:water_source", fly_in = "default:water_source",
fall_speed = -1, fall_speed = -1,