FAQ & Troubleshooting
FAQ & Troubleshooting
Section titled “FAQ & Troubleshooting”Common questions and solutions for the Lootbags system.
Frequently Asked Questions
Section titled “Frequently Asked Questions”General
Section titled “General”Q: Does Lootbags require KyuubiSoft Core?
Section titled “Q: Does Lootbags require KyuubiSoft Core?”No. The Lootbags plugin works fully standalone. Core is an optional dependency that adds:
- Admin menu integration (access the lootbag admin panel from Core’s mod menu)
- Shared language settings via
I18nContext - Showcase NPC page opener (
showcase_lootbag)
Without Core, all commands, the admin panel, and all features work normally.
Q: Does Lootbags require DynamicTooltipsLib?
Section titled “Q: Does Lootbags require DynamicTooltipsLib?”No. DynamicTooltipsLib is optional. When installed, it provides enhanced rarity-colored tooltips on all lootbag items. Without it, standard item tooltips are used.
Q: How many lootbags are included?
Section titled “Q: How many lootbags are included?”120 lootbag items across 24 themed families and 5 rarity tiers. You can add unlimited custom lootbags.
Q: What languages are supported?
Section titled “Q: What languages are supported?”English (en-US) and German (de-DE) are included. You can add any language by placing a JSON file in the localization/ folder. The admin panel language dropdown also lists fr-FR, es-ES, pt-BR, ru-RU, pl-PL, tr-TR, and it-IT as options.
Lootbag Mechanics
Section titled “Lootbag Mechanics”Q: How do I open a lootbag?
Section titled “Q: How do I open a lootbag?”Right-click the lootbag item in your hand. The lootbag is consumed and its contents are added to your inventory (or dropped on the ground if your inventory is full).
Q: How do I place a lootbag as a decorative block?
Section titled “Q: How do I place a lootbag as a decorative block?”Sneak (crouch) + Right-click to place the lootbag as a decorative block instead of opening it. Placed lootbags display a rarity-colored glow effect.
Q: Can I disable the reveal animation?
Section titled “Q: Can I disable the reveal animation?”Yes, two ways:
- Per player:
/kslootbags settings animation off - Globally: Set
revealPageEnabledtofalseinconfig.json
When disabled, items go directly to inventory and a chat summary is shown.
Q: What happens if my inventory is full when opening a lootbag?
Section titled “Q: What happens if my inventory is full when opening a lootbag?”Items that cannot fit in your inventory are dropped at your feet as world items. You receive a notification indicating how many items were dropped.
Q: What is the opening cooldown?
Section titled “Q: What is the opening cooldown?”The openCooldownMs setting (default: 1000ms) prevents spam-opening lootbags. After opening one lootbag, you must wait for the cooldown to expire before opening another.
Q: What does the drop multiplier do?
Section titled “Q: What does the drop multiplier do?”The dropMultiplier config (default: 1.0) is applied to all mob and block drop chances. Set it to 2.0 for a double-drop event, 0.5 for reduced drops, or 0.0 to temporarily disable all drops without removing rules.
Q: How do mob drops work?
Section titled “Q: How do mob drops work?”When a mob dies, the system checks its role name (e.g., Trork_Warrior) against all patterns in the mob drop table. Matching entries are evaluated independently — each rolls its chance multiplied by the dropMultiplier. Successful drops spawn as world items at the mob’s death position.
Q: How do block drops work?
Section titled “Q: How do block drops work?”When a player breaks a block, the block’s type ID (e.g., Ore_Gold) is checked against all patterns in the block drop table. The process works the same as mob drops, with items spawning at the broken block’s position.
Q: How do wildcard patterns work?
Section titled “Q: How do wildcard patterns work?”| Pattern | Matches |
|---|---|
* | All mob/block types (global fallback) |
Trork_* | All IDs starting with Trork_ |
Ore_Gold | Only the exact ID Ore_Gold |
Multiple patterns can match the same mob or block. All matching entries are evaluated independently.
Q: Can the same mob trigger multiple drops?
Section titled “Q: Can the same mob trigger multiple drops?”Yes. If a mob matches multiple patterns (e.g., * and Trork_*), all matching entries are evaluated. Each entry rolls its chance independently.
Administration
Section titled “Administration”Q: How do I give a lootbag to another player?
Section titled “Q: How do I give a lootbag to another player?”Two options:
- Command:
/lbadmin give <lootbagId> [amount]gives the lootbag to yourself - Admin Panel: In the Give tab, enter the player’s name in the Player field
Q: How do I create a custom lootbag?
Section titled “Q: How do I create a custom lootbag?”See the Custom Lootbags guide. In short:
- Create
custom/custom_lootbags.jsonwith your definition - Run
/lbadmin reload
Or use the admin panel editor or the /lbadmin edit command.
Q: Where are admin panel edits saved?
Section titled “Q: Where are admin panel edits saved?”All edits from the admin panel and /lbadmin edit command are saved to custom/custom_lootbags.json. The standard configs/lootbags.json is never modified.
Q: How do I reload config changes?
Section titled “Q: How do I reload config changes?”Run /lbadmin reload or click Reload configs in the admin panel’s Settings tab. This reloads lootbag definitions, drop tables, and localization files.
Troubleshooting
Section titled “Troubleshooting”Mob drops are not working
Section titled “Mob drops are not working”Check the following:
- Config toggles: Ensure
enabledanddropEnabledare bothtrueinconfig.json - Drop table patterns: Mob drops match against the NPC’s role name (e.g.,
Trork_Warrior), not the internal type ID. Use/lbadmin reloadafter editing the drop table. - Drop multiplier: Ensure
dropMultiplieris not set to0.0 - Chance values: Chances are decimals from
0.0to1.0in JSON (not percentages). A0.05value means 5%. - Console logs: Check server logs for
[LootbagDrop]messages. The handler logs which NPC role/type it detected and how many drop entries matched.
Block drops are not working
Section titled “Block drops are not working”Same checks as mob drops above. Block drops match against the block type ID (e.g., Ore_Gold, Ore_Cobalt).
”Lootbag not found” error when using give command
Section titled “”Lootbag not found” error when using give command”The item ID must match a registered lootbag definition exactly (case-sensitive). Use /lbadmin list to see all available IDs. Common format: Family_Lootbag (common rarity omits the suffix) or Family_Lootbag_Rarity (e.g., Golden_Lootbag_Legendary).
Admin panel does not open
Section titled “Admin panel does not open”- Ensure you have the
kslootbagsadmincommand permission (operator/admin access) - Check the console for error messages from
[KyuubiSoft Lootbag]
Changes not taking effect after editing JSON files
Section titled “Changes not taking effect after editing JSON files”Run /lbadmin reload to reload all configuration files from disk. Changes made to JSON files are not picked up automatically.
Player stats show zero
Section titled “Player stats show zero”Player statistics are loaded when a player connects. If the plugin was just installed, stats start at zero and accumulate as lootbags are opened. Stats are auto-saved every 5 minutes and on player disconnect.
Lootbag items go to the ground instead of inventory
Section titled “Lootbag items go to the ground instead of inventory”When a player’s inventory is full, items are dropped at their feet. This is intentional behavior. A notification is sent to the player.
Custom lootbags not loading
Section titled “Custom lootbags not loading”- Check that
custom/custom_lootbags.jsonis valid JSON (no trailing commas, proper quoting) - Check the server console for error messages during loading
- Ensure the file is in the
custom/directory inside the plugin data folder - Run
/lbadmin reloadafter adding or modifying the file
Localization files not updating
Section titled “Localization files not updating”Bundled language files (en-US.json, de-DE.json) are auto-updated when the internal _localization_version changes. If you have made manual edits to these files, the old version is backed up before updating. Custom language files are never overwritten.
DynamicTooltips not showing
Section titled “DynamicTooltips not showing”- Ensure
DynamicTooltipsLib.jaris in themods/directory - Check the console for
DynamicTooltips integration enabledon startup - If the log says
DynamicTooltipsLib not found, the JAR is missing or not loading