FAQ
On this page(10)
How do I update SnLootBoxes?
Download the newer snlootboxes-v* release and replace the jar. Configs auto-merge on restart.
Does it support Folia?
No, SnLootBoxes is not Folia-compatible.
How do I use a custom head as the key?
Hold the head, open /lootbox editor, pick the lootbox, click the key material button and type hand in chat. The key copies the head's texture, and its name and lore still come from the lootbox. Any other item works too: the key copies its material and custom model data. A head with no texture is refused. In a lootbox file, the same key is material: PLAYER_HEAD plus head-texture: with a base64 value or a skin URL.
Why do my old keys not stack with new ones?
They do, once the plugin has seen them. Every key a player holds is re-rendered from the current lootbox definition when the player joins and right before any /lootbox give, /lootbox giveall or editor key grant. Keys from before a reward edit, or from a time when key-items.stackable was false, then merge with new keys. Set key-items.stackable: false to keep every grant on its own stack instead.
Why does the item a lootbox gives not stack with the real one?
Because the reward is a snapshot. When you add an item reward, the plugin stores the exact bytes of the item you clicked, which is the only way a lootbox can hand out an item that belongs to another plugin. That snapshot never changes afterwards, so if the plugin that mints the item later changes how it renders the name or the lore, your stored copy keeps looking the same while its underlying components no longer match a freshly obtained one, and the game will not merge them.
Run /lootbox audit to see exactly which reward items are affected, then hold one freshly obtained copy and run /lootbox sync: every reward of that item is refreshed across every lootbox at once, keeping each reward's weight, amount, delivery method and enabled state.
If the item is unique by construction, such as a player head with a randomized profile id, no two copies stack anywhere in the game and no refresh can fix it. Hand it out as a COMMAND reward so its owning plugin mints it on the win.
Why can I not fast-open a stack of keys?
fast-open.max-stack-amount (default 1) is the largest stack that sneak + right-click may open. A bigger stack is denied and the keys are kept. Split the stack, open it without sneaking, or raise the limit (0 removes it).
Why does my animation lootbox open as a chest menu?
The in-world animation mode needs the PacketEvents plugin (2.11 or newer). Without it every lootbox opens as the menu, and the console lists the affected lootboxes on boot and on /lootbox reload. Fast-open (sneak + right-click) never plays the scene, and with <scene>.spawn.no-space-action: menu (orbit or grid) a player with no room in front of them also gets the menu.
Why was my animation opening denied with "no room in front of you"?
The scene needs a column of three free blocks in front of the player (orbit.spawn.distance or grid.spawn.distance in animations.yml, tried closer down to 1 block). When nothing fits, the open is denied and the key is kept. Face an open area, or set the scene's spawn.no-space-action: menu to open the chest menu instead.
Do Bedrock players see the animation?
No. Bedrock (Geyser) clients do not render display entities, so they see no scene, but they still receive every reward. The grid scene waits for clicks they cannot make, so on servers with Bedrock players set grid.auto-reveal-ticks (for example 60): the next block then opens by itself after that much idle time. Otherwise they wait for the session timeout (or walk away), which still delivers everything.
Why can't I click the far blocks of the grid?
Survival players can only click entities within 3 blocks of their eyes. The wall spawns grid.spawn.distance blocks away (default 2.0); keep it at 2.5 or less. Left and right click both work.