More RPG Library provides three powerful loot table functions that enable dynamic loot generation with spell pool filtering, conditional items, and cross-mod compatibility.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ProfessorFichte/More-RPG-Classes/llms.txt
Use this file to discover all available pages before exploring further.
Specific Spell Scroll from Pools
Generate spell scrolls from specific spell pools with tier filtering and blacklist support.Function Syntax
Parameters
Array of spell pool identifiers to select spells from. Use the
# prefix for pool tags.Example: ["#wizards:frost", "#wizards:fire", "#paladins:healing"]Minimum spell tier to include. Filters out spells below this tier.Range: 1-4 (depending on your spell system)
Maximum spell tier to include. Filters out spells above this tier.Range: 1-4 (depending on your spell system)
Number of spell scrolls to generate (typically 1).
Array of specific spell identifiers to exclude from the loot pool.Example:
["wizards:frost_blizzard", "wizards:fire_meteor"]Use Cases
Tiered Loot
Create different loot tables for early-game and late-game encounters.
School-Specific Drops
Make certain enemies drop spells from specific schools.
Balanced Rewards
Blacklist overpowered spells from common loot.
Boss Loot
High-tier spells from multiple pools for boss drops.
Example: Frost Mage Dungeon Chest
Bind Spell from Pools
Binds a random spell from specified pools to any item, making it a spell container.Function Syntax
Parameters
Array of spell pool identifiers to select spells from.
Number of spells to bind to the item. Most items support 1-3 spell slots.
Use Cases
Magic Weapons
Create weapons with built-in spells.Example: A sword that casts fire spells
Spell Staves
Turn any item into a spell-casting focus.Example: Wooden staff with bound frost magic
Hybrid Gear
Melee weapons with mobility or utility spells.Example: Axe with dash ability
Random Artifacts
Procedurally generated magical items.Example: Random spell on legendary drops
Example: Magical Weapon Drops
Items bound with spells automatically become spell containers. You don’t need to define spell slots separately.
Conditional Item with Fallback
Generates a conditional item if it’s registered, otherwise uses the base item as fallback.Function Syntax
Parameters
The item identifier to use if the item is registered. If not registered, the base item is used.
How It Works
- Check if
conditional_itemis registered in the game - If registered: Replace the base item with the conditional item
- If not registered: Keep the original base item
- Apply any subsequent loot functions to the final item
Use Cases
Mod Integration
Create loot tables that adapt to installed mods.Example: Use custom gems if available, diamonds otherwise
Optional Content
Reference items from optional dependencies.Example: Modpack-specific items with vanilla fallbacks
Graceful Degradation
Ensure loot tables work even if items are removed.Example: Removed mod items fallback to vanilla
Cross-Mod Compatibility
Support multiple mod ecosystems.Example: Different material systems
Example: Mod-Aware Currency Drop
Conditional Item Entry Type
A loot pool entry type for conditional items without fallback. The loot table remains functional even if the item isn’t registered.Entry Syntax
Parameters
The item identifier to conditionally include.
Standard Minecraft count specification (uniform, constant, binomial).
Difference from Conditional Item Function
| Feature | Entry Type | Function Type |
|---|---|---|
| Fallback | None - entry is skipped | Falls back to base item |
| Use Case | Bonus loot from optional mods | Replace items conditionally |
| Loot Table Safety | Table works if item missing | Table always produces output |
| Entry Weight | Can affect drop chances | No weight impact |
Example: Optional Bonus Drops
If
optional_mod:rare_gem isn’t registered, the pool will only drop diamonds. If it is registered, it has a 40% chance to drop instead.Best Practices
Pool Organization
Group related spells into tagged pools for easier maintenance.
Tier Progression
Use tier filtering to create clear progression paths.
- Early game: Tier 1-2
- Mid game: Tier 2-3
- End game: Tier 3-4
Blacklist Strategy
Blacklist specific powerful spells from general loot.Reserve them for special boss drops or quest rewards.
Conditional Safety
Always test loot tables with and without optional mods.Ensure graceful degradation when items are missing.