Cardinal-Components-API icon indicating copy to clipboard operation
Cardinal-Components-API copied to clipboard

Add callback for when component is destroyed

Open AlphaMode opened this issue 2 years ago • 1 comments

After trying to convert my forge cap's to use cca I was looking for a alternative for a callback for when the component is destroyed the closest thing I could find is RespawnCopyStrategy which is not what I want

AlphaMode avatar Feb 28 '22 01:02 AlphaMode

Could you describe your use case ? There may be other ways to achieve what you want, but if you are looking for an entity unload event you can use ServerEntityEvents.ENTITY_UNLOAD from Fabric API.

Pyrofab avatar Mar 02 '22 13:03 Pyrofab