
Always Drop Loot (updated)
Make mobs always drop exp and loot, regardless of cause of death.
About this Mod
Summary
In vanilla, mobs only drop experience and/or rare loot when killed by a player, not when killed by their environment. With this mod, mobs will always drop experience orbs and loot, regardless of cause of death. This is useful for people who like to build passive mob farms and such.

Installation
Requires Fabric Loader and Fabric API.
Configuration
Since MC 1.17.1, the mod config screen has been replaced with gamerules in order to allow configuration per world.
If you have cheats disabled in your world, you can temporarily get cheat permissions to edit gamerules by opening your world to LAN.
Always drop XP
Control whether all mobs drop XP when killed, regardless of whether a player killed them.
/gamerule always-drop-loot:alwaysDropXp true: mobs will always drop XP regardless of how they died. (default)
/gamerule always-drop-loot:alwaysDropXp false: vanilla behavior; mobs will drop XP iff killed by a player.
Passive XP modifier
Control the amount of XP dropped when mobs are not killed by a player. Only applies when always-drop-loot:alwaysDropXp is true. The value set in this gamerule is multiplied by the mob's natural XP drop value, and the result is rounded to the nearest integer.
gamerule always-drop-loot:passiveXpModifier 1.0: mobs will drop the same amount of XP regardless of how they died (default)
gamerule always-drop-loot:passiveXpModifier 0.5: mobs will drop half the normal XP when not killed by a player.
Loot drop mode
Control whether the killed_by_player loot condition always passes, regardless of whether the entity was killed by a player.
/gamerule always-drop-loot:lootDropMode ALWAYS_AS_PLAYER: the killed_by_player loot condition always passes (default)
/gamerule always-drop-loot:lootDropMode NEVER_AS_PLAYER: the killed_by_player loot condition always fails
/gamerule always-drop-loot:lootDropMode VANILLA: vanilla behavior; the killed_by_player loot condition passes iff the mob was killed by a player.
/gamerule always-drop-loot:lootDropMode VANILLA_INVERSE: the killed_by_player loot condition passes iff the mob was NOT killed by a player.
Credits
big thanks to sargunv for creating the mod, the description and making it open source.
https://modrinth.com/mod/always-drop-loot
The only work I did was port this to the latest version.
Available Versions
How to Install Always Drop Loot (updated) on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21).
Install Mod
Open the mod browser in the dashboard and search for "Always Drop Loot (updated)". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Always Drop Loot (updated) server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21). You can switch loaders with one click in the panel.
Is Always Drop Loot (updated) compatible with fabric?
Always Drop Loot (updated) officially supports fabric for Minecraft 1.21. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Always Drop Loot (updated) – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Always Drop Loot (updated) consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Always Drop Loot (updated) with just one click on your server.