mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Final touches
This commit is contained in:
parent
68d484eb07
commit
8408a73851
4 changed files with 15 additions and 4 deletions
|
@ -39,6 +39,7 @@ local generate_mobs = {
|
||||||
["animalia:tropical_fish"] = "Tropical Fish",
|
["animalia:tropical_fish"] = "Tropical Fish",
|
||||||
["animalia:fox"] = "Fox",
|
["animalia:fox"] = "Fox",
|
||||||
["animalia:frog"] = "Frog",
|
["animalia:frog"] = "Frog",
|
||||||
|
["animalia:grizzly_bear"] = "Grizzly Bear",
|
||||||
["animalia:horse"] = "Horse",
|
["animalia:horse"] = "Horse",
|
||||||
["animalia:pig"] = "Pig",
|
["animalia:pig"] = "Pig",
|
||||||
["animalia:rat"] = "Rat",
|
["animalia:rat"] = "Rat",
|
||||||
|
@ -60,6 +61,7 @@ local spawn_biomes = {
|
||||||
["animalia:tropical_fish"] = "ocean",
|
["animalia:tropical_fish"] = "ocean",
|
||||||
["animalia:fox"] = "boreal",
|
["animalia:fox"] = "boreal",
|
||||||
["animalia:frog"] = "swamp",
|
["animalia:frog"] = "swamp",
|
||||||
|
["animalia:grizzly_bear"] = "boreal",
|
||||||
["animalia:horse"] = "grassland",
|
["animalia:horse"] = "grassland",
|
||||||
["animalia:pig"] = "temperate",
|
["animalia:pig"] = "temperate",
|
||||||
["animalia:rat"] = "urban",
|
["animalia:rat"] = "urban",
|
||||||
|
|
6
init.lua
6
init.lua
|
@ -64,6 +64,7 @@ end
|
||||||
animalia.food_wheat = {}
|
animalia.food_wheat = {}
|
||||||
animalia.food_seeds = {}
|
animalia.food_seeds = {}
|
||||||
animalia.food_crops = {}
|
animalia.food_crops = {}
|
||||||
|
animalia.food_bear = {}
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
minetest.register_on_mods_loaded(function()
|
||||||
if minetest.get_modpath("farming")
|
if minetest.get_modpath("farming")
|
||||||
|
@ -84,6 +85,11 @@ minetest.register_on_mods_loaded(function()
|
||||||
or name:match("_seed") then
|
or name:match("_seed") then
|
||||||
table.insert(animalia.food_seeds, name)
|
table.insert(animalia.food_seeds, name)
|
||||||
end
|
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
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
6
libri/animalia_libri_grizzly_bear.txt
Normal file
6
libri/animalia_libri_grizzly_bear.txt
Normal 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.
|
|
@ -47,10 +47,7 @@ creatura.register_mob("animalia:grizzly_bear", {
|
||||||
run = {range = {x = 81, y = 99}, speed = 20, frame_blend = 0.3, loop = true},
|
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}
|
melee = {range = {x = 101, y = 120}, speed = 30, frame_blend = 0.3, loop = false}
|
||||||
},
|
},
|
||||||
follow = {
|
follow = animalia.food_bear,
|
||||||
"group:food_berry",
|
|
||||||
"group:food_fish"
|
|
||||||
},
|
|
||||||
drops = {
|
drops = {
|
||||||
{name = "animalia:pelt_bear", min = 1, max = 3, chance = 1}
|
{name = "animalia:pelt_bear", min = 1, max = 3, chance = 1}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue