npc_talk/init.lua

29 lines
1.1 KiB
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 minetest_game/player_api or any other source of
-- a mesh named character.b3d and a suitable texture named character.png)
dofile(modpath .. "talking_npc.lua")
-- register an example mob and a spawn egg
-- (requires mobs_redo and skinsdb as we need some mesh and some textures from somewhere)
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")