2017-11-03 22:14:27 +01:00
|
|
|
--###################
|
2021-04-07 18:47:40 +02:00
|
|
|
--################### AGENT - seemingly unused
|
2017-11-03 22:14:27 +01:00
|
|
|
--###################
|
|
|
|
|
2022-02-13 21:40:12 +01:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-11-03 22:14:27 +01:00
|
|
|
|
2022-05-25 14:44:49 +02:00
|
|
|
mcl_mobs:register_mob("mobs_mc:agent", {
|
2017-11-03 22:14:27 +01:00
|
|
|
type = "npc",
|
2020-04-11 02:46:03 +02:00
|
|
|
spawn_class = "passive",
|
2017-11-03 22:14:27 +01:00
|
|
|
passive = true,
|
|
|
|
hp_min = 20,
|
|
|
|
hp_max = 20,
|
|
|
|
armor = 100,
|
|
|
|
collisionbox = {-0.35, -0.01, -0.35, 0.35, 1, 0.35},
|
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_mc_agent.b3d",
|
|
|
|
textures = {
|
|
|
|
{"mobs_mc_agent.png"},
|
|
|
|
},
|
2018-09-14 16:27:58 +02:00
|
|
|
-- TODO: sounds
|
2017-11-03 22:14:27 +01:00
|
|
|
visual_size = {x=3, y=3},
|
2019-10-02 18:58:29 +02:00
|
|
|
walk_chance = 0,
|
2017-11-03 22:14:27 +01:00
|
|
|
walk_velocity = 0.6,
|
|
|
|
run_velocity = 2,
|
|
|
|
jump = true,
|
|
|
|
animation = {
|
|
|
|
stand_speed = 25,
|
|
|
|
walk_speed = 25,
|
|
|
|
run_speed = 50,
|
|
|
|
stand_start = 20,
|
|
|
|
stand_end = 60,
|
|
|
|
walk_start = 0,
|
|
|
|
walk_end = 20,
|
|
|
|
run_start = 0,
|
|
|
|
run_end = 20,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2022-05-25 14:44:49 +02:00
|
|
|
mcl_mobs:register_egg("mobs_mc:agent", S("Agent"), "mobs_mc_spawn_icon_agent.png", 0)
|