npc_talk/init.lua

26 lines
972 B
Lua

DIR_DELIM = "/"
local modpath = minetest.get_modpath("npc_talk")..DIR_DELIM
npc_talk = {}
-- a very basic NPC that doesn't require any other mods (apart from default)
dofile(modpath .. "talking_npc.lua")
-- register an example mob and a spawn egg (requires mobs_redo)
dofile(modpath .. "example_npc.lua")
-- add textures from textures/npc_talk_main_TEXTURE_NAME.png for the example npc
dofile(modpath .. "add_skins_and_capes.lua")
-- demonstration that a node can be used for starting talking as well
dofile(modpath .. "example_talk_sign.lua")
-- make mobs_npc from mobs_redo ready to be talked to (requires mobs_npc)
dofile(modpath .. "talk_to_mobs_npc.lua")
-- mostly a demonstration for mobs_animal (allows to talk to white and red sheep and a cow)
-- you need to craft a special book/tool to talk to them as they don't offer a suitable interface;
-- punch them with npc_talk:talk_tool
dofile(modpath .. "talk_tool.lua")
dofile(modpath .. "talk_to_animals.lua")