forked from VoxeLibre/VoxeLibre
Fix mob breeding
This commit is contained in:
parent
9f971ab1a6
commit
09b4cc6f3a
|
@ -20,6 +20,11 @@ MOB_CAP.passive = 10
|
||||||
MOB_CAP.ambient = 15
|
MOB_CAP.ambient = 15
|
||||||
MOB_CAP.water = 15
|
MOB_CAP.water = 15
|
||||||
|
|
||||||
|
function mcl_mobs:feed_tame(...) return mobs:feed_tame(...) end
|
||||||
|
--function mcl_mobs:spawn_child(...) return end
|
||||||
|
function mcl_mobs:capture(...) return mobs:capture(...) end
|
||||||
|
function mcl_mobs:protect(...) return mobs:protect(...) end
|
||||||
|
|
||||||
-- Localize
|
-- Localize
|
||||||
local S = minetest.get_translator("mcl_mobs")
|
local S = minetest.get_translator("mcl_mobs")
|
||||||
|
|
||||||
|
@ -563,7 +568,7 @@ function mcl_mobs:register_egg(mob, desc, background, addegg, no_creative)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- feeding, taming and breeding (thanks blert2112)
|
-- feeding, taming and breeding (thanks blert2112)
|
||||||
function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
|
--[[]function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
|
||||||
if not self.follow then
|
if not self.follow then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
@ -632,7 +637,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
-- Spawn a child
|
-- Spawn a child
|
||||||
function mcl_mobs:spawn_child(pos, mob_type)
|
function mcl_mobs:spawn_child(pos, mob_type)
|
||||||
local child = minetest.add_entity(pos, mob_type)
|
local child = minetest.add_entity(pos, mob_type)
|
||||||
|
|
Loading…
Reference in New Issue