Explosion: implemented underwater explosion#6456
Explosion: implemented underwater explosion#6456nicholass003 wants to merge 18 commits intopmmp:minor-nextfrom
Conversation
|
A better approach might be to allow the constructor to accept a list of BlockTypeTags (or type IDs) that it skips over, and then check those tags (or IDs) when looking at blocks to destroy. That would make it more flexible and enable custom use cases. |
…Explosion constructor
|
Is this the correct approach? I have several options for the variable that stores the list of
However, I think the name |
|
Should |
|
Well if people wanted to change the blocks affected by the explosion they can always cancel the EntityPreExplodeEvent and make their own explosion |
|
This PR has been marked as "Waiting on Author", but we haven't seen any activity in 7 days. If there is no further activity, it will be closed in 28 days. Note for maintainers: Adding an assignee to the PR will prevent it from being marked as stale. |
…to feat/underwater-explosion
|
I stalled on merging this because I don't like the solution, but I don't currently have a better one. It's not been at the forefront of my mind lately. Will revisit it soon. |
Introduction
This PR implements underwater explosion for Underwater TNT
Minecraft.2024-09-21.10-12-07.mp4
Relevant issues
Changes
API changes
Behavioural changes
Backwards compatibility
Follow-up
Tests
I tested this PR by doing the following (tick all that apply):
tests/phpunitfolder)