Added the start for a quest log
parent
021ec9d982
commit
7679a57abe
13
Book.lua
13
Book.lua
|
@ -16,3 +16,16 @@ for name,story in pairs(adventures.registered_books) do
|
|||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local function showQuestLog()
|
||||
local str = ""
|
||||
return str
|
||||
end
|
||||
minetest.register_tool("adventures:questLog", {
|
||||
description = "Quest Log",
|
||||
inventory_image = "default_book.png",
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.show_formspec(user:get_player_name(), "adventures:questLog", showQuestLog())
|
||||
end,
|
||||
})
|
Loading…
Reference in New Issue