Final touches

This commit is contained in:
ElCeejo 2024-01-10 17:45:08 -08:00
parent 68d484eb07
commit 8408a73851
4 changed files with 15 additions and 4 deletions

View file

@ -39,6 +39,7 @@ local generate_mobs = {
["animalia:tropical_fish"] = "Tropical Fish",
["animalia:fox"] = "Fox",
["animalia:frog"] = "Frog",
["animalia:grizzly_bear"] = "Grizzly Bear",
["animalia:horse"] = "Horse",
["animalia:pig"] = "Pig",
["animalia:rat"] = "Rat",
@ -60,6 +61,7 @@ local spawn_biomes = {
["animalia:tropical_fish"] = "ocean",
["animalia:fox"] = "boreal",
["animalia:frog"] = "swamp",
["animalia:grizzly_bear"] = "boreal",
["animalia:horse"] = "grassland",
["animalia:pig"] = "temperate",
["animalia:rat"] = "urban",

View file

@ -64,6 +64,7 @@ end
animalia.food_wheat = {}
animalia.food_seeds = {}
animalia.food_crops = {}
animalia.food_bear = {}
minetest.register_on_mods_loaded(function()
if minetest.get_modpath("farming")
@ -84,6 +85,11 @@ minetest.register_on_mods_loaded(function()
or name:match("_seed") then
table.insert(animalia.food_seeds, name)
end
if (minetest.get_item_group(name, "food_berry") > 0
and not name:find("seed"))
or minetest.get_item_group(name, "food_fish") > 0 then
table.insert(animalia.food_bear, name)
end
end
end)

View file

@ -0,0 +1,6 @@
Large, territorial Omnivores. Bears can be
found in colder forests searching for berries.
When approached too closely they will lash out
with their massive claws. Their pelt can be
harvested and crafted into a warm coat that
reduces incoming damage in cold weather.

View file

@ -47,10 +47,7 @@ creatura.register_mob("animalia:grizzly_bear", {
run = {range = {x = 81, y = 99}, speed = 20, frame_blend = 0.3, loop = true},
melee = {range = {x = 101, y = 120}, speed = 30, frame_blend = 0.3, loop = false}
},
follow = {
"group:food_berry",
"group:food_fish"
},
follow = animalia.food_bear,
drops = {
{name = "animalia:pelt_bear", min = 1, max = 3, chance = 1}
},