Stack with newest #1085
Unanswered
Distolfix
asked this question in
Approved Feature Requests
Replies: 1 comment 1 reply
-
|
This will cause your entities to never reach the hopper, as they will always get stacked to items that are created. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@OmerBenGera
I propose adding a new configuration option for item stack handling:
Stack with newest
What does this do?
Currently, by default, the plugin (like vanilla) tries to merge a newly dropped item into the item already on the ground within the merge radius.
The issue is that in certain setups e.g., bamboo farms an item can remain on the ground and fail to enter the hoppers. The result? You risk losing the entire harvest, because the item that lands on the hoppers can get pulled back up due to the merge radius.
With the option I’m proposing, the older item will merge into the newer one, not the other way around.
This ensures the flow never gets stuck: items left on the ground will “unstick” by merging into the latest drop, preventing harvest losses.
Performance considerations
This feature would require a small additional check, since the plugin needs to know which item was created last.
However, the implementation can be simple:
attach a timestamp to each stack and compare it during merge. The most recent item becomes the “primary” stack and remains alive, while older stacks merge into it
Beta Was this translation helpful? Give feedback.
All reactions