Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fire ExplosionEvent for Tiny TNT #932
Some people have reported to me that Tiny TNT can't be used anymore to get Compressed Iron from Iron in PneumaticCraft. Recently, as a refactor, I've instead of using custom EntityItems, hooked into forge's ExplosionEvent to spawn Compressed Iron. This works fine for normal explosions.
After investigation, it seems that Tiny TNT simulates Explosions in a custom way, and doesn't fire the ExplosionEvent. My suggestion would be to do this :). Or, a simpler solution is to use World#createExplosion instead. But, I assume there was a reason to not do that in the first place?
´World.createExplosion()´ is not really an option. There is no guarantee that any explosion will happen as the explosion damage can be disabled in the configuration.