You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mixin changes/fixes multiple things to do with pokeballs on both 1.16 and 1.20:
Stores the pokeball item on EmptyPokeballEntity so pokeball items with extra data (displayname, lore, nbt, etc.) don't lose data when used.
This means custom pokeball items will drop as the item they were thrown as.
Makes pokeball items/entities respect the Unbreakable NBT tag. Pokeball items thrown with the Unbreakable tag will no longer have a chance to break into their lid, base, and button.
Overrides PokeballEntity#getOwnerId() in EmptyPokeballEntity to return the thrower's UUID instead of null. This is useful for getting who threw an empty pokeball in PokeballImpactEvent. Previously, there was no way to tell who threw the ball in the mentioned event.
Fixes pokeballs not dropping when hitting owned entities. (1.16 ONLY, this issue does not exist in 1.20.)