mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-06-28 06:30:18 +02:00
tidy and tweak code, implement sound check for mineclon*
This commit is contained in:
22
init.lua
22
init.lua
@ -1,13 +1,13 @@
|
||||
|
||||
local path = minetest.get_modpath("mobs")
|
||||
-- peaceful player privilege
|
||||
|
||||
-- Peaceful player privilege
|
||||
minetest.register_privilege("peaceful_player", {
|
||||
description = "Prevents Mobs Redo mobs from attacking player",
|
||||
give_to_singleplayer = false
|
||||
})
|
||||
|
||||
-- Fallback node
|
||||
-- fallback node
|
||||
|
||||
minetest.register_node("mobs:fallback_node", {
|
||||
description = "Fallback Node",
|
||||
tiles = {"mobs_fallback.png"},
|
||||
@ -16,22 +16,20 @@ minetest.register_node("mobs:fallback_node", {
|
||||
drop = ""
|
||||
})
|
||||
|
||||
-- Mob API
|
||||
dofile(path .. "/api.lua")
|
||||
local path = minetest.get_modpath("mobs")
|
||||
|
||||
-- Rideable Mobs
|
||||
dofile(path .. "/mount.lua")
|
||||
dofile(path .. "/api.lua") -- mob API
|
||||
|
||||
-- Mob Items
|
||||
dofile(path .. "/crafts.lua")
|
||||
dofile(path .. "/mount.lua") -- rideable mobs
|
||||
|
||||
-- Mob Spawner
|
||||
dofile(path .. "/spawner.lua")
|
||||
dofile(path .. "/crafts.lua") -- items and crafts
|
||||
|
||||
dofile(path .. "/spawner.lua") -- mob spawner
|
||||
|
||||
-- Lucky Blocks
|
||||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
dofile(path .. "/lucky_block.lua")
|
||||
end
|
||||
|
||||
|
||||
print("[MOD] Mobs Redo loaded")
|
||||
|
Reference in New Issue
Block a user