

statistics: blocks digged, blocks placed, steps walked and so on. Also, functions to set and get season name and current season).

after the specified amount of days, use the next entry from the season table for determining sunset and sunrise. customisable day/night rythm: Set a time for sunset and sunrise as a config option or via lua. execute the initial spawn of loot and mobs in dungeons when the player is near (could save some abms). When a player enters, leaves or is inside the zone defined by the bounding box, the corresponding function is called. triggers: Via lua, register a bounding box and three functions (on_enter, on_inside, on_leave). attack, flee, wander.) would reside inside the mob behaviour. Would require a (possibly sparse) matrix of faction relations with each value in (nil, friendly, neutral, hostile) and a function check_faction_relation(thing_A, thing_B). Taming an animal could be as simple as removing it from faction "animals_wild" and adding it to faction "animals_tame". wolfes) could attack mobs from the "prey" faction (e.g. if factions "players" and "monsters" are enemies, mobs from the "monsters" faction should attack players. factions: behaviour of mobs should depend on faction relation, e.g.
Minetest 0.5.0 mod#
Disabled by default, would come with a mod containing hostile and friendly mobs demonstrating complex behaviours (tameable animals which provide resources, neutral npcs like a trader selling and buying stuff, a mailman which runs through town and collects mail from mailboxes, guards, maybe quest givers). cpp mobs: complete with steering behaviours, navigation helper functions and scriptable behaviour.
