func = function(name, param)
local target = param:split(" ")[1]
local command = param:split(" ")[2]
- local arguments
local argumentsdisp
local cmddef = minetest.chatcommands
- _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
+ local _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
if not arguments then arguments = "" end
if target and command then
if cmddef[command] then
elidragon.savedata.quests[name] = elidragon.savedata.quests[name] or {}
elidragon.quests.active[name] = {}
elidragon.quests.update(name)
+ quests.show_hud(name, true)
end)
-- callbacks
items[#items + 1] = {
items = {tree .. "leaves"},
}
- print(tree)
minetest.registered_nodes[tree .. "leaves"].drop = {max_items = 1, items = items}
end
end)