TenPlus1 wrote: and I pronounce it Mee'se :P
if fear_param > fear threshold then
if entity_is_food
fight(entity)
else
flight(away from source of fear)
end
else
if entity_is_food
eat(food)
else
follow(food)
end
end
TenPlus1 wrote:The other mobs spawn underground in the dark caves and are found at certain levels... Oerkki can be found at -10 and below, Mese monsters at -20 and below, and Dungeon Masters at -70 and below...
TenPlus1 wrote:Monsters and Animals spawn on specific blocks so you would either need to use v6 mapgen or a v7 mapgen mod to supply those blocks... Also note that each mob can be changed to spawn on whatever you like just by looking at code... Mobs Redo has full v6 and Ethereal v7 support...
minetest.register_craftitem("mobs:chicken", {
description = "Chicken",
inventory_image = "mobs_chicken_inv.png",
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above and not minetest.is_protected(pointed_thing.above, placer:get_player_name()) then
minetest.env:add_entity(pointed_thing.above, "mobs:chicken")
itemstack:take_item()
end
return itemstack
end,
})
local function spawn_mobs(pos, name)
-- spawn mob
local mob = minetest.add_entity(pos, name)
-- spawn hearts
spawn_hearts(pos)
-- set mob hp
if mob then
mob = mob:get_luaentity()
mob.visual_size = { x = 0.5, y = 0.5},
mob.object:set_hp( math.random(mob.hp_min, mob.hp_max) )
mob.tamed = true
mob.armor = mobs_exhausted
-- normalize mobs armor
minetest.after(mobs_timer,function()
reset(mob)
end)
end
end
Users browsing this forum: No registered users and 57 guests