Merge pull request #3 from Athemis/master
[MineClone.git] / mods / mobs / zombie.lua
blob7d445900c8488b78f805bb41755272796614fd8b
1 mobs:register_mob("mobs:zombie", {
2 type = "monster",
3 hp_max = 20,
4 --collisionbox = {-0.4, -1.0, -0.4, 0.4, 0.8, 0.4},
5 collisionbox = {-0.4, -1.3, -0.4, 0.4, 1, 0.4},
6 visual = "mesh",
7 mesh = "creatures_zombie.x",
8 textures = {"mobs_zombie.png"},
9 --visual_size = {x = 1.1, y = 1.1},
10 makes_footstep_sound = true,
11 view_range = 15,
12 walk_velocity = 0.8,
13 randomsound= "zombie_random",
14 run_velocity = 1.1,
15 on_rightclick = nil,
16 damage = 1,
17 drops = {
18 {name = "mobs:rotten_flesh",
19 chance = 2,
20 min = 1,
21 max = 2,},
22 {name = "default:sword_steel",
23 chance = 15,
24 min = 0,
25 max = 1,},
26 {name = "default:shovel_gold",
27 chance = 18,
28 min = 0,
29 max = 1,},
30 {name = "default:steel_ingot",
31 chance = 24,
32 min = 1,
33 max = 5,},
34 {name = "farming:carrot_item",
35 chance = 10,
36 min = 0,
37 max = 1,},
38 {name = "farming:potato_item",
39 chance = 25,
40 min = 0,
41 max = 1,},
43 armor = 100,
44 drawtype = "front",
45 lava_damage = 15,
46 light_damage = 5,
47 attack_type = "dogfight",
48 animation = {
49 speed_normal = 10,
50 speed_run = 30,
51 stand_start = 0,
52 stand_end = 79,
53 walk_start = 168,
54 walk_end = 187,
55 die_start = 162,
56 die_end = 166,