1
0
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:
tenplus1
2024-08-10 13:18:57 +01:00
parent bc6b8931da
commit a8297e6a8e
8 changed files with 492 additions and 621 deletions

View File

@ -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")