2020-10-26 17:38:53 +01:00
|
|
|
|
2024-12-19 12:55:40 +01:00
|
|
|
-- peaceful player privilege
|
2020-10-26 17:38:53 +01:00
|
|
|
|
2021-01-06 16:05:43 +01:00
|
|
|
minetest.register_privilege("peaceful_player", {
|
|
|
|
description = "Prevents Mobs Redo mobs from attacking player",
|
|
|
|
give_to_singleplayer = false
|
|
|
|
})
|
|
|
|
|
2024-12-19 12:55:40 +01:00
|
|
|
-- fallback node
|
|
|
|
|
|
|
|
minetest.register_node("mobs:fallback_node", {
|
|
|
|
description = "Fallback Node",
|
|
|
|
tiles = {"mobs_fallback.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {handy = 1, crumbly = 3, not_in_creative_inventory = 1},
|
|
|
|
drop = ""
|
|
|
|
})
|
2020-10-26 17:38:53 +01:00
|
|
|
|
2024-12-19 12:55:40 +01:00
|
|
|
local path = minetest.get_modpath("mobs")
|
2020-10-26 17:38:53 +01:00
|
|
|
|
2024-12-19 12:55:40 +01:00
|
|
|
dofile(path .. "/api.lua") -- mob API
|
2020-10-26 17:38:53 +01:00
|
|
|
|
2024-12-19 12:55:40 +01:00
|
|
|
dofile(path .. "/mount.lua") -- rideable mobs
|
|
|
|
|
|
|
|
dofile(path .. "/crafts.lua") -- items and crafts
|
|
|
|
|
|
|
|
dofile(path .. "/spawner.lua") -- mob spawner
|
2020-10-26 17:38:53 +01:00
|
|
|
|
|
|
|
-- Lucky Blocks
|
2024-12-19 12:55:40 +01:00
|
|
|
|
|
|
|
if minetest.get_modpath("lucky_block") then
|
|
|
|
dofile(path .. "/lucky_block.lua")
|
|
|
|
end
|
2020-10-26 17:38:53 +01:00
|
|
|
|
2021-11-16 11:03:22 +01:00
|
|
|
print("[MOD] Mobs Redo loaded")
|