Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add equip/unequip event #309

Open
ochotonida opened this issue May 7, 2024 · 0 comments
Open

[Suggestion] Add equip/unequip event #309

ochotonida opened this issue May 7, 2024 · 0 comments

Comments

@ochotonida
Copy link

Currently, the only way to detect whether an item is being unequipped or equipped in a trinket slot is to have a Trinket attached to the itemstack that overrides onUnequip, or to manually keep track of all equipped items.
When adding effects based on an equipped item's components/nbt, attaching a Trinket to the stack might not be ideal or possible if the item is not owned by the mod. Adding an event similar to Curios' CurioChangedEvent, that fires any time an equipped item changes, would resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant