Codebase list minetest-mod-mobs-redo / 0a406173-8109-4f42-bc02-cc11480bc97e/main init.lua
0a406173-8109-4f42-bc02-cc11480bc97e/main

Tree @0a406173-8109-4f42-bc02-cc11480bc97e/main (Download .tar.gz)

init.lua @0a406173-8109-4f42-bc02-cc11480bc97e/mainraw · history · blame

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
dofile(path .. "/lucky_block.lua")

minetest.log("action", "[MOD] Mobs Redo loaded")