Repository navigation
Commands
Applies to Regalia Slots API 1.0.2 for Minecraft 1.21.1, and to 1.1.4 for 26.2.
/regalia_slots_api
Everything lives under this single root. It requires permission level 2 — operator — so players cannot use it to hand themselves slots.
| Subcommand | What it does |
|---|---|
list |
Shows the current slot layout and which slots are granted. |
set <slot> <player> <index> |
Replaces whatever is in a specific slot index of a player. |
add <slot> <player> <index> |
Inserts a slot, shifting the rest along. |
remove <slot> <player> <index> |
Removes the slot at that index, shifting the rest along. |
replace <slot> <index> <player> with <slot> |
Replaces one slot type with another for a player. |
clear <player> |
Removes all slots from a player. |
drop <player> |
Drops what is in a player's accessory slots into the world. |
reset <player> |
Restores a player to the default slot layout. |
The two that are not obvious:
-
set/add/removetake a slot type and a numeric index, not a slot name. The index is the position in that player's accessory layout, counted from zero.removeat an index you do not have changes nothing. -
replaceis writtenreplace <slot> <index> <player> with <slot>— the wordwithis a literal part of the command, not optional.
Take everything off a player who is leaving:
/regalia_slots_api drop <player>
Their accessory items land on the ground rather than vanishing. Use this before removing a player from a whitelist or role.
Give someone a clean slate:
/regalia_slots_api reset <player>
Strip a player's slots entirely — they get them back when a relevant mod needs them:
/regalia_slots_api clear <player>
clear and reset differ in what they aim at: clear empties the player's slots, reset puts
the default layout back.
Because slots are defined server-side and synced, the config file remains the right tool for deciding what the default is for everyone. These commands are for exceptions — one player, one unusual loadout.
The player_like entity type tag is the way to change what slots exist by default for large
groups; see Slots.
There is no command to open the slot screen — it is reached from the player inventory. See Getting Started.
Regalia Slots API is by Stalking Dragons, licensed LGPL-3.0-or-later. It is a fork of Curios API by TheIllusiveC4, who retains full credit for the original design and implementation. Not affiliated with or endorsed by them. See Credits and License.