forked from VoxeLibre/VoxeLibre
setup not working bossbar command
This commit is contained in:
parent
163aa720c2
commit
43d398b0b2
|
@ -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},
|
||||||
|
})
|
|
@ -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")
|
Loading…
Reference in New Issue