adventure_core/chat_commands.lua

51 lines
1000 B
Lua
Raw Normal View History

-- CHAT COMMANDS
if adv_core.setting("enable_chat_commands",true) then
minetest.register_chatcommand("make_shop", {
params = "<name> <privilege>",
description = "Generate an Adventure Shop Node",
privs = {interact = true},
func = function(name)
return true, "You said"
end,
})
2020-12-06 20:10:41 -08:00
minetest.register_chatcommand("pouch", {
params = "<name> <privilege>",
description = "Check your element pouch",
privs = {interact = true},
func = function (name)
minetest.show_formspec(name, "adventure_core:pouch", adv_core.pouch_formspec(name))
return true
end,
})
2020-12-06 20:10:41 -08:00
--Priv only API commands
2020-12-06 20:10:41 -08:00
--Set player pouch contents
2020-12-06 20:10:41 -08:00
--spawn elements
--
end
minetest.register_chatcommand("guidebook", {
params = "<name> <privilege>",
description = "Read the Adventure_Core Guide",
privs = {interact = true},
func = function (name)
minetest.show_formspec(name, "adventure_core:guidebook", adv_core.guide_formspec(name))
return true
end,
})