1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

tnt can't destroy stone

Discussion in 'Development' started by padrone, Jul 16, 2018.

  1. padrone

    padrone Witch

    Messages:
    69
    GitHub:
    padreon
    how to make tnt can't destroy stone?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Listen to EntityExplodeEvent and iterate over EntityExplodeEvent::getBlocksList().

    Remove stone blocks from the list.

    Then update the block list using EntityExplodeEvent::setBlocksList().
     
    HimbeersaftLP and corytortoise like this.
  3. padrone

    padrone Witch

    Messages:
    69
    GitHub:
    padreon
    thx, I will try
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.