mckaygerhard
2f7b36ea57
* Fixed mob damage when riding mobs
err its better the xclusive player check, minetest api is shit
* Added self.attack_patience value so mobs stop attacking unseen players
* Added self.node_damage flag which is true by default to enable damage_per_second node damage
* Spawn eggs check if mob is available when creating
* fix autodetect ":" to beginning of entity registration for alias_mob
commit a4cf246fce
has an error, alias must be registered with `:MODNAME:obejectname`
so if you dont add the prefix of `:` the default is the mod class parent, so
swaping here the sustitution detection, for now..
this addressed older https://notabug.org/TenPlus1/mobs_redo/issues/154
fixed in good way, also commit b1ad4451a7
* harden spawn log message, better fix for nil checks
reported, closes https://codeberg.org/tenplus1/mobs_redo#1
referece at https://github.com/Archtec-io/bugtracker/issues/130
this are not so good so implement in better way.
30 lines
532 B
Lua
30 lines
532 B
Lua
|
|
local path = minetest.get_modpath("mobs")
|
|
|
|
-- Peaceful player privilege
|
|
minetest.register_privilege("peaceful_player", {
|
|
description = "Prevents Mobs Redo mobs from attacking player",
|
|
give_to_singleplayer = false
|
|
})
|
|
|
|
|
|
-- Mob API
|
|
dofile(path .. "/api.lua")
|
|
|
|
-- Rideable Mobs
|
|
dofile(path .. "/mount.lua")
|
|
|
|
-- Mob Items
|
|
dofile(path .. "/crafts.lua")
|
|
|
|
-- Mob Spawner
|
|
dofile(path .. "/spawner.lua")
|
|
|
|
-- Lucky Blocks
|
|
if minetest.get_modpath("lucky_block") then
|
|
dofile(path .. "/lucky_block.lua")
|
|
end
|
|
|
|
|
|
print("[MOD] Mobs Redo loaded")
|