--- a/net/minecraft/world/level/storage/loot/functions/LootEnchantFunction.java
+++ b/net/minecraft/world/level/storage/loot/functions/LootEnchantFunction.java
@@ -57,8 +57,13 @@
 
         if (entity instanceof EntityLiving) {
             int i = EnchantmentManager.getMobLooting((EntityLiving) entity);
+            // CraftBukkit start - use lootingModifier if set by plugin
+            if (loottableinfo.hasParam(LootContextParameters.LOOTING_MOD)) {
+                i = loottableinfo.getParamOrNull(LootContextParameters.LOOTING_MOD);
+            }
+            // CraftBukkit end
 
-            if (i == 0) {
+            if (i <= 0) { // CraftBukkit - account for possible negative looting values from Bukkit
                 return itemstack;
             }
 
