forked from MineClone5/MineClone5
Reformat mobs_mcl to api folder for ease of use
This commit is contained in:
parent
bbcfb3fdb1
commit
5155d12d05
|
@ -564,7 +564,6 @@ local mob_activate = function(self, staticdata, def, dtime)
|
|||
|
||||
-- set anything changed above
|
||||
self.object:set_properties(self)
|
||||
set_yaw(self, (math_random(0, 360) - 180) / 180 * math_pi, 6)
|
||||
|
||||
--update_tag(self)
|
||||
--set_animation(self, "stand")
|
|
@ -1,14 +1,16 @@
|
|||
|
||||
local path = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
local api_path = path.."/api"
|
||||
|
||||
-- Mob API
|
||||
dofile(path .. "/api.lua")
|
||||
dofile(api_path .. "/api.lua")
|
||||
|
||||
-- Spawning Algorithm
|
||||
dofile(path .. "/spawning.lua")
|
||||
dofile(api_path .. "/spawning.lua")
|
||||
|
||||
-- Rideable Mobs
|
||||
dofile(path .. "/mount.lua")
|
||||
dofile(api_path .. "/mount.lua")
|
||||
|
||||
-- Mob Items
|
||||
dofile(path .. "/crafts.lua")
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"mcl_mobs:nametag"}, 1},
|
||||
{"lig"},
|
||||
})
|
||||
end
|
Loading…
Reference in New Issue