1
0
Fork 0
MineClone2/mods/ENTITIES/mobs_mc/villager_illusioner.lua

56 lines
1.3 KiB
Lua
Raw Normal View History

2017-07-05 01:15:46 +00:00
--MCmobs v0.4
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
mobs:register_mob("mobs_mc:illusioner", {
type = "monster",
attack_type = "shoot",
shoot_interval = 0.5,
arrow = "mobs_mc:arrow_entity",
shoot_offset = 1.5,
hp_min = 32,
hp_max = 32,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_illusioner.b3d",
2017-09-13 21:13:47 +00:00
textures = { {
"mobs_mc_illusionist.png",
"mobs_mc_illusionist.png", --hat
"mcl_bows_bow.png",
2017-09-13 21:13:47 +00:00
}, },
2017-07-05 01:15:46 +00:00
visual_size = {x=3, y=3},
walk_velocity = 0.6,
run_velocity = 2,
jump = true,
animation = {
2018-05-30 15:34:38 +00:00
stand_speed = 25,
2017-07-05 01:15:46 +00:00
stand_start = 40,
stand_end = 59,
2018-05-30 15:34:38 +00:00
walk_speed = 25,
2017-07-05 01:15:46 +00:00
walk_start = 0,
walk_end = 40,
2018-05-30 15:34:38 +00:00
run_speed = 25,
2017-09-13 21:13:47 +00:00
shoot_start = 150,
shoot_end = 170,
2018-05-30 15:34:38 +00:00
die_speed = 15,
die_start = 170,
die_end = 180,
die_loop = false,
2017-09-13 21:13:47 +00:00
-- 120-140 magic arm swinging, 140-150 transition between magic to bow shooting
2017-07-05 01:15:46 +00:00
},
view_range = 16,
fear_height = 4,
lava_damage = 4,
})
mobs:register_egg("mobs_mc:illusioner", S("Illusioner"), "mobs_mc_spawn_icon_illusioner.png", 0)
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Illusioner loaded")
end