2022-11-09 04:59:46 +03:00
|
|
|
mcl_mobs = {}
|
|
|
|
mcl_mobs.mob_class = {}
|
|
|
|
mcl_mobs.mob_class_meta = {__index = mcl_mobs.mob_class}
|
2022-11-10 02:52:45 +03:00
|
|
|
|
2018-05-31 19:32:26 +03:00
|
|
|
local path = minetest.get_modpath(minetest.get_current_modname())
|
|
|
|
|
2022-11-10 02:52:45 +03:00
|
|
|
--api and helpers
|
2022-11-10 22:44:31 +03:00
|
|
|
-- effects: sounds and particles mostly
|
2022-11-09 04:59:46 +03:00
|
|
|
dofile(path .. "/effects.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- physics: involuntary mob movement - particularly falling and death
|
2022-11-09 04:59:46 +03:00
|
|
|
dofile(path .. "/physics.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- movement: general voluntary mob movement, walking avoiding cliffs etc.
|
2022-11-10 17:28:51 +03:00
|
|
|
dofile(path .. "/movement.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- items: item management for mobs
|
2022-11-09 17:35:51 +03:00
|
|
|
dofile(path .. "/items.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- pathfinding: pathfinding to target positions
|
2022-11-10 02:52:45 +03:00
|
|
|
dofile(path .. "/pathfinding.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- combat: attack logic
|
2022-11-10 17:28:51 +03:00
|
|
|
dofile(path .. "/combat.lua")
|
2022-11-10 22:44:31 +03:00
|
|
|
-- the enity functions themselves
|
2022-02-13 23:40:12 +03:00
|
|
|
dofile(path .. "/api.lua")
|
2018-05-31 19:32:26 +03:00
|
|
|
|
2022-11-10 22:44:31 +03:00
|
|
|
|
2022-11-10 02:52:45 +03:00
|
|
|
--utility functions
|
2022-11-09 06:57:48 +03:00
|
|
|
dofile(path .. "/breeding.lua")
|
2022-02-13 23:40:12 +03:00
|
|
|
dofile(path .. "/spawning.lua")
|
|
|
|
dofile(path .. "/mount.lua")
|
2022-11-09 04:59:46 +03:00
|
|
|
dofile(path .. "/crafts.lua")
|
2022-11-09 08:06:59 +03:00
|
|
|
dofile(path .. "/compat.lua")
|