Resource icon

SkyBlock QOL Utils Loadout switcher 1.0.3

Fast Loadout Switcher by Loadout number
Mod version
1.2.1.8.6
Fabric
Working
NeoForge
Not tested
Fast Loadout Switcher by Loadout number
LUA:
local loadout_switcher = require("loadout_switcher")
local player = require("player")

registerCommand("loadout", function(commandName, args)
    if #args >= 1 then
        local num = tonumber(args[1])
        if not num then
            player.addMessage("§7[§6Test§7] §cUsage: /loadout <number>")
            return
        end

        loadout_switcher.equipLoadout(num, function(loadout_num, success)
            if success then
                player.addMessage("§7[§6Test§7] §a✔ Loadout equipped: §f" .. loadout_num)
            else
                player.addMessage("§7[§6Test§7] §c✘ Failed: §f" .. tostring(loadout_num))
            end
        end)
    else
        player.addMessage("§7[§6Test§7] §cUsage: /loadout <number>")
    end
end)
Author
Neki_play
Downloads
21
Views
54
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Neki_play

Latest updates

  1. 1.0.3

    The “loadout” command has been changed to ‘loadouts’ so that you can, for example, use the...
  2. 1.0.2

    Added possible to set Loadout clicks delay
  3. 1.0.1

    Pages support
Back
Top