In this video, we explore the full power of LootJS, the essential KubeJS addon for modifying any loot table in Minecraft 1.20.1. Instead of messy JSON overrides, we use a centralized script to dynamically inject, replace, and remove drops across blocks, entities, and chests with surgical precision.
You’ll learn how to:
Enable Verbose Logging to debug and identify loot table IDs in real-time
Target Specific Blocks and Entities for custom progression-based drops
Master Regex-Based Filtering to modify hundreds of loot tables (like all overworld chests) with a single line of code
Utilize Loot Type Modifiers to apply global rules across entire categories (Entities vs. Chests vs. Blocks)
Disable Hardcoded Vanilla Drops including Wither Stars and Mob Heads for hardcore pack balancing
Manage Forge Global Loot Modifiers to intercept and remove loot changes added by other mods
Implement Performance Guards by selectively disabling loot modification for specific tags or namespaces
The system demonstrates real-world examples:
Adding rare "scavenge" drops like gunpowder to gravel or sticks to leaves
Injecting "bonus" loot into mob kills (e.g., iron nuggets from zombies)
Adding "Jackpot" mechanics to chest loot via probability weighting
Gating powerful items by removing default boss rewards
Key technical features covered:
ID-based Targeting: Direct control over minecraft:entities/creeper
Global Overrides: Using @modid to wipe out unwanted modded loot modifications
Safe Execution: Understanding why these scripts run server-side and how /reload affects your changes
Conditional Logic: Layering .randomChance() to create tiered rarity systems
This tutorial is a must-watch for Modpack Developers looking to create a cohesive survival experience, balance economy-breaking mods, or add unique environmental rewards without touching a single JSON file.
Source Code
https://gist.github.com/KCtops6/55783...
💻 Need a server? Try BisectHosting!
✔ 100+ games supported
✔ 2,300+ modpacks pre-installed
✔ 24/7/365 expert support
✔ Full file access and advanced DDoS protection
👉 https://www.bisecthosting.com/KCtops6