mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-13 13:50:27 +02:00
protect/capture returns added
This commit is contained in:
@ -45,12 +45,9 @@ mobs:register_mob("mobs_animal:kitten", {
|
||||
view_range = 8,
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 4, true, true) then
|
||||
return
|
||||
end
|
||||
|
||||
mobs:protect(self, clicker)
|
||||
mobs:capture_mob(self, clicker, 50, 50, 90, false, nil)
|
||||
if mobs:feed_tame(self, clicker, 4, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 50, 50, 90, false, nil) then return end
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user