1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-11-14 14:30:19 +01:00
mobs_redo/init.lua

36 lines
778 B
Lua
Raw Normal View History

-- peaceful player privilege
minetest.register_privilege("peaceful_player", {
description = "Prevents Mobs Redo mobs from attacking player",
give_to_singleplayer = false
})
-- 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 = ""
})
local path = minetest.get_modpath("mobs")
dofile(path .. "/api.lua") -- mob API
dofile(path .. "/mount.lua") -- rideable mobs
dofile(path .. "/crafts.lua") -- items and crafts
dofile(path .. "/spawner.lua") -- mob spawner
2016-12-01 19:41:27 +01:00
-- Lucky Blocks
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")