Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onBlockDamage(EntityExplodeEvent ev) {
- if (ev.getEntityType() == EntityType.PRIMED_TNT) {
- List<Block> blocks = ev.blockList();
- for (Block block : blocks) {
- if (block.getType() == Material.WOOL) {
- blocks.remove(block);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement