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

Improve onCaughtFire blockstate extension & maybe add event #1468

Open
MehVahdJukaar opened this issue Aug 18, 2024 · 0 comments
Open

Improve onCaughtFire blockstate extension & maybe add event #1468

MehVahdJukaar opened this issue Aug 18, 2024 · 0 comments
Labels
enhancement New (or improvement to existing) feature or request

Comments

@MehVahdJukaar
Copy link

MehVahdJukaar commented Aug 18, 2024

Currently that call is called BEFORE the block is set, either as a fire block or as air.
This works ok for tnt stuff since thats meant to disappear anyways.
For anything else that is supposed to change state when its broken by fire however its not sufficent as any leve.setBlock call in that method will get invalidated by the subsequent call that sets block to air.

Also an event for this would definitely be nice. Could be use for example to react to fire burnig blocks, creating arbitrary new blocks there instead (i for example have a use cases for that where fire turns blocks into ash)

Related codein FireBlock
image

@MehVahdJukaar MehVahdJukaar added the enhancement New (or improvement to existing) feature or request label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

No branches or pull requests

1 participant