mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-21 15:21:22 +00:00
Temporarily remove Nest building
This commit is contained in:
parent
ebb7979953
commit
f1a9277562
1 changed files with 1 additions and 11 deletions
|
@ -124,16 +124,6 @@ creatura.register_mob("animalia:bird", {
|
||||||
utility = "animalia:return_to_nest",
|
utility = "animalia:return_to_nest",
|
||||||
get_score = function(self)
|
get_score = function(self)
|
||||||
if not self.home_position then
|
if not self.home_position then
|
||||||
local pos = self.object:get_pos()
|
|
||||||
local node = minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z})
|
|
||||||
if minetest.get_item_group(node, "leaves") > 0 then
|
|
||||||
self.home_position = self:memorize({
|
|
||||||
x = math.floor(pos.x + 0.5),
|
|
||||||
y = math.floor(pos.y + 0.5),
|
|
||||||
z = math.floor(pos.z + 0.5)
|
|
||||||
})
|
|
||||||
minetest.set_node(self.home_position, {name = "animalia:nest_song_bird"})
|
|
||||||
end
|
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
local player = self._nearby_player
|
local player = self._nearby_player
|
||||||
|
@ -247,4 +237,4 @@ creatura.register_mob("animalia:bird", {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
creatura.register_spawn_egg("animalia:bird", "ae2f2f", "f3ac1c")
|
creatura.register_spawn_egg("animalia:bird", "ae2f2f", "f3ac1c")
|
||||||
|
|
Loading…
Add table
Reference in a new issue