VoxeLibre/mods/ENTITIES/mobs_mc/skeleton_wither.lua

127 lines
2.4 KiB
Lua
Raw Normal View History

2017-07-05 04:15:46 +03: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 04:15:46 +03:00
--###################
--################### WITHER SKELETON
--###################
mcl_mobs.register_mob("mobs_mc:witherskeleton", {
2021-04-25 18:30:15 +03:00
description = S("Wither Skeleton"),
2017-07-05 04:15:46 +03:00
type = "monster",
2020-04-11 03:46:03 +03:00
spawn_class = "hostile",
2017-07-05 04:15:46 +03:00
hp_min = 20,
hp_max = 20,
2020-12-06 17:46:42 +03:00
xp_min = 6,
xp_max = 6,
2019-10-02 19:31:16 +03:00
breath_max = -1,
2020-11-09 20:59:08 +03:00
armor = {undead = 100, fleshy = 100},
2017-07-05 04:15:46 +03: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",
2022-10-07 05:21:32 +03:00
head_swivel = "head.control",
bone_eye_height = 2.38,
curiosity = 60,
2017-07-05 04:15:46 +03:00
textures = {
{
"mobs_mc_empty.png", -- armor
"default_tool_stonesword.png", -- sword
2022-10-07 05:21:32 +03:00
"mobs_mc_wither_skeleton.png", -- wither skeleton
}
2017-07-05 04:15:46 +03:00
},
visual_size = {x=1.2, y=1.2},
2017-07-05 04:15:46 +03:00
makes_footstep_sound = true,
sounds = {
2018-09-14 16:58:31 +03:00
random = "mobs_mc_skeleton_random",
death = "mobs_mc_skeleton_death",
damage = "mobs_mc_skeleton_hurt",
2017-07-05 04:15:46 +03:00
distance = 16,
},
walk_velocity = 1.2,
2023-03-22 00:47:20 +03:00
run_velocity = 2.0,
2017-07-05 04:15:46 +03:00
damage = 7,
2017-07-26 01:26:18 +03:00
reach = 2,
2017-07-05 04:15:46 +03:00
drops = {
2022-05-26 00:25:15 +03:00
{name = "mcl_core:coal_lump",
2017-07-05 04:15:46 +03:00
chance = 1,
min = 0,
2020-12-23 19:41:42 +03:00
max = 1,
looting = "common",},
2022-05-26 00:25:15 +03:00
{name = "mcl_mobitems:bone",
2017-07-05 04:15:46 +03:00
chance = 1,
min = 0,
2020-12-23 19:41:42 +03:00
max = 2,
looting = "common",},
2017-07-06 01:43:34 +03:00
-- Head
2022-05-26 00:25:15 +03:00
{name = "mcl_heads:wither_skeleton",
2017-07-06 01:43:34 +03:00
chance = 40, -- 2.5% chance
min = 1,
2020-12-23 19:41:42 +03:00
max = 1,
looting = "rare",},
2017-07-05 04:15:46 +03:00
},
animation = {
stand_start = 0,
stand_end = 40,
stand_speed = 15,
2017-07-05 04:15:46 +03:00
walk_start = 40,
walk_end = 60,
2017-07-26 18:04:34 +03:00
walk_speed = 15,
run_start = 40,
run_end = 60,
run_speed = 30,
2017-07-05 04:15:46 +03: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 04:15:46 +03:00
},
water_damage = 0,
2017-07-06 01:43:34 +03:00
lava_damage = 0,
fire_damage = 0,
2017-07-06 01:43:34 +03:00
light_damage = 0,
2017-07-05 04:15:46 +03:00
view_range = 16,
attack_type = "dogfight",
2017-07-05 04:15:46 +03:00
dogshoot_switch = 1,
dogshoot_count_max =0.5,
fear_height = 4,
harmed_by_heal = true,
2020-12-24 19:48:40 +03:00
fire_resistant = true,
dealt_effect = {
name = "withering",
factor = 1,
dur = 10,
},
2017-07-05 04:15:46 +03:00
})
--spawn
--[[]
2022-05-25 15:44:49 +03:00
mcl_mobs:spawn_specific(
2021-04-08 14:39:18 +03:00
"mobs_mc:witherskeleton",
"nether",
"ground",
{
"Nether",
"SoulsandValley",
2021-04-08 14:39:18 +03:00
},
0,
7,
30,
5000,
5,
2022-05-26 00:25:15 +03:00
mcl_vars.mg_nether_min,
mcl_vars.mg_nether_max)
--]]
2017-07-05 04:15:46 +03:00
-- spawn eggs
mcl_mobs.register_egg("mobs_mc:witherskeleton", S("Wither Skeleton"), "#141414", "#474d4d", 0)
mcl_mobs:non_spawn_specific("mobs_mc:witherskeleton","overworld",0,7)