-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add EntityFreezeWaterEvent #6673
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
base: minor-next
Are you sure you want to change the base?
Conversation
|
I'm wondering whether we want to fire an event for every block, vs firing an event once. e.g. if we had something like EntityFrostWalkerEvent, we could have stuff like getRadius(), getBlocks() etc. Currently this event doesn't give any context, so the only real thing a plugin can do is just cancel it (which means cancelling somewhere in the ballpark of 30+ events per tick). |
Good idea but im unsure how this would look like |
Right, I didn't realize it would be a pain to include the block list. I suppose there are 2 choices:
I'm slightly leaning towards number 2. I think being able to set the radius would be more ergonomic than having to manually recalculate the blocks list. Possibly a A filter for blocks to change would be nice too (e.g. to allow freezing lava) but I'm not sure how that would work on the API side. |
Co-authored-by: Dylan T. <[email protected]>
Add EntityWaterFreezeEvent
Related issues & PRs
#6614
Changes
API changes
Added class
pocketmine\event\entity\EntityWaterFreezeEvent
- called when an entity with boots enchanted with frost walker freezes nearby water.Behavioural changes
Backwards compatibility
Follow-up
Tests