diff --git a/mods/MISC/mcl_basic_commands/bossbar.lua b/mods/MISC/mcl_basic_commands/bossbar.lua new file mode 100644 index 0000000000..2425e0c428 --- /dev/null +++ b/mods/MISC/mcl_basic_commands/bossbar.lua @@ -0,0 +1,31 @@ +local S = minetest.get_translator("mcl_commands") + +--1.13 feature +--TODO: toggle it with setting/mod +mcl_commands.register_command("bossbar", { + func = function(cmd) + cmd:sub("add", { + func = function(name) + return + end, + }) + cmd:sub("set", { + func = function(name, target) + return + end, + }) + cmd:sub("remove", { + func = function(name, target) + return + end, + }) + cmd:sub("get", { + func = function(name, target) + return + end, + }) + end, + description = "Can add, configure or remove a custom bossbar.", + params = S("[]"), + privs = {server = true}, +}) \ No newline at end of file diff --git a/mods/MISC/mcl_basic_commands/init.lua b/mods/MISC/mcl_basic_commands/init.lua index 580a36567d..2b9897fcae 100644 --- a/mods/MISC/mcl_basic_commands/init.lua +++ b/mods/MISC/mcl_basic_commands/init.lua @@ -2,13 +2,8 @@ local modpath = minetest.get_modpath(minetest.get_current_modname()) -dofile(modpath.."/kill.lua") -dofile(modpath.."/setblock.lua") -dofile(modpath.."/seed.lua") -dofile(modpath.."/summon.lua") -dofile(modpath.."/say.lua") -dofile(modpath.."/list.lua") -dofile(modpath.."/sound.lua") -dofile(modpath.."/title.lua") +for _,filename in pairs({"kill", "setblock", "seed", "summon", "say", "list", "sound", "title", "bossbar"}) do + dofile(modpath.."/"..filename..".lua") +end dofile(modpath.."/alias.lua") \ No newline at end of file