1
0
Fork 0

Reformat mobs_mcl to api folder for ease of use

This commit is contained in:
jordan4ibanez 2021-04-15 14:09:54 -04:00
parent bbcfb3fdb1
commit 5155d12d05
6 changed files with 5 additions and 12 deletions

View File

@ -564,7 +564,6 @@ local mob_activate = function(self, staticdata, def, dtime)
-- set anything changed above -- set anything changed above
self.object:set_properties(self) self.object:set_properties(self)
set_yaw(self, (math_random(0, 360) - 180) / 180 * math_pi, 6)
--update_tag(self) --update_tag(self)
--set_animation(self, "stand") --set_animation(self, "stand")

View File

@ -1,14 +1,16 @@
local path = minetest.get_modpath(minetest.get_current_modname()) local path = minetest.get_modpath(minetest.get_current_modname())
local api_path = path.."/api"
-- Mob API -- Mob API
dofile(path .. "/api.lua") dofile(api_path .. "/api.lua")
-- Spawning Algorithm -- Spawning Algorithm
dofile(path .. "/spawning.lua") dofile(api_path .. "/spawning.lua")
-- Rideable Mobs -- Rideable Mobs
dofile(path .. "/mount.lua") dofile(api_path .. "/mount.lua")
-- Mob Items -- Mob Items
dofile(path .. "/crafts.lua") dofile(path .. "/crafts.lua")

View File

@ -1,8 +0,0 @@
if minetest.get_modpath("lucky_block") then
lucky_block:add_blocks({
{"dro", {"mcl_mobs:nametag"}, 1},
{"lig"},
})
end