1
0
Fork 0
MineClone2/mods/ENTITIES/mcl_mobs/init.lua

30 lines
896 B
Lua
Raw Normal View History

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