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

EntityPickupItemEvent #167

Merged
merged 8 commits into from
Oct 7, 2023
Merged

Conversation

mechoriet
Copy link
Collaborator

No description provided.

@hpfxd hpfxd self-requested a review October 6, 2023 20:19
@hpfxd
Copy link
Owner

hpfxd commented Oct 7, 2023

I've cleaned the patch up a bit and implemented the event in places where it was missing (picking up arrows and insentient mobs). I've not had the time to test this in-game. If anyone has tested and can confirm this is working as it should, please share results :)

Copy link
Collaborator

@uRyanxD uRyanxD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the event with a Zombie and myself (player entity) and it worked perfectly for me.

If anyone else is going to test the event, here is a command to generate a mob that takes the item (without needing luck):
/summon Zombie ~ ~1 ~ {CanPickUpLoot:1b}

Thanks ApplePies for sending me the command.

@uRyanxD uRyanxD merged commit 49a8db9 into hpfxd:master Oct 7, 2023
1 check passed
@mechoriet mechoriet deleted the pr/entitypickupevent branch October 16, 2023 09:36
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.

3 participants