4 --################### GUARDIAN
7 local S
= minetest
.get_translator("mobs_mc")
9 mobs
:register_mob("mobs_mc:guardian", {
11 spawn_class
= "hostile",
16 attack_type
= "dogfight",
23 collisionbox
= {-0.425, 0.25, -0.425, 0.425, 1.1, 0.425},
25 mesh
= "mobs_mc_guardian.b3d",
27 {"mobs_mc_guardian.png"},
29 visual_size
= {x
=3, y
=3},
31 damage
= "mobs_mc_squid_hurt",
32 -- TODO: more and better sounds
36 stand_speed
= 25, walk_speed
= 25, run_speed
= 50,
37 stand_start
= 0, stand_end
= 20,
38 walk_start
= 0, walk_end
= 20,
39 run_start
= 0, run_end
= 20,
42 -- Greatly increased amounts of prismarine
43 {name
= mobs_mc
.items
.prismarine_shard
,
47 -- TODO: Reduce of drops when ocean monument is ready.
49 -- The following drops are approximations
50 -- Fish / prismarine crystal
51 {name
= mobs_mc
.items
.fish_raw
,
55 {name
= mobs_mc
.items
.prismarine_crystals
,
61 {name
= mobs_mc
.items
.fish_raw
,
62 chance
= 160, -- 2.5% / 4
65 {name
= mobs_mc
.items
.salmon_raw
,
69 {name
= mobs_mc
.items
.clownfish_raw
,
73 {name
= mobs_mc
.items
.pufferfish_raw
,
79 fly_in
= { mobs_mc
.items
.water_source
, mobs_mc
.items
.river_water_source
},
84 -- Spawning disabled due to size issues
85 -- TODO: Re-enable spawning
86 --mobs:spawn_specific("mobs_mc:guardian", mobs_mc.spawn.water, mobs_mc.spawn_water, 0, minetest.LIGHT_MAX+1, 30, 25000, 2, mobs_mc.spawn_height.overworld_min, mobs_mc.spawn_height.water - 10)
89 mobs
:register_egg("mobs_mc:guardian", S("Guardian"), "mobs_mc_spawn_icon_guardian.png", 0)