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
|
|
|
|
|
2022-02-13 22:40:12 +02:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-07-05 04:15:46 +03:00
|
|
|
|
|
|
|
--###################
|
|
|
|
--################### VINDICATOR
|
|
|
|
--###################
|
|
|
|
|
|
|
|
|
2022-05-25 15:44:49 +03:00
|
|
|
mcl_mobs:register_mob("mobs_mc:vindicator", {
|
2021-04-25 18:30:15 +03:00
|
|
|
description = S("Vindicator"),
|
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
|
|
|
physical = false,
|
|
|
|
pathfinding = 1,
|
|
|
|
hp_min = 24,
|
|
|
|
hp_max = 24,
|
2020-12-06 16:46:42 +02:00
|
|
|
xp_min = 6,
|
|
|
|
xp_max = 6,
|
2017-07-05 04:15:46 +03:00
|
|
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_mc_vindicator.b3d",
|
2017-09-14 00:13:47 +03:00
|
|
|
textures = {
|
|
|
|
{
|
2018-05-30 19:48:07 +03:00
|
|
|
"mobs_mc_vindicator.png",
|
2017-09-14 00:13:47 +03:00
|
|
|
"blank.png", --no hat
|
2018-05-30 18:34:38 +03:00
|
|
|
"default_tool_steelaxe.png",
|
2017-09-14 00:13:47 +03:00
|
|
|
-- TODO: Glow when attacking (mobs_mc_vindicator.png)
|
|
|
|
},
|
|
|
|
},
|
2021-03-19 15:32:02 +02:00
|
|
|
visual_size = {x=2.75, y=2.75},
|
2017-07-05 04:15:46 +03:00
|
|
|
makes_footstep_sound = true,
|
|
|
|
damage = 13,
|
2017-07-26 01:26:18 +03:00
|
|
|
reach = 2,
|
2017-07-05 04:15:46 +03:00
|
|
|
walk_velocity = 1.2,
|
|
|
|
run_velocity = 2.4,
|
2022-02-13 22:40:12 +02:00
|
|
|
attack_type = "dogfight",
|
2022-08-01 01:39:49 +03:00
|
|
|
attack_npcs = true,
|
2017-07-05 04:15:46 +03:00
|
|
|
drops = {
|
2022-05-26 00:25:15 +03:00
|
|
|
{name = "mcl_core:emerald",
|
2017-07-05 04:15:46 +03:00
|
|
|
chance = 1,
|
|
|
|
min = 0,
|
2020-12-23 18:41:42 +02:00
|
|
|
max = 1,
|
|
|
|
looting = "common",},
|
2022-05-26 00:25:15 +03:00
|
|
|
{name = "mcl_tools:axe_iron",
|
2020-12-23 18:41:42 +02:00
|
|
|
chance = 100 / 8.5,
|
2017-07-05 04:15:46 +03:00
|
|
|
min = 1,
|
2020-12-23 18:41:42 +02:00
|
|
|
max = 1,
|
|
|
|
looting = "rare",},
|
2017-07-05 04:15:46 +03:00
|
|
|
},
|
2018-09-14 17:27:58 +03:00
|
|
|
-- TODO: sounds
|
2017-07-05 04:15:46 +03:00
|
|
|
animation = {
|
2017-09-14 00:13:47 +03:00
|
|
|
stand_speed = 25,
|
2017-07-05 04:15:46 +03:00
|
|
|
stand_start = 40,
|
|
|
|
stand_end = 59,
|
2018-05-30 18:34:38 +03:00
|
|
|
walk_speed = 25,
|
2017-07-05 04:15:46 +03:00
|
|
|
walk_start = 0,
|
|
|
|
walk_end = 40,
|
2018-05-30 18:34:38 +03:00
|
|
|
run_speed = 25,
|
|
|
|
punch_speed = 25,
|
2017-07-05 04:15:46 +03:00
|
|
|
punch_start = 90,
|
|
|
|
punch_end = 110,
|
2020-12-05 04:52:08 +02:00
|
|
|
die_speed = 15,
|
2018-05-30 18:34:38 +03:00
|
|
|
die_start = 170,
|
|
|
|
die_end = 180,
|
|
|
|
die_loop = false,
|
2017-07-05 04:15:46 +03:00
|
|
|
},
|
|
|
|
view_range = 16,
|
|
|
|
fear_height = 4,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- spawn eggs
|
2022-10-02 18:50:43 +03:00
|
|
|
mcl_mobs:register_egg("mobs_mc:vindicator", S("Vindicator"), "(spawn_egg.png^[multiply:#959b9b)^(spawn_egg_overlay.png^[multiply:#275e61)", 0)
|