setup not working bossbar command

This commit is contained in:
AFCMS 2021-04-06 16:11:30 +02:00
parent 163aa720c2
commit 43d398b0b2
2 changed files with 34 additions and 8 deletions

View File

@ -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("[<target>]"),
privs = {server = true},
})

View File

@ -2,13 +2,8 @@
local modpath = minetest.get_modpath(minetest.get_current_modname()) local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath.."/kill.lua") for _,filename in pairs({"kill", "setblock", "seed", "summon", "say", "list", "sound", "title", "bossbar"}) do
dofile(modpath.."/setblock.lua") dofile(modpath.."/"..filename..".lua")
dofile(modpath.."/seed.lua") end
dofile(modpath.."/summon.lua")
dofile(modpath.."/say.lua")
dofile(modpath.."/list.lua")
dofile(modpath.."/sound.lua")
dofile(modpath.."/title.lua")
dofile(modpath.."/alias.lua") dofile(modpath.."/alias.lua")