79 lines
1.6 KiB
Lua
79 lines
1.6 KiB
Lua
local S = minetest.get_translator("mobs_mc")
|
|
|
|
mcl_mobs.register_mob("mobs_mc:bee", {
|
|
description = S("Bee"),
|
|
type = "animal",
|
|
passive = false,
|
|
spawn_class = "passive",
|
|
skittish = false,
|
|
runaway = true,
|
|
hp_min = 10,
|
|
hp_max = 10,
|
|
xp_min = 1,
|
|
xp_max = 2,
|
|
armor = {fleshy = 90},
|
|
attack_type = "dogfight",
|
|
damage = 2,
|
|
reach = 1.5,
|
|
jump = false,
|
|
makes_footstep_sound = true,
|
|
fly = true,
|
|
fly_in = {"air"},
|
|
walk_velocity = 1,
|
|
run_velocity = 2,
|
|
follow_velocity = 2,
|
|
follow = followitem,
|
|
pathfinding = 1,
|
|
fear_height = 4,
|
|
view_range = 16,
|
|
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.84, 0.3},
|
|
visual = "mesh",
|
|
mesh = "mobs_mc_bee.b3d",
|
|
textures = { {
|
|
"mobs_mc_bee.png",
|
|
} },
|
|
rotate = 180,
|
|
visual_size = {x=3, y=3},
|
|
--[[]sounds = {
|
|
random = "mobs_mc_parrot_random",
|
|
damage = {name="mobs_mc_parrot_hurt", gain=0.3},
|
|
death = {name="mobs_mc_parrot_death", gain=0.6},
|
|
eat = "mobs_mc_animal_eat_generic",
|
|
distance = 16,
|
|
},
|
|
drops = {
|
|
{name = "mcl_mobitems:feather",
|
|
chance = 1,
|
|
min = 1,
|
|
max = 2,
|
|
looting = "common",},
|
|
},--]]
|
|
animation = {
|
|
stand_speed = 50,
|
|
walk_speed = 50,
|
|
fly_speed = 50,
|
|
stand_start = 0,
|
|
stand_end = 32,
|
|
fly_start = 100,
|
|
fly_end = 132,
|
|
walk_start = 200,
|
|
walk_end = 232,
|
|
},
|
|
})
|
|
|
|
mcl_mobs.spawn_setup({
|
|
name = "mobs_mc:bee",
|
|
type_of_spawning = "ground",
|
|
dimension = "overworld",
|
|
aoc = 3,
|
|
min_height = mobs_mc.water_level+1,
|
|
max_height = mcl_vars.mg_overworld_max,
|
|
biomes_except = {
|
|
"MushroomIsland"
|
|
},
|
|
chance = 400,
|
|
check_position = function(pos)
|
|
return minetest.find_node_near(pos, 5, {"group:bee_nest"})
|
|
end
|
|
})
|