跳到正文
免费MineBuilders 插件1.8–26.3

ItemStacker | Efficient Item Stacking

作者:lHawk_

购买、下载与收藏

免费

免费下载插件,用于你的服务器。

登录后下载

可在你的服务器上使用。不允许转售、再分发文件,或把它当作自己的作品发布(条款)。

加入收藏

32 次下载 · 124 次浏览

ItemStacker | Efficient Item Stacking

关于这个插件

Reduce your server lag by stacking dropped items on the ground!
Paper, Spigot & Folia Support.

文档

ItemStacker

Ultra-Optimized Ground Item Stacking Plugin with Virtual Packet Names and Despawn Timers

Author: lHawk_ | Contact: https://minebuilders.com.br/discord


YouTube 视频:只有点击观看时才会加载。


1. Overview

ItemStacker is an ultra-high performance Minecraft item stacking plugin designed for modern survival, skyblock, and farm-heavy servers. Large mob farms and automatic crop harvesting systems frequently drop hundreds of thousands of loose item entities on the floor, resulting in severe tick lag, entity processing bottlenecks, and memory bloat.

ItemStacker solves this problem by merging nearby ground items into a single representative item entity. Rather than creating heavy server-side armor stand holograms or modifying persistent entity display names, ItemStacker renders stack counts and real-time despawn timers exclusively through client-side packets using PacketEvents. The server tracks large numbers cleanly as hidden 64-bit integers while preserving vanilla item mechanics, hoppers, and player inventory distribution.


