-
Bug
-
Resolution: Unresolved
-
None
-
1.20.4, 1.20.5 Release Candidate 2
-
None
-
Confirmed
-
Projectiles, Save Data
-
Low
-
Platform
During the flight of an arrow (with its tag "PierceLevel" set to X, X > 0), exiting and reentering the world enables it to pierce through another X+1 entities, regardless how many entities it has hit before exiting the world.
In my following example, I froze the game (/tick freeze) in order to perform actions more precisely.
Steps to Reproduce:
- Use a bow or crossbow with enchantment "Piercing" to shoot an arrow (or any way to summon an arrow with its tag "PierceLevel" bigger than 0). Assume the value in its tag "PierceLevel" is X.
- Make it hit some entities, but not more than X, or it will directly vanish. The arrow must still be flying, or the "PierceLevel" tag will be reset to 0.
- Exit the world.
- Reenter the world.
Actual Result:
The arrow can now again hit another X+1 entities, as if it has not hit any entities.
As shown in following images, the arrow hit all 7 creepers despite the fact that its tag "PierceLevel" is only 4.
Expected Result:
The arrow should vanish as soon as it hits X entities in total.
Possible Cause:
The number of entities the arrow pierced through is recorded in the RAM, so it is reset when reentering the world. The value of tag "PierceLevel" is never changed, which make it theoretically possible for the arrow to hit infinite number of entities by repeating the steps mentioned above.
Possible Solution:
Decrease the value in the tag "PierceLevel" by 1 each time the arrow hits an entity. Delete the arrow once the value reaches -1.
- relates to
-
MC-173476 Piercing arrows pass through level+1 entities, vanish without damage when hitting level+2
- Open