Solved Change blocks breaked by explosions

Discussion in 'Spigot Plugin Development' started by Soolz, Jul 31, 2018.

  1. Hello, I've tried this code and with BlockExplodeEvent, but nothing...

    Code (Java):
            public void newBlocks(EntityExplodeEvent e) {
                for(Block b : e.blockList()){
    Thank you in advance ;)
  2. 1. Have you registered the listener class with the eventhandler in?
    2. Try debugging, by printing to console each block in the e.blockList() to see if it's not empty, and then try setting their types or placing blocks naturally at each block's location.
    • Agree Agree x 2
  3. Yes, it's work now, thank's!

    I just forgot to cancel the event
  4. Default issues :)