80 lines
1.7 KiB
Lua
80 lines
1.7 KiB
Lua
|
|
--###################
|
|
--################### SILVERFISH
|
|
--###################
|
|
--[[
|
|
mobs:register_mob("mobs_mc:25silverfish", {
|
|
type = "animal",
|
|
passive = true,
|
|
runaway = true,
|
|
stepheight = 1.2,
|
|
hp_min = 30,
|
|
hp_max = 60,
|
|
armor = 150,
|
|
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
|
|
rotate = -180,
|
|
visual = "mesh",
|
|
mesh = "silverfish.b3d",
|
|
textures = {
|
|
{"silverfish.png"},
|
|
},
|
|
visual_size = {x=3, y=3},
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
jump = true,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 0, stand_end = 20,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
})
|
|
|
|
mobs:register_egg("mobs_mc:25silverfish", "Silverfish", "silverfish_inv.png", 0)
|
|
]]
|
|
-- Bunny by ExeterDad
|
|
|
|
mobs:register_mob("mobs_mc:silverfish", {
|
|
type = "monster",
|
|
passive = false,
|
|
group_attack = true,
|
|
reach = 1,
|
|
hp_min = 7,
|
|
hp_max = 8,
|
|
armor = 120,
|
|
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.3, 0.2},
|
|
rotate = -180,
|
|
visual = "mesh",
|
|
mesh = "silverfish.b3d",
|
|
textures = {
|
|
{"silverfish.png"},
|
|
},
|
|
visual_size = {x=3, y=3},
|
|
sounds = {},
|
|
makes_footstep_sound = false,
|
|
walk_velocity = 0.6,
|
|
run_velocity = 2,
|
|
runaway = true,
|
|
jump = true,
|
|
water_damage = 1,
|
|
lava_damage = 4,
|
|
light_damage = 0,
|
|
fear_height = 2,
|
|
animation = {
|
|
speed_normal = 25, speed_run = 50,
|
|
stand_start = 0, stand_end = 20,
|
|
walk_start = 0, walk_end = 20,
|
|
run_start = 0, run_end = 20,
|
|
},
|
|
view_range = 18,
|
|
attack_type = "dogfight",
|
|
damage = 1,
|
|
})
|
|
|
|
mobs:register_spawn("mobs_mc:silverfish",
|
|
{"default:diorite"}, 20, 10, 15000, 2, 80, true)
|
|
|
|
--mobs:register_egg("mobs_mc:bunny", S("Bunny"), "mobs_bunny_inv.png", 0)
|
|
mobs:register_egg("mobs_mc:silverfish", "Silverfish", "silverfish_inv.png", 0)
|
|
|