[SPIGOT-7934] Item entities start "bouncing" under certain conditions Created: 28/Oct/24 Updated: 25/Dec/24 Resolved: 02/Nov/24 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Cave | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Environment: |
Windows 11 22631.4317 Debian 11.9 |
Attachments: |
![]() ![]() |
Version: | 4361-Spigot-5eb8a94-6029040 (MC: 1.21.3) (Implementing API version 1.21.3-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
While there is no player within 16x16 blocks of an item entity, the entity starts to linearly gain negative y motion while retaining its position. Even if the block beneath the item entity is destroyed for example by using "setblock", the item continues to retain its original position. This behavior stops as soon as a player moves within 16 blocks of an item entity. The negative y motion can also be verified using the data command:
/data get entity @e[type=item,sort=nearest,limit=1] Motion[1] This behavior was recorded in the "item_entity_bug.mp4" video.
Also, every fourth item inside a chunk seems to consistently demonstrate this behavior regardless of the distance to the nearest player. This behavior was recorded in the "item_entity_bug_2.mp4" video.
|
Comments |
Comment by md_5 [ 31/Oct/24 ] |
Please don't provide patches outside of pull requests, it is problematic for CLA compliance. |
Comment by badcop [ 31/Oct/24 ] |
can confirm the behavior of every 4th item drop bouncing the entity.tickCount % 4 == 0 check in ActivationRange seems to be related |
Comment by Cave [ 29/Oct/24 ] |
We did not observe this behavior in these versions:
We observed this behavior in these versions:
To me it appears like this bug is caused by the changes introduced in 1.21.2. |
Comment by md_5 [ 29/Oct/24 ] |
Does it affect 1.21.0 or other older versions? |
Comment by Cave [ 28/Oct/24 ] |
Yes, if the entity-activation-range of misc is changed from 16 to 20, the item entities appear to move as expected as long as a player is within 20x20 blocks of the item entity. It does not appear to affect the behavior of every fourth item "bouncing", which I noticed during further testing does not appear to be related to the chunks, but I couldn't determine when this actually starts to happen. |
Comment by md_5 [ 28/Oct/24 ] |
What if you increase activation range in spigot.yml? |