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
|
|
|
|
|
2022-02-13 20:40:12 +00:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-07-05 01:15:46 +00:00
|
|
|
|
|
|
|
--###################
|
|
|
|
--################### WITHER SKELETON
|
|
|
|
--###################
|
|
|
|
|
|
|
|
mobs:register_mob("mobs_mc:witherskeleton", {
|
2021-04-25 15:30:15 +00:00
|
|
|
description = S("Wither Skeleton"),
|
2017-07-05 01:15:46 +00:00
|
|
|
type = "monster",
|
2020-04-11 00:46:03 +00:00
|
|
|
spawn_class = "hostile",
|
2017-07-05 01:15:46 +00:00
|
|
|
hp_min = 20,
|
|
|
|
hp_max = 20,
|
2020-12-06 14:46:42 +00:00
|
|
|
xp_min = 6,
|
|
|
|
xp_max = 6,
|
2019-10-02 16:31:16 +00:00
|
|
|
breath_max = -1,
|
2020-11-09 17:59:08 +00:00
|
|
|
armor = {undead = 100, fleshy = 100},
|
2017-07-05 01:15:46 +00:00
|
|
|
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 = {
|
2018-05-30 15:11:07 +00:00
|
|
|
{
|
2021-04-14 23:51:17 +00:00
|
|
|
"mobs_mc_empty.png", -- armor
|
2018-05-30 15:11:07 +00:00
|
|
|
"mobs_mc_wither_skeleton.png", -- wither skeleton
|
2021-04-14 23:51:17 +00:00
|
|
|
"default_tool_stonesword.png", -- sword
|
2018-05-30 15:11:07 +00:00
|
|
|
}
|
2017-07-05 01:15:46 +00:00
|
|
|
},
|
2021-04-14 23:51:17 +00:00
|
|
|
visual_size = {x=1.2, y=1.2},
|
2017-07-05 01:15:46 +00:00
|
|
|
makes_footstep_sound = true,
|
|
|
|
sounds = {
|
2018-09-14 13:58:31 +00:00
|
|
|
random = "mobs_mc_skeleton_random",
|
|
|
|
death = "mobs_mc_skeleton_death",
|
|
|
|
damage = "mobs_mc_skeleton_hurt",
|
2017-07-05 01:15:46 +00:00
|
|
|
distance = 16,
|
|
|
|
},
|
|
|
|
walk_velocity = 1.2,
|
|
|
|
run_velocity = 2.4,
|
|
|
|
damage = 7,
|
2017-07-25 22:26:18 +00:00
|
|
|
reach = 2,
|
2017-07-05 01:15:46 +00:00
|
|
|
drops = {
|
|
|
|
{name = mobs_mc.items.coal,
|
|
|
|
chance = 1,
|
|
|
|
min = 0,
|
2020-12-23 16:41:42 +00:00
|
|
|
max = 1,
|
|
|
|
looting = "common",},
|
2017-07-05 01:15:46 +00:00
|
|
|
{name = mobs_mc.items.bone,
|
|
|
|
chance = 1,
|
|
|
|
min = 0,
|
2020-12-23 16:41:42 +00:00
|
|
|
max = 2,
|
|
|
|
looting = "common",},
|
2017-07-05 22:43:34 +00:00
|
|
|
|
|
|
|
-- Head
|
|
|
|
{name = mobs_mc.items.head_wither_skeleton,
|
|
|
|
chance = 40, -- 2.5% chance
|
|
|
|
min = 1,
|
2020-12-23 16:41:42 +00:00
|
|
|
max = 1,
|
|
|
|
looting = "rare",},
|
2017-07-05 01:15:46 +00:00
|
|
|
},
|
|
|
|
animation = {
|
|
|
|
stand_start = 0,
|
|
|
|
stand_end = 40,
|
2018-05-30 15:11:07 +00:00
|
|
|
stand_speed = 15,
|
2017-07-05 01:15:46 +00:00
|
|
|
walk_start = 40,
|
|
|
|
walk_end = 60,
|
2017-07-26 15:04:34 +00:00
|
|
|
walk_speed = 15,
|
|
|
|
run_start = 40,
|
|
|
|
run_end = 60,
|
|
|
|
run_speed = 30,
|
2017-07-05 01:15:46 +00:00
|
|
|
shoot_start = 70,
|
|
|
|
shoot_end = 90,
|
2018-05-30 15:11:07 +00:00
|
|
|
punch_start = 110,
|
|
|
|
punch_end = 130,
|
|
|
|
punch_speed = 25,
|
|
|
|
die_start = 160,
|
|
|
|
die_end = 170,
|
|
|
|
die_speed = 15,
|
|
|
|
die_loop = false,
|
2017-07-05 01:15:46 +00:00
|
|
|
},
|
|
|
|
water_damage = 0,
|
2017-07-05 22:43:34 +00:00
|
|
|
lava_damage = 0,
|
2019-10-02 16:43:48 +00:00
|
|
|
fire_damage = 0,
|
2017-07-05 22:43:34 +00:00
|
|
|
light_damage = 0,
|
2017-07-05 01:15:46 +00:00
|
|
|
view_range = 16,
|
2022-02-13 20:40:12 +00:00
|
|
|
attack_type = "dogfight",
|
2017-07-05 01:15:46 +00:00
|
|
|
dogshoot_switch = 1,
|
|
|
|
dogshoot_count_max =0.5,
|
|
|
|
fear_height = 4,
|
2020-07-12 20:56:41 +00:00
|
|
|
harmed_by_heal = true,
|
2020-12-24 16:48:40 +00:00
|
|
|
fire_resistant = true,
|
2017-07-05 01:15:46 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
--spawn
|
2021-04-08 11:39:18 +00:00
|
|
|
mobs:spawn_specific(
|
|
|
|
"mobs_mc:witherskeleton",
|
|
|
|
"nether",
|
|
|
|
"ground",
|
|
|
|
{
|
|
|
|
"Nether"
|
|
|
|
},
|
|
|
|
0,
|
|
|
|
7,
|
|
|
|
30,
|
|
|
|
5000,
|
|
|
|
5,
|
|
|
|
mobs_mc.spawn_height.nether_min,
|
|
|
|
mobs_mc.spawn_height.nether_max)
|
2017-08-16 20:08:17 +00:00
|
|
|
|
2017-07-05 01:15:46 +00:00
|
|
|
-- spawn eggs
|
2021-04-14 23:51:17 +00:00
|
|
|
mobs:register_egg("mobs_mc:witherskeleton", S("Wither Skeleton"), "mobs_mc_spawn_icon_witherskeleton.png", 0)
|