Add a new blockBreakEffect method and deprecate World#playEffect by Owen1212055 · Pull Request #2110 · EngineHub/WorldEdit · GitHub
Skip to content

Add a new blockBreakEffect method and deprecate World#playEffect - #2110

Open
Owen1212055 wants to merge 4 commits into
EngineHub:masterfrom
Owen1212055:fix-break-effect
Open

Owen1212055 wants to merge 4 commits into
EngineHub:masterfrom
Owen1212055:fix-break-effect

Conversation

@Owen1212055

Copy link
Copy Markdown
  • Fixes the break effect used for super pickaxe using legacy ids
  • Fixes block break effect not displaying on fabric/forge
  • Allows you to now queue block effects of a blockstate rather than blocktype.

Please give feedback on the deprecation of World#playEffect and the old World#queueBlockBreakEffect method.
I was also split between making a separate method for the block break effect or making some kind of generic playEffect(Vector3 pos, int effect, T data) method that would do a bunch of instanceof checks to correctly adapt the data.
If a generic play effect method is preferred rather than a specific playBreakBlockEffect method, let me know!

@me4502

me4502 commented Jun 5, 2022

Copy link
Copy Markdown
Member

@Owen1212055

Copy link
Copy Markdown
Author

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.

2 participants