mobs_mc/guardian_elder.lua

98 lines
2.5 KiB
Lua
Raw Normal View History

2017-05-23 00:35:56 -04:00
-- v1.4
--###################
2017-05-23 00:35:56 -04:00
--################### GUARDIAN
--###################
2017-05-23 00:35:56 -04:00
--[[
mobs:register_mob("mobs_mc:16guardian", {
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 = "guardian.b3d",
textures = {
2017-05-23 00:35:56 -04:00
{"guardian.png"},
},
visual_size = {x=4, y=4},
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,
},
})
2017-05-23 00:35:56 -04:00
mobs:register_egg("mobs_mc:16guardian", "Guardian", "guardian_inv.png", 0)
]]
mobs:register_mob("mobs_mc:guardian_elder", {
type = "monster",
2017-05-23 00:35:56 -04:00
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
armor = 150,
passive = false,
attack_type = "dogfight",
pathfinding = true,
view_range = 15,
walk_velocity = 2,
run_velocity = 4,
damage = 2,
group_attack = true,
-- Note: This collision box is pretty generous because they can't be rotated yet, but at least it not confusing for the player.
-- TODO: Make the hitbox smaller when Minetest supports rotation of collision boxes
2017-05-23 00:35:56 -04:00
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
rotate = -180,
visual = "mesh",
mesh = "guardian.b3d",
textures = {
{"guardian_elder.png"},
},
visual_size = {x=4, y=4},
sounds = {
damage = "mobs_mc_squid_hurt",
},
2017-05-23 00:35:56 -04:00
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,
},
drops = {
{name = "dye:black",
chance = 1,
min = 1,
max = 3,},
},
rotate = 180,
visual_size = {x=4.5, y=4.5},
makes_footstep_sound = false,
2017-05-23 19:03:37 -04:00
stepheight = 2.1,
fly = true,
2017-05-23 19:03:37 -04:00
--floats=1,
fly_in = "default:water_source",
2017-05-23 19:03:37 -04:00
fall_speed = -2,
view_range = 8,
fall_damage = 1,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
--mobs:spawn_specific("mobs_mc:squid", l_spawn_in, l_spawn_near, l_min_light, l_max_light, 30, 5000, 2, -31000, l_max_height )
2017-05-23 00:35:56 -04:00
mobs:register_spawn("mobs_mc:guardian_elder",
{"default:water_source"}, 20, -1, 5000, 2, -1000, true)
-- spawn eggs
2017-05-23 00:35:56 -04:00
--mobs:register_egg("mobs_mc:squid_mean", "Spawn Mean Squid", "spawn_egg_squid.png")
2017-05-23 19:03:37 -04:00
mobs:register_egg("mobs_mc:guardian_elder", "Guardian Elder", "guardian_elder_inv.png", 0)