Rename mobs mod to mcl_mobs
[MineClone/MineClone2.git] / mods / ENTITIES / mobs_mc / init.lua
blobe2ec34008e86f07f3de0a629279e20c19195c15d
1 --MCmobs v0.4
2 --maikerumine
3 --made for MC like Survival game
4 --License for code WTFPL and otherwise stated in readmes
6 local path = minetest.get_modpath("mobs_mc")
8 if not minetest.get_modpath("mobs_mc_gameconfig") then
9 mobs_mc = {}
10 end
12 -- For utility functions
13 mobs_mc.tools = {}
15 -- This function checks if the item ID has been overwritten and returns true if it is unchanged
16 if minetest.get_modpath("mobs_mc_gameconfig") and mobs_mc.override and mobs_mc.override.items then
17 mobs_mc.is_item_variable_overridden = function(id)
18 return mobs_mc.override.items[id] == nil
19 end
20 else
21 -- No items are overwritten, so always return true
22 mobs_mc.is_item_variable_overridden = function(id)
23 return true
24 end
25 end
27 --MOB ITEMS SELECTOR SWITCH
28 dofile(path .. "/0_gameconfig.lua")
29 --Items
30 dofile(path .. "/1_items_default.lua")
32 -- Bow, arrow and throwables
33 dofile(path .. "/2_throwing.lua")
35 -- Shared functions
36 dofile(path .. "/3_shared.lua")
38 --Mob heads
39 dofile(path .. "/4_heads.lua")
41 -- Animals
42 dofile(path .. "/bat.lua") -- Mesh and animation by toby109tt / https://github.com/22i
43 dofile(path .. "/rabbit.lua") -- Mesh and animation byExeterDad
44 dofile(path .. "/chicken.lua") -- Mesh and animation by Pavel_S
45 dofile(path .. "/cow+mooshroom.lua") -- Mesh by Morn76 Animation by Pavel_S
46 dofile(path .. "/horse.lua") -- KrupnoPavel; Mesh and animation by toby109tt / https://github.com/22i
47 dofile(path .. "/llama.lua") -- Mesh and animation by toby109tt / https://github.com/22i
48 dofile(path .. "/ocelot.lua") -- Mesh and animation by toby109tt / https://github.com/22i
49 dofile(path .. "/parrot.lua") -- Mesh and animation by toby109tt / https://github.com/22i
50 dofile(path .. "/pig.lua") -- Mesh and animation by Pavel_S
51 dofile(path .. "/polar_bear.lua") -- Mesh and animation by toby109tt / https://github.com/22i
52 dofile(path .. "/sheep.lua") -- Mesh and animation by Pavel_S
53 dofile(path .. "/wolf.lua") -- KrupnoPavel
54 dofile(path .. "/squid.lua") -- Animation, sound and egg texture by daufinsyd
56 -- NPCs
57 dofile(path .. "/villager.lua") -- KrupnoPavel Mesh and animation by toby109tt / https://github.com/22i
58 -- Agent texture missing
59 --dofile(path .. "/agent.lua") -- Mesh and animation by toby109tt / https://github.com/22i
61 -- Illagers and witch
62 dofile(path .. "/villager_evoker.lua") -- Mesh and animation by toby109tt / https://github.com/22i
63 dofile(path .. "/villager_vindicator.lua") -- Mesh and animation by toby109tt / https://github.com/22i
64 dofile(path .. "/villager_zombie.lua") -- Mesh and animation by toby109tt / https://github.com/22i
66 dofile(path .. "/witch.lua") -- Mesh and animation by toby109tt / https://github.com/22i
68 --Monsters
69 dofile(path .. "/blaze.lua") -- Animation by daufinsyd
70 dofile(path .. "/creeper.lua") -- Mesh by Morn76 Animation by Pavel_S
71 dofile(path .. "/ender_dragon.lua") -- Mesh and animation by toby109tt / https://github.com/22i
72 dofile(path .. "/enderman.lua") -- Mesh and animation by toby109tt / https://github.com/22i
73 dofile(path .. "/endermite.lua") -- Mesh and animation by toby109tt / https://github.com/22i
74 dofile(path .. "/villager_illusioner.lua") -- Mesh and animation by toby109tt / https://github.com/22i
75 dofile(path .. "/ghast.lua") -- maikerumine
76 dofile(path .. "/guardian.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i
77 dofile(path .. "/guardian_elder.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i
78 dofile(path .. "/snowman.lua")
79 dofile(path .. "/iron_golem.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i
80 dofile(path .. "/shulker.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i
81 dofile(path .. "/silverfish.lua") -- maikerumine Mesh and animation by toby109tt / https://github.com/22i
82 dofile(path .. "/skeleton+stray.lua") -- Mesh by Morn76 Animation by Pavel_S
83 dofile(path .. "/skeleton_wither.lua") -- Mesh by Morn76 Animation by Pavel_S
84 dofile(path .. "/zombie.lua") -- Mesh by Morn76 Animation by Pavel_S
85 dofile(path .. "/zombiepig.lua") -- Mesh by Morn76 Animation by Pavel_S
86 dofile(path .. "/slime+magma_cube.lua") -- Wuzzy
87 dofile(path .. "/spider.lua") -- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture)
88 dofile(path .. "/vex.lua") -- KrupnoPavel
89 dofile(path .. "/wither.lua") -- Mesh and animation by toby109tt / https://github.com/22i
90 --NOTES:
92 --[[
93 COLISIONBOX in minetest press f5 to see where you are looking at then put these wool collor nodes on the ground in direction of north/east/west... to make colisionbox editing easier
94 #1west-pink/#2down/#3south-blue/#4east-red/#5up/#6north-yelow
95 {-1, -0.5, -1, 1, 3, 1}, Right, Bottom, Back, Left, Top, Front
96 --]]
100 if minetest.settings:get_bool("log_mods") then
101 minetest.log("action", "[MOD] mobs_mc loaded")