Remove explicit stepheight from most mobs
[MineClone/MineClone2.git] / mods / ENTITIES / mobs_mc / polar_bear.lua
blobc6f0d58489f0ae818acc8cf821493993653eae38
1 --License for code WTFPL and otherwise stated in readmes
3 local S = minetest.get_translator("mobs_mc")
5 --###################
6 --################### POLARBEAR
7 --###################
10 mobs:register_mob("mobs_mc:polar_bear", {
11 type = "animal",
12 runaway = false,
13 passive = false,
14 hp_min = 30,
15 hp_max = 30,
16 breath_max = -1,
17 collisionbox = {-0.7, -0.01, -0.7, 0.7, 1.39, 0.7},
18 visual = "mesh",
19 mesh = "mobs_mc_polarbear.b3d",
20 textures = {
21 {"mobs_mc_polarbear.png"},
23 visual_size = {x=3.0, y=3.0},
24 makes_footstep_sound = true,
25 damage = 6,
26 reach = 2,
27 walk_velocity = 1.2,
28 run_velocity = 2.4,
29 group_attack = true,
30 attack_type = "dogfight",
31 drops = {
32 -- 3/4 chance to drop raw fish (poor approximation)
33 {name = mobs_mc.items.fish_raw,
34 chance = 2,
35 min = 0,
36 max = 2,},
37 -- 1/4 to drop raw salmon
38 {name = mobs_mc.items.salmon_raw,
39 chance = 4,
40 min = 0,
41 max = 2,},
44 floats = 1,
45 fear_height = 4,
46 -- TODO: sounds
47 animation = {
48 speed_normal = 25, speed_run = 50,
49 stand_start = 0, stand_end = 0,
50 walk_start = 0, walk_end = 40,
51 run_start = 0, run_end = 40,
54 view_range = 16,
58 mobs:spawn_specific("mobs_mc:polar_bear", mobs_mc.spawn.snow, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 7000, 3, mobs_mc.spawn_height.overworld_min, mobs_mc.spawn_height.overworld_max)
60 -- spawn egg
61 mobs:register_egg("mobs_mc:polar_bear", S("Polar Bear"), "mobs_mc_spawn_icon_polarbear.png", 0)
64 if minetest.settings:get_bool("log_mods") then
65 minetest.log("action", "MC Polar Bear loaded")
66 end