Temporarily remove Nest building

This commit is contained in:
ElCeejo 2022-03-31 19:26:15 -07:00 committed by GitHub
parent ebb7979953
commit f1a9277562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

@ -124,16 +124,6 @@ creatura.register_mob("animalia:bird", {
utility = "animalia:return_to_nest",
get_score = function(self)
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
end
local player = self._nearby_player
@ -247,4 +237,4 @@ creatura.register_mob("animalia:bird", {
end
})
creatura.register_spawn_egg("animalia:bird", "ae2f2f", "f3ac1c")
creatura.register_spawn_egg("animalia:bird", "ae2f2f", "f3ac1c")