summaryrefslogtreecommitdiff
path: root/peaceful_npc/init.lua
blob: 6f8140526144ec6794998c2f50d21ac0bc5a1813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--Config
instakill_sword = false
mode_debug = false

--Loads other files
dofile(minetest.get_modpath("peaceful_npc").."/npc/npc_def.lua")
dofile(minetest.get_modpath("peaceful_npc").."/npc/npc_fast.lua")
dofile(minetest.get_modpath("peaceful_npc").."/npc/npc_dwarf.lua")
dofile(minetest.get_modpath("peaceful_npc").."/commands.lua")
dofile(minetest.get_modpath("peaceful_npc").."/items.lua")
dofile(minetest.get_modpath("peaceful_npc").."/spawning.lua")
dofile(minetest.get_modpath("peaceful_npc").."/recipes.lua")

--NPC Privilege
minetest.register_privilege("peacefulnpc", { description = "allows to use spawn command", give_to_singleplayer = true})

--Aliases
minetest.register_alias("peaceful_npc:npc", "peaceful_npc:npc_def")


print("Peaceful NPC loaded! By jojoa1997!")