[mobs] Add jellyfish

- Solves #232
This commit is contained in:
LeMagnesium 2015-09-25 20:34:18 +02:00
parent 1ef5450534
commit 33d305d268
5 changed files with 37 additions and 0 deletions

View File

@ -15,7 +15,10 @@ dofile(path.."/bee.lua") -- KrupnoPavel
dofile(path.."/bunny.lua") -- ExeterDad
dofile(path.."/kitten.lua") -- Jordach/BFD
dofile(path.."/goat.lua") -- ???
-- Fish
dofile(path.."/shark.lua") -- blert2112 (animal_modpack)
dofile(path.."/jellyfish.lua") -- blert2112
-- Monsters

34
mods/mobs/jellyfish.lua Normal file
View File

@ -0,0 +1,34 @@
mobs:register_mob("mobs:jellyfish", {
type = "animal",
attack_type = "dogfight",
damage = 5,
hp_min = 5,
hp_max = 10,
armor = 100,
collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
visual = "mesh",
mesh = "mobs_jellyfish.b3d",
textures = {
{"mobs_jellyfish.png"}
},
makes_footstep_sound = false,
walk_velocity = 0.1,
run_velocity = 0.1,
fly = true,
fly_in = "default:water_source",
fall_speed = 0,
view_range = 10,
water_damage = 0,
lava_damage = 5,
light_damage = 0,
on_rightclick = function(self, clicker)
mobs:capture_mob(self, clicker, 80, 100, 0, true, nil)
end
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
mobs:spawn_specific("mobs:jellyfish",
{"default:water_source"},
{"default:water_flowing","default:water_source"},
5, 20, 30, 10000, 1, -31000, 0)
mobs:register_egg("mobs:jellyfish", "Jellyfish", "mobs_jellyfish_inv.png", 0)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB