mirror of
https://github.com/MinetestForFun/quests.git
synced 2024-11-13 06:00:18 +01:00
Add quests.show_formspec(playername)
This commit is contained in:
parent
7a41a2a8ad
commit
29be1e0908
3
README
3
README
|
@ -63,3 +63,6 @@ quests.show_hud(playername)
|
|||
|
||||
quests.hide_hud(playername)
|
||||
-- hides the hud for player playername
|
||||
|
||||
quests.show_formspec(playername)
|
||||
-- shows the player playername his/her questlog
|
||||
|
|
5
init.lua
5
init.lua
|
@ -422,6 +422,11 @@ function quests.create_info(playername, questname)
|
|||
return formspec
|
||||
end
|
||||
|
||||
-- show the player playername his/her questlog
|
||||
function quests.show_formspec(playername)
|
||||
minetest.show_formspec(playername, "quests:questlog", quests.create_formspec(playername))
|
||||
end
|
||||
|
||||
-- chatcommand to see a full list of quests:
|
||||
minetest.register_chatcommand("quests", {
|
||||
params = "",
|
||||
|
|
Loading…
Reference in New Issue
Block a user