Bug Closed · Resolved

[BUG] Equiped items not dropping when PreventOtherDrops false

#4746 opened by Unknown 2 years ago

Unknownreported this bug

Summary

PreventOtherDrops false has litteraly no effect on equipped items. Mobs which should drop their items with a 100%chance do not drop the item. Example with Drowned when they are holding a nautilus shell. Same behavior happens with zombies or skeletons or any other mobs which has equipped items. They will never drop even though the vanilla behavior should drop them with a chance. It works fine when it comes to non equipped items which should actually drop.

Steps to reproduce Create a Drowned override. Equip it with Nautilus Shell or Trident. Make sure PreventOtherDrops is set to false.

Current behavior

Nautilus shell wont drop...

Intended correct behavior

Nautilus shell should drop with 100%chance.

Proposed fixes Include vanilla behavior for equipped items when PreventOtherDrops is false. Or add an option to make equipped items drop as vanilla would do.

Unknowncommented

Tested this for 30 mins now, but it still doesn't seem to work. Vanilla equipped items still do not drop, even when they should have 100% chance of dropping.

Tested with Dorwned and nautilus shells (100% chance of dropping => never drops)

Tested with hundreds of Skeletons (8.5% chance of dropping their bow => never drops)

Unknowncommented

Equipped items still DO NOT drop as they would do according to vanilla rules. ATM only the loottable is dropping. Equipped items are still not affected by PreventOtherDrops:false and do NEVER drop

Unknowncommented

Here a video of vanilla Drowned => Equipped Nautilus Shells DROP [Legacy attachment omitted]

Here a video of overridden Drowned => Equipped Nautilus Shells DO NOT drop [Legacy attachment omitted]

Same behavior for skeletons and their bow, zombies and their weapons/armor pieces, etc

Unknowncommented

Closing due to inactivity and major version changes since posting. If this issue is still present, re-open this issue with a modern-version server log, configs used to test and steps to reproduce.
This approach can be handled using conditions and mechanics, such as - dropitem{i=FISHING_ROD} @self ~onDeath ?holding{m=FISHING_ROD}

Sign in to join the discussion.