Merge remote-tracking branch 'github-rone/master'

This commit is contained in:
2021-03-02 22:52:22 +01:00
5 changed files with 47 additions and 6 deletions

View File

@ -58,6 +58,9 @@ if mobs.mod and mobs.mod == "redo" then
run_velocity = 0.3,
jump = false,
fly = false,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
},
floats = 1,
water_damage = 0,
lava_damage = 5,
@ -67,9 +70,15 @@ if mobs.mod and mobs.mod == "redo" then
follow = "farming:carrot",
on_rightclick = function(self, clicker)
self.state = ""
set_velocity(self, 0)
--set_velocity(self, 0)
self.object:setvelocity({
--local yaw = (self.object:get_yaw() or 0) + self.rotate
x = 0, --sin(yaw) * -v
y = self.object:getvelocity().y,
z = 0 --cos(yaw) * v
})
self.object:set_animation({x=self.animation.hide_start, y=self.animation.hide_end}, self.animation.speed_normal, 0)
minetest.after(5, function()
minetest.after(5, function()
self.state = "stand"
end)
mobs:capture_mob(self, clicker, 0, 80, 100, true, nil)
@ -103,6 +112,9 @@ if mobs.mod and mobs.mod == "redo" then
jump = false,
fly = true,
fly_in = "default:water_source",
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
},
fall_speed = 0,
floats = 1,
water_damage = 0,