I have a potions kit which consists of 3 speed 2 potions, 2 strength potions, and, 31 Splash potions of healing which equates to a full inventory. My problem is that whenever I use the kit with other things in my inventory, some potions drop on the floor which could cause lag. I'm using essentials kits with a kit sign. Yes, I have tried turning the essentials option 'drop-items-if-full' off but then It doesn't let me claim the kit at all. I need a script that will delete all dropped splash potions if possible. the problem with this script is that it only clears the ones dropped by the player:
TLDR: Script that deletes all splash potions that are on the floor.
Code:
on drop of any splash potion:
while event-dropped item is not on the ground:
wait a tick
clear event-dropped item
TLDR: Script that deletes all splash potions that are on the floor.