Update death animations of some mobs
[MineClone/MineClone2.git] / mods / ENTITIES / mobs_mc / villager_illusioner.lua
blob7d50ecd206a8baceb9acd6cab0e21b8e588f0b7c
1 --MCmobs v0.4
2 --maikerumine
3 --made for MC like Survival game
4 --License for code WTFPL and otherwise stated in readmes
6 -- intllib
7 local MP = minetest.get_modpath(minetest.get_current_modname())
8 local S, NS = dofile(MP.."/intllib.lua")
10 mobs:register_mob("mobs_mc:illusioner", {
11 type = "monster",
12 attack_type = "shoot",
13 shoot_interval = 0.5,
14 arrow = "mobs_mc:arrow_entity",
15 shoot_offset = 1.5,
16 hp_min = 32,
17 hp_max = 32,
18 collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
19 visual = "mesh",
20 mesh = "mobs_mc_illusioner.b3d",
21 textures = { {
22 "mobs_mc_illusionist.png",
23 "mobs_mc_illusionist.png", --hat
24 "mcl_bows_bow.png",
25 }, },
26 visual_size = {x=3, y=3},
27 walk_velocity = 0.6,
28 run_velocity = 2,
29 jump = true,
30 animation = {
31 stand_speed = 25,
32 stand_start = 40,
33 stand_end = 59,
34 walk_speed = 25,
35 walk_start = 0,
36 walk_end = 40,
37 run_speed = 25,
38 shoot_start = 150,
39 shoot_end = 170,
40 die_speed = 15,
41 die_start = 170,
42 die_end = 180,
43 die_loop = false,
44 -- 120-140 magic arm swinging, 140-150 transition between magic to bow shooting
46 view_range = 16,
47 fear_height = 4,
48 lava_damage = 4,
51 mobs:register_egg("mobs_mc:illusioner", S("Illusioner"), "mobs_mc_spawn_icon_illusioner.png", 0)
53 if minetest.settings:get_bool("log_mods") then
54 minetest.log("action", "MC Illusioner loaded")
55 end