clientcommands icon indicating copy to clipboard operation
clientcommands copied to clipboard

Improving the item drop order

Open leumasme opened this issue 6 years ago • 2 comments

The Current drop order seems to always prioritize the Items that the player has the most of, however this is not optimal on most Servers. Spigot (and bukkit?) merge dropped Items of the same type close together into one stack, resetting their pickup timer. Example: The player has his Regular Equipment (Armor, Tools) And 3 different Items, 64 of each. cenchant will swap between the 3 Items after every Throw, as the item that the Player has the most of constantly chances, however this is not good. Dropping Multiple of an Item after each other makes them merge into one Stack, resetting their Pickup Cooldown. Because the Player is dropping from all 3 Stacks at once, he will not be able to pick up any of the Items until he Stops Dropping them. In a bad case, the 3 Stacks will run out without the player having picked any of them back up again, and cenchant will continue by dropping tools and Armor. It would be better if cenchant would first fully drop One of the 3 stacks. After the first one is Empty, the Second one will be dropped, and while the second one is dropping, the first one will be picked up again, allowing the player to drop infinite items with just 2 or 3 Stacks.

leumasme avatar Aug 31 '19 21:08 leumasme

I was hesitant to address this because it was about non-vanilla servers, but I had it happen to me on a vanilla server the other day, so it's now more valid I guess :P

Earthcomputer avatar Sep 10 '19 20:09 Earthcomputer

i was pretty sure item / xp stack merging is non-vanilla

leumasme avatar Sep 17 '19 18:09 leumasme