2017-07-05 04:15:46 +03:00
|
|
|
--###################
|
|
|
|
--################### SILVERFISH
|
|
|
|
--###################
|
|
|
|
|
2022-02-13 23:40:12 +03:00
|
|
|
local S = minetest.get_translator("mobs_mc")
|
2017-07-05 04:15:46 +03:00
|
|
|
|
2022-11-09 06:09:58 +03:00
|
|
|
mcl_mobs.register_mob("mobs_mc:silverfish", {
|
2021-04-25 18:30:15 +03:00
|
|
|
description = S("Silverfish"),
|
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
|
|
|
passive = false,
|
|
|
|
group_attack = true,
|
|
|
|
reach = 1,
|
|
|
|
hp_min = 8,
|
|
|
|
hp_max = 8,
|
2020-12-06 17:46:42 +03:00
|
|
|
xp_min = 5,
|
|
|
|
xp_max = 5,
|
2022-12-04 19:37:50 +03:00
|
|
|
armor = {fleshy = 100, arthropod = 100},
|
|
|
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.44, 0.4},
|
2017-07-05 04:15:46 +03:00
|
|
|
visual = "mesh",
|
|
|
|
mesh = "mobs_mc_silverfish.b3d",
|
|
|
|
textures = {
|
2022-12-04 19:37:50 +03:00
|
|
|
{"mobs_mc_silverfish.png"},
|
2017-07-05 04:15:46 +03:00
|
|
|
},
|
|
|
|
pathfinding = 1,
|
2022-12-04 19:37:50 +03:00
|
|
|
visual_size = {x = 3, y = 3},
|
2019-01-29 00:13:35 +03:00
|
|
|
sounds = {
|
|
|
|
random = "mobs_mc_silverfish_idle",
|
|
|
|
death = "mobs_mc_silverfish_death",
|
|
|
|
damage = "mobs_mc_silverfish_hurt",
|
|
|
|
distance = 16,
|
|
|
|
},
|
2017-07-05 04:15:46 +03:00
|
|
|
makes_footstep_sound = false,
|
|
|
|
walk_velocity = 0.6,
|
|
|
|
run_velocity = 2,
|
|
|
|
jump = true,
|
|
|
|
fear_height = 4,
|
2022-05-26 00:25:15 +03:00
|
|
|
replace_what = {
|
2022-12-04 19:37:50 +03:00
|
|
|
{"mcl_core:stone", "mcl_monster_eggs:monster_egg_stone", -1},
|
|
|
|
{"mcl_core:cobble", "mcl_monster_eggs:monster_egg_cobble", -1},
|
|
|
|
{"mcl_core:stonebrick", "mcl_monster_eggs:monster_egg_stonebrick", -1},
|
|
|
|
{"mcl_core:stonebrickmossy", "mcl_monster_eggs:monster_egg_stonebrickmossy", -1},
|
|
|
|
{"mcl_core:stonebrickcracked", "mcl_monster_eggs:monster_egg_stonebrickcracked", -1},
|
|
|
|
{"mcl_core:stonebrickcarved", "mcl_monster_eggs:monster_egg_stonebrickcarved", -1},
|
2022-05-26 00:25:15 +03:00
|
|
|
},
|
2017-07-05 04:15:46 +03:00
|
|
|
replace_rate = 2,
|
|
|
|
animation = {
|
2022-12-04 19:28:04 +03:00
|
|
|
speed_normal = 25, speed_run = 50,
|
|
|
|
stand_start = 0, stand_end = 20,
|
|
|
|
walk_start = 0, walk_end = 20,
|
|
|
|
run_start = 0, run_end = 20,
|
2017-07-05 04:15:46 +03:00
|
|
|
},
|
|
|
|
view_range = 16,
|
2022-02-13 23:40:12 +03:00
|
|
|
attack_type = "dogfight",
|
2017-07-05 04:15:46 +03:00
|
|
|
damage = 1,
|
|
|
|
})
|
|
|
|
|
2022-11-09 06:09:58 +03:00
|
|
|
mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0)
|
2023-02-10 05:46:23 +03:00
|
|
|
mcl_mobs:non_spawn_specific("mobs_mc:silverfish","overworld",0,11)
|