4 --################### SQUID
8 local MP
= minetest
.get_modpath(minetest
.get_current_modname())
9 local S
, NS
= dofile(MP
.."/intllib.lua")
11 mobs
:register_mob("mobs_mc:squid", {
18 -- FIXME: If the squid is near the floor, it turns black
19 collisionbox
= {-0.4, 0.1, -0.4, 0.4, 0.9, 0.4},
21 mesh
= "mobs_mc_squid.b3d",
26 damage
= "mobs_mc_squid_hurt",
27 death
= "mobs_mc_squid_hurt",
28 -- TODO: sounds: random, damage, death
40 {name
= mobs_mc
.items
.black_dye
,
45 visual_size
= {x
=1.75, y
=1.75},
46 makes_footstep_sound
= false,
49 fly_in
= { mobs_mc
.items
.water_source
, mobs_mc
.items
.river_water_source
},
58 blood_texture
= "mobs_mc_squid_blood.png",
61 -- TODO: Behaviour: squirt
63 -- Spawn near the water surface
65 local water
= mobs_mc
.spawn_height
.water
66 --name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
67 mobs
:spawn_specific("mobs_mc:squid", mobs_mc
.spawn
.water
, {mobs_mc
.items
.water_source
}, 0, minetest
.LIGHT_MAX
+1, 30, 5500, 3, water
-16, water
)
70 mobs
:alias_mob("mobs:squid", "mobs_mc:squid")
73 mobs
:register_egg("mobs_mc:squid", S("Squid"), "mobs_mc_spawn_icon_squid.png", 0)