4 --################### GUARDIAN
8 local MP
= minetest
.get_modpath(minetest
.get_current_modname())
9 local S
, NS
= dofile(MP
.."/intllib.lua")
11 mobs
:register_mob("mobs_mc:guardian", {
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",
35 stand_speed
= 25, walk_speed
= 25, run_speed
= 50,
36 stand_start
= 0, stand_end
= 20,
37 walk_start
= 0, walk_end
= 20,
38 run_start
= 0, run_end
= 20,
41 {name
= mobs_mc
.items
.prismarine_shard
,
46 -- The following drops are approximations
47 -- Fish / prismarine crystal
48 {name
= mobs_mc
.items
.fish_raw
,
52 {name
= mobs_mc
.items
.prismarine_crystals
,
58 {name
= mobs_mc
.items
.fish_raw
,
59 chance
= 160, -- 2.5% / 4
62 {name
= mobs_mc
.items
.salmon_raw
,
66 {name
= mobs_mc
.items
.clownfish_raw
,
70 {name
= mobs_mc
.items
.pufferfish_raw
,
76 fly_in
= { mobs_mc
.items
.water_source
, mobs_mc
.items
.river_water_source
},
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)