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

Standardize tile explosion functions by TNT and creeper #559

Merged
merged 2 commits into from May 24, 2024

Conversation

BenCheung0422
Copy link
Member

This comes from #372. The original problem is that in explosion blacklists of TNT and creeper are differ from each other, so the lists are grouped together with Tiles#explosionBlacklist. Also, some missing obsidian tiles in the blacklist are added. As the blacklist is standardized, the tile explosion behaviour should also be standardized. The behaviour is standardized by a kind of tile entity, ExplosionTileTicker, with exploded tile replacements and removals (back to hole tiles or infinite fall tiles). Originally, creeper does not explode with exploded tiles and instead instant breaks (replacing with hole tiles and infinite fall tiles).

@Makkkkus
Copy link
Member

Makkkkus commented Sep 8, 2023

Can't you just copy the blacklist over from the tnt to the creeper? There might be cases where we want them to be different.

@BenCheung0422
Copy link
Member Author

The power of explosion should be the same as many of these are made of obsidian (inconsistence in tile hardness) and there has already the difference in radius of explosion.

@Litorom Litorom merged commit 6787c2b into MinicraftPlus:main May 24, 2024
2 checks passed
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.

None yet

4 participants