VoxeLibre/mods/ENTITIES/mobs_mc/skeleton_wither.lua

95 lines
2.1 KiB
Lua
Raw Normal View History

2017-07-05 03:15:46 +02:00
--MCmobs v0.4
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
local S = minetest.get_translator("mobs_mc")
2017-07-05 03:15:46 +02:00
--###################
--################### WITHER SKELETON
--###################
mobs:register_mob("mobs_mc:witherskeleton", {
type = "monster",
hp_min = 20,
hp_max = 20,
pathfinding = 1,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2.39, 0.35},
visual = "mesh",
mesh = "mobs_mc_witherskeleton.b3d",
textures = {
{
"default_tool_stonesword.png", -- sword
"mobs_mc_wither_skeleton.png", -- wither skeleton
}
2017-07-05 03:15:46 +02:00
},
visual_size = {x=3.6, y=3.6},
makes_footstep_sound = true,
sounds = {
2018-09-14 15:58:31 +02:00
random = "mobs_mc_skeleton_random",
death = "mobs_mc_skeleton_death",
damage = "mobs_mc_skeleton_hurt",
2017-07-05 03:15:46 +02:00
distance = 16,
},
walk_velocity = 1.2,
run_velocity = 2.4,
damage = 7,
2017-07-26 00:26:18 +02:00
reach = 2,
2017-07-05 03:15:46 +02:00
drops = {
{name = mobs_mc.items.coal,
chance = 1,
min = 0,
max = 1,},
{name = mobs_mc.items.bone,
chance = 1,
min = 0,
max = 2,},
2017-07-06 00:43:34 +02:00
-- Head
{name = mobs_mc.items.head_wither_skeleton,
chance = 40, -- 2.5% chance
min = 1,
2017-07-05 03:15:46 +02:00
max = 1,},
},
animation = {
stand_start = 0,
stand_end = 40,
stand_speed = 15,
2017-07-05 03:15:46 +02:00
walk_start = 40,
walk_end = 60,
2017-07-26 17:04:34 +02:00
walk_speed = 15,
run_start = 40,
run_end = 60,
run_speed = 30,
2017-07-05 03:15:46 +02:00
shoot_start = 70,
shoot_end = 90,
punch_start = 110,
punch_end = 130,
punch_speed = 25,
die_start = 160,
die_end = 170,
die_speed = 15,
die_loop = false,
2017-07-05 03:15:46 +02:00
},
water_damage = 0,
2017-07-06 00:43:34 +02:00
lava_damage = 0,
light_damage = 0,
2017-07-05 03:15:46 +02:00
view_range = 16,
attack_type = "dogfight",
dogshoot_switch = 1,
dogshoot_count_max =0.5,
blood_amount = 0,
fear_height = 4,
})
--spawn
mobs:spawn_specific("mobs_mc:witherskeleton", mobs_mc.spawn.nether_fortress, {"air"}, 0, 7, 30, 5000, 5, mobs_mc.spawn_height.nether_min, mobs_mc.spawn_height.nether_max)
2017-07-05 03:15:46 +02:00
-- spawn eggs
mobs:register_egg("mobs_mc:witherskeleton", S("Wither Skeleton"), "mobs_mc_spawn_icon_witherskeleton.png", 0)
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Wither Skeleton loaded")
end