[SPIGOT-7941] Feeding Parrots that have Resistance 5 a Cookie turns them unkillable Created: 01/Nov/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: | Watermelon_Sir | Assignee: | Doc |
Resolution: | Fixed | Votes: | 0 |
Labels: | entity, parrot |
Version: | CraftBukkit version 4362-Spigot-5eb8a94-7235ad7 (MC: 1.21.3) (Implementing API version 1.21.3-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
If you spawn a parrot, and use /effect to give it infinite resistance 5, then feed it a cookie, then even after clearing all of its effects it remains unkillable, including using the /kill command. Arrows and other projectiles will also pass through it like it is some sort of ghost. Using /data get on it shows that its health is NaN. Restarting the server does not remove the parrot nor allow it to be killed again. This does not occur in vanilla singleplayer or multiplayer.
To reproduce run the following commands: /summon parrot /effect give @n[type=parrot] resistance infinite 5 true Then feed it a cookie. After this, it becomes undetectable to the @n selector, so you will have to run commands on it using its UUID instead. You can try /killing it or clearing the effects, they wont have any effect.
|
Comments |
Comment by Doc [ 02/Nov/24 ] |
Ok the issue is related to the amplify and how is managed by CraftBukkit for the damage resistance where the formula for reduce the damage can cause in this case the new health being "NaN".
PR: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1506/overview
|