2. Key Features

  • Pure Packet-Based Displays: Stack labels and amounts are rendered entirely via client metadata packets. Zero physical holograms, zero invisible armor stands, and zero server-side custom name corruption.
  • Despawn Countdown Timer: Real-time display of the remaining time until a pile despawns using the {time} or {timer} placeholder (similar to RoseStacker).
  • Fork-Native Despawn Detection: Automatically reads and respects the item despawn rate defined in your server's fork configuration (such as spigot.yml or Paper world configurations), rather than forcing a rigid hardcoded timer.
  • MiniMessage & HEX Color Support: Full support for rich Adventure MiniMessage formatting (<gradient:#00d2ff:#3a7bd5>, <#00ffc8>, <green>) and legacy HEX codes (&#00d2ff). Rich colors automatically downsample cleanly on legacy client versions.
  • Toggleable Displayname Timer: Controlled directly in config.yml via despawn_timer_active with customizable formatting (e.g. {mm}:{ss} or {m}m {s}s).
  • Extreme Scalability: Supports pile quantities up to millions of items per stack without entity overflow or client crashes.
  • Smart Item Merging: Only merges items that share identical attributes (Material, durability, custom display names, lore, enchantments, and persistent data tags). Custom RPG items and enchanted gear are never accidentally merged with vanilla items.
  • Intelligent Inventory Filling: Picking up a pile tops up existing partial stacks in the player's inventory first, then fills open slots up to capacity, leaving any remainder safely on the floor.
  • Optimized Hopper Transfers: Hoppers collect items with rate-limited transfer ticks, preventing hopper lag storms across dense mob grinders.
  • Native Folia & Paper Compatibility: Built from the ground up to respect Folia threaded regions, entity schedulers, and asynchronous packet events.

3. Platform Compatibility

PlatformSupported VersionsStatus
Paper1.16.5 to 26.2+Fully Compatible
Spigot1.16.5 to 26.2+Fully Compatible
Purpur1.16.5 to 26.2+Fully Compatible
Folia1.19.4 to 26.2+Fully Compatible (Thread-Safe Region Schedulers)
Legacy Spigot1.8.8 to 1.15.2Supported (Java 8 bytecode, legacy color downsampling)

4. Requirements & Dependencies

RequirementDetailsStatus
Java RuntimeJava 8, 11, 17, 21, or 25+Universal Java 8 bytecode
PacketEventsBundled and relocated internallyNo external installation required
ViaVersion / ProtocolLibOptional soft-dependenciesSupported seamlessly if present

5. Installation Guide

  1. Download the latest ItemStacker-1.1.0.jar.
  2. Place the jar file into your server's plugins/ directory.
  3. Start or restart your Minecraft server to generate default configurations.
  4. Customize your desired stacking distance, format, and timer settings in plugins/ItemStacker/config.yml.
  5. Type /itemstacker reload in console or in-game to apply configuration changes instantly.

6. Commands & Permissions

CommandPermissionDescription
/itemstacker helpitemstacker.admShows the list of available commands and instructions.
/itemstacker reloaditemstacker.admReloads config.yml, message formats, and world despawn rates.
/itemstacker statsitemstacker.admDisplays real-time performance metrics, active groups, hidden items, and execution averages.

7. Configuration Reference (config.yml)

Below is an excerpt of the core options available in config.yml:

Config:
    # Prefix shown in console messages.
    tag: "&6[ItemStacker]"

    # Name format. Supports MiniMessage (<gradient:#00d2ff:#3a7bd5>, <#00ffc8>),
    # HEX colors (&#00d2ff), and legacy color codes (&b).
    # Placeholders: {displayname}, {amount}, {short}, {time}, {timer}, {despawn}
    displayname_format: "&b{displayname} &a{amount}x"

    # Display remaining despawn time above stacked items.
    despawn_timer_active: false

    # Despawn time format: {mm} (minutes), {ss} (seconds), {total_seconds}.
    despawn_time_format: "{mm}:{ss}"

    # Suffix appended when despawn_timer_active is true and {time} is omitted.
    despawn_timer_suffix: " &7({time})"

    # Visibility controls
    displayname_active: true
    displayname_always: true
    displayname_min_amount: 2
    view_range: 32
    visual_interval: 5

    # Merge behavior
    stack_distance: 8
    delayCheckItems: 3000
    merge_on_spawn: true
    stack_size: 100000
    playsound: true

8. Frequently Asked Questions (FAQ)

How does ItemStacker prevent entity lag?

Traditional servers create a separate entity for every dropped item stack (e.g. 64 items per entity). When thousands of items drop, entity ticking exhausts CPU cycles. ItemStacker bundles the items into a single physical entity holding up to a safe vanilla stack count, keeping the remaining quantity stored efficiently in memory and persistent data containers. Pile display names are delivered as client-side packet updates, preventing entity overhead.

How does the despawn timer detect server despawn times?

ItemStacker dynamically inspects your server fork's world settings (such as item-despawn-rate in spigot.yml or Paper's world configuration). It tracks the item's age (ticksLived) and calculates the exact remaining time until the server will remove the item, ensuring the countdown matches your server's gameplay rules.

Can I use MiniMessage and HEX gradients?

Yes. MiniMessage is the recommended formatting system for ItemStacker. You can use gradients like <gradient:#00d2ff:#3a7bd5>{displayname}</gradient> <green>{amount}x</green> <gray>[<yellow>{time}</yellow>]</gray>. On modern Minecraft versions (1.16+), players will see full 24-bit RGB gradients, while older clients will receive cleanly downsampled colors.

Is Folia supported?

Yes. All chunk operations, entity pickups, and merging tasks utilize Folia's region scheduler and entity schedulers. Shared state is isolated across thread boundaries to guarantee thread safety without deadlocks.


Need help or support?

Author: lHawk_ | Community Discord: https://minebuilders.com.br/discord

版本历史

  1. 1.1.0已上线发布于2026年10月14日

    Spigot、Paper和Folia · Minecraft 1.8 至 26.3

    这个版本没有说明。

  2. 1.0.0旧版本发布于2026年10月11日

    Spigot、Paper和Folia · Minecraft 1.8 至 26.3

    这个版本没有说明。

评价

还没有评价。

评价

拥有该插件的人(免费下载或购买出售版)给出 1 到 5 星的评分并分享使用感受。登录后即可评价。

相似插件

支持 MineBuilders

通过 PIX 或银行卡捐赠任意金额。支持是自愿的,不会购买任何东西,并且可以在 7 天内撤销。 如何运作