2016-04-15 15:57:57 +02:00
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
-- peaceful player privilege
|
2016-04-15 15:57:57 +02:00
|
|
|
|
2021-01-04 13:28:17 +01:00
|
|
|
minetest.register_privilege("peaceful_player", {
|
|
|
|
description = "Prevents Mobs Redo mobs from attacking player",
|
|
|
|
give_to_singleplayer = false
|
|
|
|
})
|
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
-- fallback node
|
|
|
|
|
2024-06-29 09:22:33 +02:00
|
|
|
minetest.register_node("mobs:fallback_node", {
|
|
|
|
description = "Fallback Node",
|
|
|
|
tiles = {"mobs_fallback.png"},
|
|
|
|
is_ground_content = false,
|
2024-07-01 10:28:05 +02:00
|
|
|
groups = {handy = 1, crumbly = 3, not_in_creative_inventory = 1},
|
2024-06-29 09:22:33 +02:00
|
|
|
drop = ""
|
|
|
|
})
|
2023-07-26 14:43:06 +02:00
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
local path = minetest.get_modpath("mobs")
|
|
|
|
|
|
|
|
dofile(path .. "/api.lua") -- mob API
|
2016-04-15 15:57:57 +02:00
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
dofile(path .. "/mount.lua") -- rideable mobs
|
2016-12-29 13:28:25 +01:00
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
dofile(path .. "/crafts.lua") -- items and crafts
|
2016-04-15 15:57:57 +02:00
|
|
|
|
2024-08-10 14:18:57 +02:00
|
|
|
dofile(path .. "/spawner.lua") -- mob spawner
|
2016-12-01 19:41:27 +01:00
|
|
|
|
|
|
|
-- Lucky Blocks
|
2024-08-10 14:18:57 +02:00
|
|
|
|
2023-08-09 14:08:54 +02:00
|
|
|
if minetest.get_modpath("lucky_block") then
|
|
|
|
dofile(path .. "/lucky_block.lua")
|
|
|
|
end
|
|
|
|
|
2021-11-14 15:21:32 +01:00
|
|
|
print("[MOD] Mobs Redo loaded")
|