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

Fixes Trinkets #3

Open
wants to merge 3 commits into
base: 1.20.1
Choose a base branch
from
Open

Conversation

JordanPlayz158
Copy link

This PR fixes trinkets (as mentioned in the commit message) by changing when the gravestones code is run, previously it listened on drop inventory but that is called after dropEquipment (if shouldDropLoot and DO_MOB_LOOT game rule is true) so now it listens on the drop function in LivingEntity and cancels it if gravestones is enabled.

…ly it listened on drop inventory but that is called after dropEquipment (if shouldDropLoot and DO_MOB_LOOT game rule is true) so now it listens on the drop function in LivingEntity.
@JordanPlayz158
Copy link
Author

JordanPlayz158 commented Aug 24, 2024

Worked with elytra trinket, create goggles seem to not be working, as in, puts it in every single trinket slot, gonna test another trinket mod and hope create is the exception not the rule (and that elytra trinket was not the exception either), otherwise gonna need to rework that logic quite a bit

Create Goggles duplicates
Let's Do Gold Ring vanishes/might not get saved

Oh boi, not a good omen

Lightman's Currency Wallet vanishes/not saved (not sure which for either let's do or lightman's)

Ok, probably broken code......

…ne, the trinket does not vanish but will be dropped if you have no inventory space available, there is still weird behavior regarding having on the same trinket and grabbing a gravestone with something in the same slot/same trinket, it de-equips the trinket (in the example I tested, the elytra trinket) and both are placed in your inventory or dropped, while fine, will be best to find out what is causing it and fix it
@JordanPlayz158
Copy link
Author

Will probably move this to a separate branch, not sure why I didn't do that initially though

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

Successfully merging this pull request may close these issues.

1 participant