This plugin helps improve your server performance by automatically combining dropped items into one container instead of leaving them scattered on the ground. It's useful during raids or when bases decay where large quantities of items are dropped at once.
Grouping will not occur in the following cases:
Called after dropped items have been grouped into a container—whether by merging into an existing container or after spawning a new one.
How It Works
When a player drops an item, a short delay starts before checking for nearby dropped items. If the number of nearby items within the configured detection radius meets or exceeds the required threshold, the items will be grouped into a single container.Grouping will not occur in the following cases:
- The number of nearby items is below the minimum required for grouping.
- The item is inside a safe zone.
- The item belongs to a category listed in the exclusion list.
- The item does not have a direct line of sight to the dropped location due to obstacles like terrain or buildings.
Configuration
JSON:
{
"Version": "1.7.0",
"Time Delay Before Grouping Items Seconds": 5.0,
"Minimum Nearby Items Required To Group": 5,
"Item Detection Radius": 4.0,
"Container Lifetime Seconds (0=auto-calculate)": 600.0,
"Group Into Existing Containers": true,
"Item Categories To Ignore During Grouping": [
"Weapon",
"Ammunition"
]
}
Time Delay Before Grouping Items Seconds
- How long to wait after an item is dropped before checking for nearby items to group (in seconds).Minimum Nearby Items Required To Group
- Specifies the minimum number of dropped items that must be within the detection radius to trigger grouping. If fewer than this number are found, no grouping occurs.Item Detection Radius
- Determines the range in which nearby dropped items are detected for grouping.Container Lifetime Seconds
- Defines how long dropped item containers remain before despawning. Set to0
to allow the game to automatically calculate the container's lifetime based on its contents.Group Into Existing Containers
- If set totrue
, the plugin will attempt to find an already existing dropped item container within range (and with a clear line-of-sight) and merge newly dropped items into it rather than spawning a new container.Item Categories To Ignore During Grouping
- A list of item categories that will NEVER be auto-grouped into containers. Categories include:- Weapon
- Ammunition
- Construction
- Items
- Resources
- Attire
- Tool
- Medical
- Food
- Traps
- Misc
- All
- Common
- Component
- Search
- Favourite
- Electrical
- Fun
Developer Hooks
C#:
void OnDroppedItemsGrouped(DroppedItemContainer container, List<DroppedItem> groupedItems)
- No return behavior.